作者 朱兆平

Long 改为 BigDecimal

@@ -21,6 +21,12 @@ @@ -21,6 +21,12 @@
21 <version>${lombok_sersion}</version> 21 <version>${lombok_sersion}</version>
22 <scope>provided</scope> 22 <scope>provided</scope>
23 </dependency> 23 </dependency>
  24 + <dependency>
  25 + <groupId>com.fasterxml.jackson.core</groupId>
  26 + <artifactId>jackson-annotations</artifactId>
  27 + <version>2.9.5</version>
  28 + <scope>compile</scope>
  29 + </dependency>
24 </dependencies> 30 </dependencies>
25 <build> 31 <build>
26 <plugins> 32 <plugins>
@@ -44,17 +50,4 @@ @@ -44,17 +50,4 @@
44 </plugin> 50 </plugin>
45 </plugins> 51 </plugins>
46 </build> 52 </build>
47 - <dependencies>  
48 - <dependency>  
49 - <groupId>com.fasterxml.jackson.core</groupId>  
50 - <artifactId>jackson-annotations</artifactId>  
51 - <version>2.9.5</version>  
52 - <scope>compile</scope>  
53 - </dependency>  
54 - <dependency>  
55 - <groupId>org.projectlombok</groupId>  
56 - <artifactId>lombok</artifactId>  
57 - <version>1.18.8</version>  
58 - </dependency>  
59 - </dependencies>  
60 </project> 53 </project>
@@ -3,6 +3,7 @@ package com.sunyo.wlpt.base.model; @@ -3,6 +3,7 @@ package com.sunyo.wlpt.base.model;
3 import com.fasterxml.jackson.annotation.JsonFormat; 3 import com.fasterxml.jackson.annotation.JsonFormat;
4 import lombok.Data; 4 import lombok.Data;
5 5
  6 +import java.math.BigDecimal;
6 import java.util.Date; 7 import java.util.Date;
7 import java.util.List; 8 import java.util.List;
8 9
@@ -29,7 +30,7 @@ public class NMMS_CUSTOM_MT520X { @@ -29,7 +30,7 @@ public class NMMS_CUSTOM_MT520X {
29 30
30 private Integer piece; 31 private Integer piece;
31 32
32 - private Long weight; 33 + private BigDecimal weight;
33 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") 34 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
34 private Date starttime; 35 private Date starttime;
35 36
@@ -133,11 +134,11 @@ public class NMMS_CUSTOM_MT520X { @@ -133,11 +134,11 @@ public class NMMS_CUSTOM_MT520X {
133 this.piece = piece; 134 this.piece = piece;
134 } 135 }
135 136
136 - public Long getWeight() { 137 + public BigDecimal getWeight() {
137 return weight; 138 return weight;
138 } 139 }
139 140
140 - public void setWeight(Long weight) { 141 + public void setWeight(BigDecimal weight) {
141 this.weight = weight; 142 this.weight = weight;
142 } 143 }
143 144
1 package com.sunyo.wlpt.base.model; 1 package com.sunyo.wlpt.base.model;
2 2
  3 +import java.math.BigDecimal;
3 import java.util.List; 4 import java.util.List;
4 5
5 public class NMMS_CUSTOM_MT8205 { 6 public class NMMS_CUSTOM_MT8205 {
@@ -11,7 +12,7 @@ public class NMMS_CUSTOM_MT8205 { @@ -11,7 +12,7 @@ public class NMMS_CUSTOM_MT8205 {
11 12
12 private Integer transpiece; 13 private Integer transpiece;
13 14
14 - private Long transweight; 15 + private BigDecimal transweight;
15 16
16 private String goodsname; 17 private String goodsname;
17 18
@@ -74,11 +75,11 @@ public class NMMS_CUSTOM_MT8205 { @@ -74,11 +75,11 @@ public class NMMS_CUSTOM_MT8205 {
74 this.transpiece = transpiece; 75 this.transpiece = transpiece;
75 } 76 }
76 77
77 - public Long getTransweight() { 78 + public BigDecimal getTransweight() {
78 return transweight; 79 return transweight;
79 } 80 }
80 81
81 - public void setTransweight(Long transweight) { 82 + public void setTransweight(BigDecimal transweight) {
82 this.transweight = transweight; 83 this.transweight = transweight;
83 } 84 }
84 85
@@ -2,6 +2,7 @@ package com.sunyo.wlpt.base.model; @@ -2,6 +2,7 @@ package com.sunyo.wlpt.base.model;
2 2
3 import com.fasterxml.jackson.annotation.JsonFormat; 3 import com.fasterxml.jackson.annotation.JsonFormat;
4 4
  5 +import java.math.BigDecimal;
5 import java.util.Date; 6 import java.util.Date;
6 7
7 public class NMMS_CUSTOM_TRANS { 8 public class NMMS_CUSTOM_TRANS {
@@ -19,7 +20,7 @@ public class NMMS_CUSTOM_TRANS { @@ -19,7 +20,7 @@ public class NMMS_CUSTOM_TRANS {
19 20
20 private String turnpiece; 21 private String turnpiece;
21 22
22 - private Long turnweight; 23 + private BigDecimal turnweight;
23 24
24 private String customcode; 25 private String customcode;
25 26
@@ -101,11 +102,11 @@ public class NMMS_CUSTOM_TRANS { @@ -101,11 +102,11 @@ public class NMMS_CUSTOM_TRANS {
101 this.turnpiece = turnpiece == null ? null : turnpiece.trim(); 102 this.turnpiece = turnpiece == null ? null : turnpiece.trim();
102 } 103 }
103 104
104 - public Long getTurnweight() { 105 + public BigDecimal getTurnweight() {
105 return turnweight; 106 return turnweight;
106 } 107 }
107 108
108 - public void setTurnweight(Long turnweight) { 109 + public void setTurnweight(BigDecimal turnweight) {
109 this.turnweight = turnweight; 110 this.turnweight = turnweight;
110 } 111 }
111 112