作者 朱兆平

Long 改为 BigDecimal

... ... @@ -21,6 +21,12 @@
<version>${lombok_sersion}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.9.5</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<plugins>
... ... @@ -44,17 +50,4 @@
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.9.5</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.8</version>
</dependency>
</dependencies>
</project>
... ...
... ... @@ -3,6 +3,7 @@ package com.sunyo.wlpt.base.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
... ... @@ -29,7 +30,7 @@ public class NMMS_CUSTOM_MT520X {
private Integer piece;
private Long weight;
private BigDecimal weight;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date starttime;
... ... @@ -133,11 +134,11 @@ public class NMMS_CUSTOM_MT520X {
this.piece = piece;
}
public Long getWeight() {
public BigDecimal getWeight() {
return weight;
}
public void setWeight(Long weight) {
public void setWeight(BigDecimal weight) {
this.weight = weight;
}
... ...
package com.sunyo.wlpt.base.model;
import java.math.BigDecimal;
import java.util.List;
public class NMMS_CUSTOM_MT8205 {
... ... @@ -11,7 +12,7 @@ public class NMMS_CUSTOM_MT8205 {
private Integer transpiece;
private Long transweight;
private BigDecimal transweight;
private String goodsname;
... ... @@ -74,11 +75,11 @@ public class NMMS_CUSTOM_MT8205 {
this.transpiece = transpiece;
}
public Long getTransweight() {
public BigDecimal getTransweight() {
return transweight;
}
public void setTransweight(Long transweight) {
public void setTransweight(BigDecimal transweight) {
this.transweight = transweight;
}
... ...
... ... @@ -2,6 +2,7 @@ package com.sunyo.wlpt.base.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import java.util.Date;
public class NMMS_CUSTOM_TRANS {
... ... @@ -19,7 +20,7 @@ public class NMMS_CUSTOM_TRANS {
private String turnpiece;
private Long turnweight;
private BigDecimal turnweight;
private String customcode;
... ... @@ -101,11 +102,11 @@ public class NMMS_CUSTOM_TRANS {
this.turnpiece = turnpiece == null ? null : turnpiece.trim();
}
public Long getTurnweight() {
public BigDecimal getTurnweight() {
return turnweight;
}
public void setTurnweight(Long turnweight) {
public void setTurnweight(BigDecimal turnweight) {
this.turnweight = turnweight;
}
... ...