Merge remote-tracking branch 'origin/master'
正在显示
9 个修改的文件
包含
118 行增加
和
34 行删除
1 | -# Created by .ignore support plugin (hsz.mobi) | 1 | +/target/ |
2 | +!.mvn/wrapper/maven-wrapper.jar | ||
3 | +/logs/ | ||
4 | +/out/ | ||
5 | +.mvn | ||
6 | +/xmlFromImf/ | ||
7 | +kakoRevice/ | ||
8 | +/errorLogs/ | ||
9 | +### STS ### | ||
10 | +.apt_generated | ||
11 | +.classpath | ||
12 | +.factorypath | ||
13 | +.project | ||
14 | +.settings | ||
15 | +.springBeans | ||
16 | +.sts4-cache | ||
17 | + | ||
18 | +### IntelliJ IDEA ### | ||
19 | +.idea | ||
20 | +*.iws | ||
21 | +*.iml | ||
22 | +*.ipr | ||
23 | + | ||
24 | +### NetBeans ### | ||
25 | +/nbproject/private/ | ||
26 | +/build/ | ||
27 | +/nbbuild/ | ||
28 | +/dist/ | ||
29 | +/nbdist/ | ||
30 | +/.nb-gradle/ |
@@ -3,12 +3,31 @@ | @@ -3,12 +3,31 @@ | ||
3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
5 | <modelVersion>4.0.0</modelVersion> | 5 | <modelVersion>4.0.0</modelVersion> |
6 | - | 6 | + <packaging>jar</packaging> |
7 | <groupId>com.sunyo.wlpt</groupId> | 7 | <groupId>com.sunyo.wlpt</groupId> |
8 | <artifactId>base</artifactId> | 8 | <artifactId>base</artifactId> |
9 | <version>1.0-SNAPSHOT</version> | 9 | <version>1.0-SNAPSHOT</version> |
10 | 10 | ||
11 | - | 11 | + <name>wlpt-base</name> |
12 | + <description>物流平台基础实体包</description> | ||
13 | + <properties> | ||
14 | + <lombok_sersion>1.18.6</lombok_sersion> | ||
15 | + </properties> | ||
16 | + <dependencies> | ||
17 | + <!-- https://mvnrepository.com/artifact/org.projectlombok/lombok --> | ||
18 | + <dependency> | ||
19 | + <groupId>org.projectlombok</groupId> | ||
20 | + <artifactId>lombok</artifactId> | ||
21 | + <version>${lombok_sersion}</version> | ||
22 | + <scope>provided</scope> | ||
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> | ||
30 | + </dependencies> | ||
12 | <build> | 31 | <build> |
13 | <plugins> | 32 | <plugins> |
14 | <plugin> | 33 | <plugin> |
@@ -31,17 +50,4 @@ | @@ -31,17 +50,4 @@ | ||
31 | </plugin> | 50 | </plugin> |
32 | </plugins> | 51 | </plugins> |
33 | </build> | 52 | </build> |
34 | - <dependencies> | ||
35 | - <dependency> | ||
36 | - <groupId>com.fasterxml.jackson.core</groupId> | ||
37 | - <artifactId>jackson-annotations</artifactId> | ||
38 | - <version>2.9.5</version> | ||
39 | - <scope>compile</scope> | ||
40 | - </dependency> | ||
41 | - <dependency> | ||
42 | - <groupId>org.projectlombok</groupId> | ||
43 | - <artifactId>lombok</artifactId> | ||
44 | - <version>1.18.8</version> | ||
45 | - </dependency> | ||
46 | - </dependencies> | ||
47 | </project> | 53 | </project> |
@@ -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 | import java.util.List; | 7 | import java.util.List; |
7 | 8 | ||
@@ -25,7 +26,7 @@ public class NMMS_CUSTOM_MT3201 { | @@ -25,7 +26,7 @@ public class NMMS_CUSTOM_MT3201 { | ||
25 | 26 | ||
26 | private Integer piece; | 27 | private Integer piece; |
27 | 28 | ||
28 | - private Long weight; | 29 | + private BigDecimal weight; |
29 | 30 | ||
30 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") | 31 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
31 | private Date arrivetime; | 32 | private Date arrivetime; |
@@ -127,11 +128,11 @@ public class NMMS_CUSTOM_MT3201 { | @@ -127,11 +128,11 @@ public class NMMS_CUSTOM_MT3201 { | ||
127 | this.piece = piece; | 128 | this.piece = piece; |
128 | } | 129 | } |
129 | 130 | ||
130 | - public Long getWeight() { | 131 | + public BigDecimal getWeight() { |
131 | return weight; | 132 | return weight; |
132 | } | 133 | } |
133 | 134 | ||
134 | - public void setWeight(Long weight) { | 135 | + public void setWeight(BigDecimal weight) { |
135 | this.weight = weight; | 136 | this.weight = weight; |
136 | } | 137 | } |
137 | 138 |
@@ -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 | import java.util.List; | 7 | import java.util.List; |
7 | 8 | ||
@@ -25,7 +26,7 @@ public class NMMS_CUSTOM_MT4201 { | @@ -25,7 +26,7 @@ public class NMMS_CUSTOM_MT4201 { | ||
25 | 26 | ||
26 | private Integer lodingpiece; | 27 | private Integer lodingpiece; |
27 | 28 | ||
28 | - private Long lodingweight; | 29 | + private BigDecimal lodingweight; |
29 | 30 | ||
30 | private String customcode; | 31 | private String customcode; |
31 | 32 | ||
@@ -129,11 +130,11 @@ public class NMMS_CUSTOM_MT4201 { | @@ -129,11 +130,11 @@ public class NMMS_CUSTOM_MT4201 { | ||
129 | this.lodingpiece = lodingpiece; | 130 | this.lodingpiece = lodingpiece; |
130 | } | 131 | } |
131 | 132 | ||
132 | - public Long getLodingweight() { | 133 | + public BigDecimal getLodingweight() { |
133 | return lodingweight; | 134 | return lodingweight; |
134 | } | 135 | } |
135 | 136 | ||
136 | - public void setLodingweight(Long lodingweight) { | 137 | + public void setLodingweight(BigDecimal lodingweight) { |
137 | this.lodingweight = lodingweight; | 138 | this.lodingweight = lodingweight; |
138 | } | 139 | } |
139 | 140 |
@@ -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 | ||
@@ -135,11 +136,11 @@ public class NMMS_CUSTOM_MT520X { | @@ -135,11 +136,11 @@ public class NMMS_CUSTOM_MT520X { | ||
135 | this.piece = piece; | 136 | this.piece = piece; |
136 | } | 137 | } |
137 | 138 | ||
138 | - public Long getWeight() { | 139 | + public BigDecimal getWeight() { |
139 | return weight; | 140 | return weight; |
140 | } | 141 | } |
141 | 142 | ||
142 | - public void setWeight(Long weight) { | 143 | + public void setWeight(BigDecimal weight) { |
143 | this.weight = weight; | 144 | this.weight = weight; |
144 | } | 145 | } |
145 | 146 |
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_RESPONSE { | 8 | public class NMMS_CUSTOM_RESPONSE { |
@@ -23,7 +24,7 @@ public class NMMS_CUSTOM_RESPONSE { | @@ -23,7 +24,7 @@ public class NMMS_CUSTOM_RESPONSE { | ||
23 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") | 24 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
24 | private Date busdate; | 25 | private Date busdate; |
25 | 26 | ||
26 | - private Long busweight; | 27 | + private BigDecimal busweight; |
27 | 28 | ||
28 | private Integer buspiece; | 29 | private Integer buspiece; |
29 | 30 | ||
@@ -125,11 +126,11 @@ public class NMMS_CUSTOM_RESPONSE { | @@ -125,11 +126,11 @@ public class NMMS_CUSTOM_RESPONSE { | ||
125 | this.busdate = busdate; | 126 | this.busdate = busdate; |
126 | } | 127 | } |
127 | 128 | ||
128 | - public Long getBusweight() { | 129 | + public BigDecimal getBusweight() { |
129 | return busweight; | 130 | return busweight; |
130 | } | 131 | } |
131 | 132 | ||
132 | - public void setBusweight(Long busweight) { | 133 | + public void setBusweight(BigDecimal busweight) { |
133 | this.busweight = busweight; | 134 | this.busweight = busweight; |
134 | } | 135 | } |
135 | 136 |
@@ -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 |
1 | +package com.sunyo.wlpt.base.model.response; | ||
2 | + | ||
3 | +import lombok.Data; | ||
4 | + | ||
5 | +import java.io.Serializable; | ||
6 | + | ||
7 | +@Data | ||
8 | +public class ResultJson<T> implements Serializable{ | ||
9 | + private static final long serialVersionUID = 1L; | ||
10 | + | ||
11 | + // 状态码 正确为200 | ||
12 | + private String code = "200"; | ||
13 | + // 描述 | ||
14 | + private String msg = ""; | ||
15 | + | ||
16 | + private String error; | ||
17 | + // 返回对象 | ||
18 | + private T data; | ||
19 | + //返回的JWT | ||
20 | + private String jwtToken; | ||
21 | + | ||
22 | + public ResultJson() { | ||
23 | + } | ||
24 | + | ||
25 | + public ResultJson(String code) { | ||
26 | + this.code = code; | ||
27 | + } | ||
28 | + | ||
29 | + public ResultJson(String code, String msg) { | ||
30 | + this.code = code; | ||
31 | + this.msg = msg; | ||
32 | + } | ||
33 | + | ||
34 | + public ResultJson(T data) { | ||
35 | + this.data = data; | ||
36 | + } | ||
37 | + | ||
38 | + public ResultJson(String code, String msg, T data) { | ||
39 | + this.code = code; | ||
40 | + this.msg = msg; | ||
41 | + this.data = data; | ||
42 | + } | ||
43 | +} |
-
请 注册 或 登录 后发表评论