正在显示
40 个修改的文件
包含
4256 行增加
和
294 行删除
1 | #上传文件的路径,要带斜杠 | 1 | #上传文件的路径,要带斜杠 |
2 | web: | 2 | web: |
3 | - upload-path: upload/ | 3 | + upload-path: /Users/mrz/Pictures/ |
4 | server: | 4 | server: |
5 | port: 10001 | 5 | port: 10001 |
6 | servlet: | 6 | servlet: |
@@ -16,7 +16,7 @@ spring: | @@ -16,7 +16,7 @@ spring: | ||
16 | static-locations: classpath:/META-INF/resources/,classpath:/static,classpath:/resources/,file:${web.upload-path} | 16 | static-locations: classpath:/META-INF/resources/,classpath:/static,classpath:/resources/,file:${web.upload-path} |
17 | 17 | ||
18 | application: | 18 | application: |
19 | - name: changeManifestInfomation | 19 | + name: wlpt-nmms-manage |
20 | 20 | ||
21 | jackson: | 21 | jackson: |
22 | serialization: | 22 | serialization: |
@@ -43,9 +43,12 @@ spring: | @@ -43,9 +43,12 @@ spring: | ||
43 | type: com.alibaba.druid.pool.DruidDataSource | 43 | type: com.alibaba.druid.pool.DruidDataSource |
44 | #oracle | 44 | #oracle |
45 | driver-class-name: oracle.jdbc.OracleDriver | 45 | driver-class-name: oracle.jdbc.OracleDriver |
46 | - url: jdbc:oracle:thin:@10.50.3.69:1521:CGODB | 46 | +# url: jdbc:oracle:thin:@10.50.3.69:1521:CGODB |
47 | +# username: CGONMS | ||
48 | +# password: 1q2w3e4r | ||
49 | + url: jdbc:oracle:thin:@192.168.1.253:1522:ORCLL | ||
47 | username: CGONMS | 50 | username: CGONMS |
48 | - password: 1q2w3e4r | 51 | + password: vmvnv1v2 |
49 | #spring datasource mysql,注意编码配置,缺少数据库编码配置容易引起中文入库乱码 | 52 | #spring datasource mysql,注意编码配置,缺少数据库编码配置容易引起中文入库乱码 |
50 | # url: jdbc:mysql://127.0.0.1:3307/statistics?useUnicode=true&characterEncoding=utf8 | 53 | # url: jdbc:mysql://127.0.0.1:3307/statistics?useUnicode=true&characterEncoding=utf8 |
51 | # username: root | 54 | # username: root |
@@ -86,7 +89,8 @@ eureka: | @@ -86,7 +89,8 @@ eureka: | ||
86 | client: | 89 | client: |
87 | #eureka注册中心服务器地址 | 90 | #eureka注册中心服务器地址 |
88 | service-url: | 91 | service-url: |
89 | - defaultZone: http://10.50.3.82:19527/eureka/ | 92 | +# defaultZone: http://10.50.7.70:12345/eureka/ |
93 | + defaultZone: http://192.168.1.53:12345/eureka/ | ||
90 | registry-fetch-interval-seconds: 30 | 94 | registry-fetch-interval-seconds: 30 |
91 | lease-renewal-interval-in-seconds: 15 | 95 | lease-renewal-interval-in-seconds: 15 |
92 | lease-expiration-duration-in-seconds: 45 | 96 | lease-expiration-duration-in-seconds: 45 |
@@ -122,3 +126,6 @@ logging: | @@ -122,3 +126,6 @@ logging: | ||
122 | #Java Web Token 时效时间,单位秒 | 126 | #Java Web Token 时效时间,单位秒 |
123 | jwt: | 127 | jwt: |
124 | max-alive: 300 | 128 | max-alive: 300 |
129 | +info: | ||
130 | + version: 1.0 | ||
131 | + description: "新舱单辅助管理服务-统一认证、转运管理、提前运抵等" |
@@ -172,7 +172,7 @@ | @@ -172,7 +172,7 @@ | ||
172 | 172 | ||
173 | <!--开发环境:打印控制台--> | 173 | <!--开发环境:打印控制台--> |
174 | <springProfile name="dev"> | 174 | <springProfile name="dev"> |
175 | - <logger name="org.springframework.boot" level="trace"/> | 175 | + <logger name="org.springframework.boot" level="info"/> |
176 | <logger name="org.apache.tomcat" level="info" /> | 176 | <logger name="org.apache.tomcat" level="info" /> |
177 | <logger name="com.tianbo.analysis.dao" level="DEBUG" /> | 177 | <logger name="com.tianbo.analysis.dao" level="DEBUG" /> |
178 | <root level="INFO"> | 178 | <root level="INFO"> |
@@ -186,9 +186,9 @@ | @@ -186,9 +186,9 @@ | ||
186 | 186 | ||
187 | <!--生产环境:输出到文件--> | 187 | <!--生产环境:输出到文件--> |
188 | <springProfile name="pro"> | 188 | <springProfile name="pro"> |
189 | - <logger name="org.springframework.boot" level="trace"/> | 189 | + <logger name="org.springframework.boot" level="info"/> |
190 | <logger name="com.tianbo.analysis.dao" level="DEBUG" /> | 190 | <logger name="com.tianbo.analysis.dao" level="DEBUG" /> |
191 | - <root level="info"> | 191 | + <root level="INFO"> |
192 | <appender-ref ref="CONSOLE" /> | 192 | <appender-ref ref="CONSOLE" /> |
193 | <appender-ref ref="DEBUG_FILE" /> | 193 | <appender-ref ref="DEBUG_FILE" /> |
194 | <appender-ref ref="INFO_FILE" /> | 194 | <appender-ref ref="INFO_FILE" /> |
@@ -19,6 +19,7 @@ | @@ -19,6 +19,7 @@ | ||
19 | <druid.version>1.1.9</druid.version> | 19 | <druid.version>1.1.9</druid.version> |
20 | <spring-cloud.version>Greenwich.BUILD-SNAPSHOT</spring-cloud.version> | 20 | <spring-cloud.version>Greenwich.BUILD-SNAPSHOT</spring-cloud.version> |
21 | <lombok_sersion>1.18.6</lombok_sersion> | 21 | <lombok_sersion>1.18.6</lombok_sersion> |
22 | + <swagger2_version>2.9.2</swagger2_version> | ||
22 | </properties> | 23 | </properties> |
23 | <dependencies> | 24 | <dependencies> |
24 | <!--spring boot--> | 25 | <!--spring boot--> |
@@ -69,6 +70,11 @@ | @@ -69,6 +70,11 @@ | ||
69 | <artifactId>mybatis</artifactId> | 70 | <artifactId>mybatis</artifactId> |
70 | <version>3.4.6</version> | 71 | <version>3.4.6</version> |
71 | </dependency> | 72 | </dependency> |
73 | + <dependency> | ||
74 | + <groupId>com.github.pagehelper</groupId> | ||
75 | + <artifactId>pagehelper-spring-boot-starter</artifactId> | ||
76 | + <version>1.2.5</version> | ||
77 | + </dependency> | ||
72 | <!--<!– mysql–>--> | 78 | <!--<!– mysql–>--> |
73 | <!--<dependency>--> | 79 | <!--<dependency>--> |
74 | <!--<groupId>mysql</groupId>--> | 80 | <!--<groupId>mysql</groupId>--> |
@@ -88,279 +94,21 @@ | @@ -88,279 +94,21 @@ | ||
88 | <version>1.0-SNAPSHOT</version> | 94 | <version>1.0-SNAPSHOT</version> |
89 | </dependency> | 95 | </dependency> |
90 | <!--util依赖--> | 96 | <!--util依赖--> |
91 | - <!--<!–IMF需要的包–>--> | ||
92 | - <!--<!– https://mvnrepository.com/artifact/org.apache.xmlbeans/xmlbeans –>--> | ||
93 | - <!--<dependency>--> | ||
94 | - <!--<groupId>org.apache.xmlbeans</groupId>--> | ||
95 | - <!--<artifactId>xmlbeans</artifactId>--> | ||
96 | - <!--<version>2.4.0</version>--> | ||
97 | - <!--</dependency>--> | ||
98 | - <!--<!– https://mvnrepository.com/artifact/org.apache.ws.commons.schema/XmlSchema –>--> | ||
99 | - <!--<dependency>--> | ||
100 | - <!--<groupId>org.apache.ws.commons.schema</groupId>--> | ||
101 | - <!--<artifactId>XmlSchema</artifactId>--> | ||
102 | - <!--<version>1.4.7</version>--> | ||
103 | - <!--</dependency>--> | ||
104 | - <!--<!– https://mvnrepository.com/artifact/wsdl4j/wsdl4j –>--> | ||
105 | - <!--<dependency>--> | ||
106 | - <!--<groupId>wsdl4j</groupId>--> | ||
107 | - <!--<artifactId>wsdl4j</artifactId>--> | ||
108 | - <!--<version>1.6.2</version>--> | ||
109 | - <!--</dependency>--> | ||
110 | - <!--<!– https://mvnrepository.com/artifact/org.apache.neethi/neethi –>--> | ||
111 | - <!--<dependency>--> | ||
112 | - <!--<groupId>org.apache.neethi</groupId>--> | ||
113 | - <!--<artifactId>neethi</artifactId>--> | ||
114 | - <!--<version>2.0.4</version>--> | ||
115 | - <!--</dependency>--> | ||
116 | - | ||
117 | - | ||
118 | - | ||
119 | - <!--<!– LOG –>--> | ||
120 | - <!--<dependency>--> | ||
121 | - <!--<groupId>log4j</groupId>--> | ||
122 | - <!--<artifactId>log4j</artifactId>--> | ||
123 | - <!--<version>1.2.16</version>--> | ||
124 | - <!--</dependency>--> | ||
125 | - <!--<!– https://mvnrepository.com/artifact/org.slf4j/slf4j-api –>--> | ||
126 | - <!--<dependency>--> | ||
127 | - <!--<groupId>org.slf4j</groupId>--> | ||
128 | - <!--<artifactId>slf4j-api</artifactId>--> | ||
129 | - <!--<version>1.6.1</version>--> | ||
130 | - <!--</dependency>--> | ||
131 | - <!--<!– https://mvnrepository.com/artifact/org.slf4j/slf4j-jdk14 –>--> | ||
132 | - <!--<dependency>--> | ||
133 | - <!--<groupId>org.slf4j</groupId>--> | ||
134 | - <!--<artifactId>slf4j-jdk14</artifactId>--> | ||
135 | - <!--<version>1.6.1</version>--> | ||
136 | - <!--<scope>test</scope>--> | ||
137 | - <!--</dependency>--> | ||
138 | - <!--<!– https://mvnrepository.com/artifact/org.apache.cxf.xjcplugins/cxf-xjc-boolean –>--> | ||
139 | - <!--<dependency>--> | ||
140 | - <!--<groupId>org.apache.cxf.xjcplugins</groupId>--> | ||
141 | - <!--<artifactId>cxf-xjc-boolean</artifactId>--> | ||
142 | - <!--<version>3.2.3</version>--> | ||
143 | - <!--</dependency>--> | ||
144 | - <!--<!–添加本地IMF包–>--> | ||
145 | - <!--<dependency>--> | ||
146 | - <!--<groupId>com.caac</groupId>--> | ||
147 | - <!--<artifactId>imf</artifactId>--> | ||
148 | - <!--<version>1.0.0</version>--> | ||
149 | - <!--<scope>system</scope>--> | ||
150 | - <!--<systemPath>${project.basedir}/lib/IMFClient.1.0.0.jar</systemPath>--> | ||
151 | - <!--</dependency>--> | ||
152 | - <!--<dependency>--> | ||
153 | - <!--<groupId>com.caac.imf</groupId>--> | ||
154 | - <!--<artifactId>imfmessage</artifactId>--> | ||
155 | - <!--<version>1.0.0</version>--> | ||
156 | - <!--<scope>system</scope>--> | ||
157 | - <!--<systemPath>${project.basedir}/lib/imfmsg.jar</systemPath>--> | ||
158 | - <!--</dependency>--> | ||
159 | - <!--<dependency>--> | ||
160 | - <!--<groupId>com.caac.imf</groupId>--> | ||
161 | - <!--<artifactId>process</artifactId>--> | ||
162 | - <!--<version>1.0.0</version>--> | ||
163 | - <!--<scope>system</scope>--> | ||
164 | - <!--<systemPath>${project.basedir}/lib/ProcessService.jar</systemPath>--> | ||
165 | - <!--</dependency>--> | ||
166 | - <!--<dependency>--> | ||
167 | - <!--<groupId>com.caac.imf</groupId>--> | ||
168 | - <!--<artifactId>apiconfig</artifactId>--> | ||
169 | - <!--<version>1.0.0</version>--> | ||
170 | - <!--<scope>system</scope>--> | ||
171 | - <!--<systemPath>${project.basedir}/lib/apiConfig.jar</systemPath>--> | ||
172 | - <!--</dependency>--> | ||
173 | - <!--<dependency>--> | ||
174 | - <!--<groupId>com.caac.imf</groupId>--> | ||
175 | - <!--<artifactId>upload</artifactId>--> | ||
176 | - <!--<version>1.0.0</version>--> | ||
177 | - <!--<scope>system</scope>--> | ||
178 | - <!--<systemPath>${project.basedir}/lib/UploadService.jar</systemPath>--> | ||
179 | - <!--</dependency>--> | ||
180 | - <!--<dependency>--> | ||
181 | - <!--<groupId>com.caac.imf</groupId>--> | ||
182 | - <!--<artifactId>heartbeat</artifactId>--> | ||
183 | - <!--<version>1.0.0</version>--> | ||
184 | - <!--<scope>system</scope>--> | ||
185 | - <!--<systemPath>${project.basedir}/lib/HeartbeatService.jar</systemPath>--> | ||
186 | - <!--</dependency>--> | ||
187 | - <!--<dependency>--> | ||
188 | - <!--<groupId>com.caac.imf</groupId>--> | ||
189 | - <!--<artifactId>returnxml</artifactId>--> | ||
190 | - <!--<version>1.0.0</version>--> | ||
191 | - <!--<scope>system</scope>--> | ||
192 | - <!--<systemPath>${project.basedir}/lib/returnXml.jar</systemPath>--> | ||
193 | - <!--</dependency>--> | ||
194 | - <!--<!– https://mvnrepository.com/artifact/org.hyperic/sigar –>--> | ||
195 | - <!--<dependency>--> | ||
196 | - <!--<groupId>org.hyperic</groupId>--> | ||
197 | - <!--<artifactId>sigar</artifactId>--> | ||
198 | - <!--<version>1.6.4</version>--> | ||
199 | - <!--<scope>system</scope>--> | ||
200 | - <!--<systemPath>${project.basedir}/lib/sigar.jar</systemPath>--> | ||
201 | - <!--</dependency>--> | ||
202 | - <!--<dependency>--> | ||
203 | - <!--<groupId>org.apache</groupId>--> | ||
204 | - <!--<artifactId>cxf</artifactId>--> | ||
205 | - <!--<version>2.3.2</version>--> | ||
206 | - <!--<scope>system</scope>--> | ||
207 | - <!--<systemPath>${project.basedir}/lib/cxf-2.3.2.jar</systemPath>--> | ||
208 | - <!--</dependency>--> | ||
209 | - <!--<dependency>--> | ||
210 | - <!--<groupId>org.apache.cxf</groupId>--> | ||
211 | - <!--<artifactId>xjc</artifactId>--> | ||
212 | - <!--<version>2.3.2</version>--> | ||
213 | - <!--<scope>system</scope>--> | ||
214 | - <!--<systemPath>${project.basedir}/lib/cxf-xjc-bug671-2.3.2.jar</systemPath>--> | ||
215 | - <!--</dependency>--> | ||
216 | - <!--<dependency>--> | ||
217 | - <!--<groupId>maven.org.apache</groupId>--> | ||
218 | - <!--<artifactId>cxf</artifactId>--> | ||
219 | - <!--<version>2.0</version>--> | ||
220 | - <!--<scope>system</scope>--> | ||
221 | - <!--<systemPath>${project.basedir}/lib/cxf-manifest.jar</systemPath>--> | ||
222 | - <!--</dependency>--> | ||
223 | - <!--<dependency>--> | ||
224 | - <!--<groupId>org.apache.cxf.xjc</groupId>--> | ||
225 | - <!--<artifactId>dv</artifactId>--> | ||
226 | - <!--<version>2.3.2</version>--> | ||
227 | - <!--<scope>system</scope>--> | ||
228 | - <!--<systemPath>${project.basedir}/lib/cxf-xjc-dv-2.3.2.jar</systemPath>--> | ||
229 | - <!--</dependency>--> | ||
230 | - <!--<dependency>--> | ||
231 | - <!--<groupId>org.apache.cxf.xjc</groupId>--> | ||
232 | - <!--<artifactId>ts</artifactId>--> | ||
233 | - <!--<version>2.3.2</version>--> | ||
234 | - <!--<scope>system</scope>--> | ||
235 | - <!--<systemPath>${project.basedir}/lib/cxf-xjc-ts-2.3.2.jar</systemPath>--> | ||
236 | - <!--</dependency>--> | ||
237 | - <!--<dependency>--> | ||
238 | - <!--<groupId>org.apache.xml</groupId>--> | ||
239 | - <!--<artifactId>xmlsec</artifactId>--> | ||
240 | - <!--<version>1.4.4</version>--> | ||
241 | - <!--<scope>system</scope>--> | ||
242 | - <!--<systemPath>${project.basedir}/lib/xmlsec-1.4.4.jar</systemPath>--> | ||
243 | - <!--</dependency>--> | ||
244 | - <!--<dependency>--> | ||
245 | - <!--<groupId>com.ibm.disthub2.impl</groupId>--> | ||
246 | - <!--<artifactId>cl3e</artifactId>--> | ||
247 | - <!--<version>1.0.0</version>--> | ||
248 | - <!--<scope>system</scope>--> | ||
249 | - <!--<systemPath>${project.basedir}/lib/CL3Export.jar</systemPath>--> | ||
250 | - <!--</dependency>--> | ||
251 | - <!--<dependency>--> | ||
252 | - <!--<groupId>com.ibm.disthub2.impl</groupId>--> | ||
253 | - <!--<artifactId>cl3ne</artifactId>--> | ||
254 | - <!--<version>1.0.0</version>--> | ||
255 | - <!--<scope>system</scope>--> | ||
256 | - <!--<systemPath>${project.basedir}/lib/CL3Nonexport.jar</systemPath>--> | ||
257 | - <!--</dependency>--> | ||
258 | - <!--<dependency>--> | ||
259 | - <!--<groupId>com.ibm.mq</groupId>--> | ||
260 | - <!--<artifactId>axis2</artifactId>--> | ||
261 | - <!--<version>1.0.0</version>--> | ||
262 | - <!--<scope>system</scope>--> | ||
263 | - <!--<systemPath>${project.basedir}/lib/com.ibm.mq.axis2.jar</systemPath>--> | ||
264 | - <!--</dependency>--> | ||
265 | - <!--<dependency>--> | ||
266 | - <!--<groupId>com.ibm.mq</groupId>--> | ||
267 | - <!--<artifactId>commonservices</artifactId>--> | ||
268 | - <!--<version>1.0.0</version>--> | ||
269 | - <!--<scope>system</scope>--> | ||
270 | - <!--<systemPath>${project.basedir}/lib/com.ibm.mq.commonservices.jar</systemPath>--> | ||
271 | - <!--</dependency>--> | ||
272 | - <!--<dependency>--> | ||
273 | - <!--<groupId>com.ibm.mq</groupId>--> | ||
274 | - <!--<artifactId>defaultconfig</artifactId>--> | ||
275 | - <!--<version>1.0.0</version>--> | ||
276 | - <!--<scope>system</scope>--> | ||
277 | - <!--<systemPath>${project.basedir}/lib/com.ibm.mq.defaultconfig.jar</systemPath>--> | ||
278 | - <!--</dependency>--> | ||
279 | - <!--<dependency>--> | ||
280 | - <!--<groupId>com.ibm.mq</groupId>--> | ||
281 | - <!--<artifactId>fta</artifactId>--> | ||
282 | - <!--<version>1.0.0</version>--> | ||
283 | - <!--<scope>system</scope>--> | ||
284 | - <!--<systemPath>${project.basedir}/lib/com.ibm.mq.fta.jar</systemPath>--> | ||
285 | - <!--</dependency>--> | ||
286 | - <!--<dependency>--> | ||
287 | - <!--<groupId>com.ibm.mq</groupId>--> | ||
288 | - <!--<artifactId>headers</artifactId>--> | ||
289 | - <!--<version>1.0.0</version>--> | ||
290 | - <!--<scope>system</scope>--> | ||
291 | - <!--<systemPath>${project.basedir}/lib/com.ibm.mq.headers.jar</systemPath>--> | ||
292 | - <!--</dependency>--> | ||
293 | - <!--<dependency>--> | ||
294 | - <!--<groupId>com.ibm</groupId>--> | ||
295 | - <!--<artifactId>mq</artifactId>--> | ||
296 | - <!--<version>1.0.0</version>--> | ||
297 | - <!--<scope>system</scope>--> | ||
298 | - <!--<systemPath>${project.basedir}/lib/com.ibm.mq.jar</systemPath>--> | ||
299 | - <!--</dependency>--> | ||
300 | - <!--<dependency>--> | ||
301 | - <!--<groupId>com.ibm</groupId>--> | ||
302 | - <!--<artifactId>jmqi</artifactId>--> | ||
303 | - <!--<version>1.0.0</version>--> | ||
304 | - <!--<scope>system</scope>--> | ||
305 | - <!--<systemPath>${project.basedir}/lib/com.ibm.mq.jmqi.jar</systemPath>--> | ||
306 | - <!--</dependency>--> | ||
307 | - <!--<dependency>--> | ||
308 | - <!--<groupId>com.ibm.mq</groupId>--> | ||
309 | - <!--<artifactId>jms.nojndi</artifactId>--> | ||
310 | - <!--<version>1.0.0</version>--> | ||
311 | - <!--<scope>system</scope>--> | ||
312 | - <!--<systemPath>${project.basedir}/lib/com.ibm.mq.jms.Nojndi.jar</systemPath>--> | ||
313 | - <!--</dependency>--> | ||
314 | - <!--<dependency>--> | ||
315 | - <!--<groupId>com.ibm.mq</groupId>--> | ||
316 | - <!--<artifactId>pcf</artifactId>--> | ||
317 | - <!--<version>1.0.0</version>--> | ||
318 | - <!--<scope>system</scope>--> | ||
319 | - <!--<systemPath>${project.basedir}/lib/com.ibm.mq.pcf.jar</systemPath>--> | ||
320 | - <!--</dependency>--> | ||
321 | - <!--<dependency>--> | ||
322 | - <!--<groupId>com.ibm.mq</groupId>--> | ||
323 | - <!--<artifactId>postcard</artifactId>--> | ||
324 | - <!--<version>1.0.0</version>--> | ||
325 | - <!--<scope>system</scope>--> | ||
326 | - <!--<systemPath>${project.basedir}/lib/com.ibm.mq.postcard.jar</systemPath>--> | ||
327 | - <!--</dependency>--> | ||
328 | - <!--<dependency>--> | ||
329 | - <!--<groupId>com.ibm.mq</groupId>--> | ||
330 | - <!--<artifactId>soap</artifactId>--> | ||
331 | - <!--<version>1.0.0</version>--> | ||
332 | - <!--<scope>system</scope>--> | ||
333 | - <!--<systemPath>${project.basedir}/lib/com.ibm.mq.soap.jar</systemPath>--> | ||
334 | - <!--</dependency>--> | ||
335 | - <!--<dependency>--> | ||
336 | - <!--<groupId>com.ibm.mq</groupId>--> | ||
337 | - <!--<artifactId>tools.ras</artifactId>--> | ||
338 | - <!--<version>1.0.0</version>--> | ||
339 | - <!--<scope>system</scope>--> | ||
340 | - <!--<systemPath>${project.basedir}/lib/com.ibm.mq.tools.ras.jar</systemPath>--> | ||
341 | - <!--</dependency>--> | ||
342 | - <!--<dependency>--> | ||
343 | - <!--<groupId>com.ibm.mq</groupId>--> | ||
344 | - <!--<artifactId>etclient</artifactId>--> | ||
345 | - <!--<version>1.0.0</version>--> | ||
346 | - <!--<scope>system</scope>--> | ||
347 | - <!--<systemPath>${project.basedir}/lib/com.ibm.mqetclient.jar</systemPath>--> | ||
348 | - <!--</dependency>--> | ||
349 | - <!--<dependency>--> | ||
350 | - <!--<groupId>com.ibm</groupId>--> | ||
351 | - <!--<artifactId>mqjms</artifactId>--> | ||
352 | - <!--<version>1.0.0</version>--> | ||
353 | - <!--<scope>system</scope>--> | ||
354 | - <!--<systemPath>${project.basedir}/lib/com.ibm.mqjms.jar</systemPath>--> | ||
355 | - <!--<!– https://mvnrepository.com/artifact/javax.resource/connector –>--> | ||
356 | - <!--</dependency>--> | ||
357 | - <!--<dependency>--> | ||
358 | - <!--<groupId>javax.resource</groupId>--> | ||
359 | - <!--<artifactId>connector</artifactId>--> | ||
360 | - <!--<version>1.0</version>--> | ||
361 | - <!--<scope>system</scope>--> | ||
362 | - <!--<systemPath>${project.basedir}/lib/connector.jar</systemPath>--> | ||
363 | - <!--</dependency>--> | 97 | + <dependency> |
98 | + <groupId>com.github.xiaoymin</groupId> | ||
99 | + <artifactId>swagger-bootstrap-ui</artifactId> | ||
100 | + <version>1.9.6</version> | ||
101 | + </dependency> | ||
102 | + <dependency> | ||
103 | + <groupId>io.springfox</groupId> | ||
104 | + <artifactId>springfox-swagger2</artifactId> | ||
105 | + <version>2.9.2</version> | ||
106 | + </dependency> | ||
107 | + <dependency> | ||
108 | + <groupId>io.springfox</groupId> | ||
109 | + <artifactId>springfox-swagger-ui</artifactId> | ||
110 | + <version>2.9.2</version> | ||
111 | + </dependency> | ||
364 | </dependencies> | 112 | </dependencies> |
365 | 113 | ||
366 | <dependencyManagement> | 114 | <dependencyManagement> |
@@ -20,17 +20,15 @@ import org.springframework.web.client.RestTemplate; | @@ -20,17 +20,15 @@ import org.springframework.web.client.RestTemplate; | ||
20 | @EnableDiscoveryClient | 20 | @EnableDiscoveryClient |
21 | @EnableTransactionManagement | 21 | @EnableTransactionManagement |
22 | @MapperScan("com.tianbo.analysis.dao") | 22 | @MapperScan("com.tianbo.analysis.dao") |
23 | -@ComponentScan({"com.tianbo.analysis"}) | ||
24 | -public class ImfClientApplication { | 23 | +public class NmmsAdminApplication { |
25 | 24 | ||
26 | public static void main(String[] args) { | 25 | public static void main(String[] args) { |
27 | - SpringApplication.run(ImfClientApplication.class, args); | 26 | + SpringApplication.run(NmmsAdminApplication.class, args); |
28 | } | 27 | } |
29 | 28 | ||
30 | @Bean | 29 | @Bean |
31 | @LoadBalanced | 30 | @LoadBalanced |
32 | RestTemplate restTemplate(RestTemplateBuilder builder){ | 31 | RestTemplate restTemplate(RestTemplateBuilder builder){ |
33 | - | ||
34 | return builder.build(); | 32 | return builder.build(); |
35 | } | 33 | } |
36 | } | 34 | } |
1 | +package com.tianbo.analysis; | ||
2 | + | ||
3 | +import com.google.common.base.Predicates; | ||
4 | +import org.springframework.context.annotation.Bean; | ||
5 | +import org.springframework.context.annotation.Configuration; | ||
6 | +import springfox.documentation.builders.ApiInfoBuilder; | ||
7 | +import springfox.documentation.builders.PathSelectors; | ||
8 | +import springfox.documentation.builders.RequestHandlerSelectors; | ||
9 | +import springfox.documentation.service.ApiInfo; | ||
10 | +import springfox.documentation.service.Contact; | ||
11 | +import springfox.documentation.spi.DocumentationType; | ||
12 | +import springfox.documentation.spring.web.plugins.Docket; | ||
13 | +import springfox.documentation.swagger2.annotations.EnableSwagger2; | ||
14 | + | ||
15 | +@Configuration | ||
16 | +@EnableSwagger2 // Swagger的开关,表示已经启用Swagger | ||
17 | +public class SwaggerConfig { | ||
18 | + @Bean | ||
19 | + public Docket api() { | ||
20 | + Docket docket = new Docket(DocumentationType.SWAGGER_2) | ||
21 | + .apiInfo(apiInfo()) | ||
22 | + .pathMapping("/") | ||
23 | + .select() // 选择哪些路径和api会生成document | ||
24 | + .apis(RequestHandlerSelectors.any())// 对所有api进行监控 | ||
25 | +// .apis(RequestHandlerSelectors.basePackage("com.hanstrovsky.controller"))// 选择监控的package | ||
26 | +// .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))// 只监控有ApiOperation注解的接口 | ||
27 | + //不显示错误的接口地址 | ||
28 | + .paths(Predicates.not(PathSelectors.regex("/error.*")))//错误路径不监控 | ||
29 | + .paths(PathSelectors.regex("/.*"))// 对根下所有路径进行监控 | ||
30 | + .build(); | ||
31 | + return docket; | ||
32 | + } | ||
33 | + | ||
34 | + private ApiInfo apiInfo() { | ||
35 | + return new ApiInfoBuilder().title("新舱单1.0管理系统接口文档") | ||
36 | + .contact(new Contact("mrz", "", "17966059@qq.com")) | ||
37 | + .description("这是用Swagger动态生成的接口文档") | ||
38 | + .termsOfServiceUrl("NO terms of service") | ||
39 | + .license("The Apache License, Version 2.0") | ||
40 | + .licenseUrl("http://www.apache.org/licenses/LICENSE-2.0.html") | ||
41 | + .version("1.0") | ||
42 | + .build(); | ||
43 | + } | ||
44 | +} |
1 | +package com.tianbo.analysis.annotation; | ||
2 | + | ||
3 | + | ||
4 | +import java.lang.annotation.*; | ||
5 | + | ||
6 | +/** | ||
7 | + * 将前端注册、新增、编辑后提交的明文密码MD5加密 | ||
8 | + * 使用该注解不用再MD5转换了 | ||
9 | + * | ||
10 | + * @author adonis | ||
11 | + * | ||
12 | + */ | ||
13 | +@Target({ElementType.PARAMETER,ElementType.METHOD}) | ||
14 | +@Retention(RetentionPolicy.RUNTIME) | ||
15 | +@Documented | ||
16 | +@Inherited | ||
17 | +public @interface UserPermissionCheck { | ||
18 | + | ||
19 | + | ||
20 | +} |
1 | +package com.tianbo.analysis.annotation; | ||
2 | + | ||
3 | +import com.tianbo.analysis.dao.COMPANYUSERMapper; | ||
4 | +import com.tianbo.analysis.model.COMPANYUSER; | ||
5 | +import com.tianbo.analysis.model.ResultJson; | ||
6 | +import org.apache.commons.codec.digest.DigestUtils; | ||
7 | +import org.aspectj.lang.JoinPoint; | ||
8 | +import org.aspectj.lang.ProceedingJoinPoint; | ||
9 | +import org.aspectj.lang.annotation.*; | ||
10 | +import org.aspectj.lang.reflect.CodeSignature; | ||
11 | +import org.aspectj.lang.reflect.MethodSignature; | ||
12 | +import org.springframework.stereotype.Component; | ||
13 | + | ||
14 | +import javax.annotation.Resource; | ||
15 | +import java.lang.reflect.Method; | ||
16 | + | ||
17 | +@Aspect | ||
18 | +@Component | ||
19 | +public class UserPermissionCheckAOP { | ||
20 | + | ||
21 | + @Resource | ||
22 | + COMPANYUSERMapper companyuserMapper; | ||
23 | + | ||
24 | + @Pointcut("@annotation(com.tianbo.analysis.annotation.UserPermissionCheck)") | ||
25 | + public void annotationPointCut(){ | ||
26 | + | ||
27 | + } | ||
28 | + | ||
29 | + @Before("annotationPointCut()") | ||
30 | + public void before(JoinPoint joinPoint){ | ||
31 | + MethodSignature signature = (MethodSignature) joinPoint.getSignature(); | ||
32 | + Method method= signature.getMethod(); | ||
33 | + UserPermissionCheck annotation = method.getAnnotation(UserPermissionCheck.class); | ||
34 | + System.out.print("打印:权限校验 开始前"); | ||
35 | + } | ||
36 | + | ||
37 | + @Around("annotationPointCut()") | ||
38 | + public Object advice(ProceedingJoinPoint joinPoint){ | ||
39 | + System.out.println("通知之开始"); | ||
40 | + Object[] args = joinPoint.getArgs(); | ||
41 | + String[] paramNames = ((CodeSignature) joinPoint.getSignature()).getParameterNames(); | ||
42 | + | ||
43 | + COMPANYUSER user = new COMPANYUSER(); | ||
44 | + if (args != null && args.length > 0) { | ||
45 | + for (int i = 0; i < paramNames.length; i++) { | ||
46 | + System.out.println("参数>>"+paramNames[i]+","+args[i]); | ||
47 | + if ("username".equals(paramNames[i])){ | ||
48 | + user.setCropCode(args[i].toString()); | ||
49 | + } | ||
50 | + if ("userid".equals(paramNames[i])){ | ||
51 | + user.setId(args[i].toString()); | ||
52 | + } | ||
53 | + } | ||
54 | + } | ||
55 | + | ||
56 | + Object retmsg=null; | ||
57 | + try { | ||
58 | + //检查用户名与用户ID是否一致 | ||
59 | + COMPANYUSER usercheck = companyuserMapper.selectByIdAndName(user); | ||
60 | + | ||
61 | + if (usercheck==null){ | ||
62 | + //todo:检查用户页面访问权限。权限不对或者用户名不一致 都返回401 | ||
63 | + return new ResultJson("401","无访问权限"); | ||
64 | + } | ||
65 | + | ||
66 | + retmsg=joinPoint.proceed(args); | ||
67 | + System.err.println("++++++++"+retmsg); | ||
68 | + } catch (Throwable e) { | ||
69 | + e.printStackTrace(); | ||
70 | + } | ||
71 | + System.out.println("通知之结束"); | ||
72 | + return retmsg; | ||
73 | + } | ||
74 | + | ||
75 | + @After("annotationPointCut()") | ||
76 | + public void after(){ | ||
77 | + System.out.println("after方法执行后"); | ||
78 | + } | ||
79 | + | ||
80 | +} |
1 | +package com.tianbo.analysis.controller; | ||
2 | + | ||
3 | + | ||
4 | +import com.tianbo.analysis.model.CarAndWayBill; | ||
5 | +import com.tianbo.analysis.model.ResultJson; | ||
6 | +import com.tianbo.analysis.service.ArriveMasterService; | ||
7 | +import com.tianbo.analysis.tools.WaybillTools; | ||
8 | +import io.swagger.annotations.ApiOperation; | ||
9 | +import org.springframework.beans.factory.annotation.Autowired; | ||
10 | +import org.springframework.web.bind.annotation.*; | ||
11 | + | ||
12 | + | ||
13 | +/** | ||
14 | + * 运抵接口 | ||
15 | + */ | ||
16 | +@RestController | ||
17 | +@RequestMapping("/arrive/") | ||
18 | +public class ArrivedAMasterController { | ||
19 | + | ||
20 | + @Autowired | ||
21 | + ArriveMasterService arriveMasterService; | ||
22 | + | ||
23 | + @ApiOperation(value = "提前运抵接口",notes = "接收卡口车辆过卡放行后的通知,车单数据") | ||
24 | + @PostMapping("forkako") | ||
25 | + public ResultJson applyfor(@RequestBody CarAndWayBill carAndWayBill){ | ||
26 | + boolean result = arriveMasterService.arrivedAhead(carAndWayBill); | ||
27 | + return result? new ResultJson("200","处理完毕"):new ResultJson("处理失败"); | ||
28 | + } | ||
29 | + | ||
30 | + @RequestMapping("check") | ||
31 | + public void check(@RequestParam String waybill){ | ||
32 | + WaybillTools.checkWaybillFormat(waybill); | ||
33 | + } | ||
34 | + | ||
35 | +} |
1 | +package com.tianbo.analysis.controller; | ||
2 | +import com.github.pagehelper.PageInfo; | ||
3 | +import com.tianbo.analysis.annotation.UserPermissionCheck; | ||
4 | +import com.tianbo.analysis.model.DOMTRANSIT; | ||
5 | +import com.tianbo.analysis.model.ResultJson; | ||
6 | +import com.tianbo.analysis.service.DomTransitService; | ||
7 | +import com.tianbo.analysis.service.ValidateUpdate; | ||
8 | +import com.tianbo.util.Date.DateUtil; | ||
9 | +import io.swagger.annotations.ApiOperation; | ||
10 | +import org.apache.commons.lang.StringUtils; | ||
11 | +import org.springframework.beans.factory.annotation.Autowired; | ||
12 | +import org.springframework.validation.annotation.Validated; | ||
13 | +import org.springframework.web.bind.annotation.*; | ||
14 | + | ||
15 | +import java.util.Date; | ||
16 | + | ||
17 | +/** | ||
18 | + * 国内转运接口 | ||
19 | + */ | ||
20 | +@RestController | ||
21 | +@RequestMapping("/trans/") | ||
22 | +public class DomTransController { | ||
23 | + | ||
24 | + @Autowired | ||
25 | + DomTransitService domTransitService; | ||
26 | + | ||
27 | + @ApiOperation(value = "添加转运申请") | ||
28 | + @PostMapping("dom") | ||
29 | + @UserPermissionCheck | ||
30 | + public ResultJson add(@RequestBody DOMTRANSIT domtransit,@CookieValue("username") String username,@CookieValue("userid") String userid){ | ||
31 | + domtransit.setUserName(username); | ||
32 | + return domTransitService.insertSelective(domtransit)>0 ? new ResultJson("200","添加成功") :new ResultJson("400","添加失败"); | ||
33 | + } | ||
34 | + | ||
35 | + @ApiOperation(value = "删除转运申请") | ||
36 | + @DeleteMapping("dom") | ||
37 | + @UserPermissionCheck | ||
38 | + public ResultJson del(@RequestBody DOMTRANSIT domtransit,@CookieValue("username") String username,@CookieValue("userid") String userid){ | ||
39 | + return domTransitService.deleteByPrimaryKey(domtransit.getId())>0 ? new ResultJson("200","删除成功") :new ResultJson("400","删除失败"); | ||
40 | + } | ||
41 | + | ||
42 | + @ApiOperation(value = "修改转运申请",notes = "id必须传") | ||
43 | + @PutMapping("dom") | ||
44 | + @UserPermissionCheck | ||
45 | + public ResultJson update(@Validated(ValidateUpdate.class) @RequestBody DOMTRANSIT domtransit,@CookieValue("username") String username,@CookieValue("userid") String userid){ | ||
46 | + return domTransitService.updateByPrimaryKeySelective(domtransit)>0 ? new ResultJson("200","修改成功") :new ResultJson("400","修改失败"); | ||
47 | + } | ||
48 | + | ||
49 | + | ||
50 | + @ApiOperation(value = "转运申请查询搜索",notes = "awba转运前主单,awbh转运前分单,flightDate,flightNo转运前航班信息") | ||
51 | + @GetMapping("dom") | ||
52 | + @UserPermissionCheck | ||
53 | + public ResultJson<PageInfo<DOMTRANSIT>> select(@RequestParam(value = "pageNum",required = false,defaultValue = "1") | ||
54 | + int pageNum, | ||
55 | + @RequestParam(value = "pageSize",required = false,defaultValue = "10") | ||
56 | + int pageSize, | ||
57 | + @RequestParam(value = "originMasterwaybill",required = false) String awba, | ||
58 | + @RequestParam(value = "originHousewaybill",required = false) String awbh, | ||
59 | + @RequestParam(value = "originFlightdate",required = false) String flightDate, | ||
60 | + @RequestParam(value = "originFlightno",required = false) String flightNo, | ||
61 | + @CookieValue("username") String username, | ||
62 | + @CookieValue("userid") String userid){ | ||
63 | + DOMTRANSIT domtransit = new DOMTRANSIT(); | ||
64 | + domtransit.setOriginMasterwaybill(awba); | ||
65 | + domtransit.setOriginHousewaybill(awbh); | ||
66 | + domtransit.setOriginFlightno(flightNo); | ||
67 | + if (!"admin".equals(username)){ | ||
68 | + domtransit.setUserName(username); | ||
69 | + } | ||
70 | + if(StringUtils.isNotEmpty(flightDate)){ | ||
71 | + domtransit.setOriginFlightdate(DateUtil.parseDate(flightDate,"yyyy-MM-dd")); | ||
72 | + } | ||
73 | + return new ResultJson<PageInfo<DOMTRANSIT>>("200","success",domTransitService.selectList(domtransit,pageNum,pageSize)); | ||
74 | + } | ||
75 | + | ||
76 | + @ApiOperation(value = "预留审核接口",notes = "中转审核") | ||
77 | + @PutMapping("audit") | ||
78 | + public ResultJson audit(){ | ||
79 | + return new ResultJson("200", "ok"); | ||
80 | + } | ||
81 | +} |
1 | package com.tianbo.analysis.controller; | 1 | package com.tianbo.analysis.controller; |
2 | 2 | ||
3 | +import com.tianbo.analysis.dao.COMPANYUSERMapper; | ||
3 | import com.tianbo.analysis.dao.ORIGINMANIFESTMASTERMapper; | 4 | import com.tianbo.analysis.dao.ORIGINMANIFESTMASTERMapper; |
4 | -import com.tianbo.analysis.model.CUSTOMSMESSAGE; | ||
5 | -import com.tianbo.analysis.model.ORIGINMANIFESTMASTER; | ||
6 | -import com.tianbo.analysis.model.ResultJson; | 5 | +import com.tianbo.analysis.model.*; |
7 | import com.tianbo.analysis.service.OriginService; | 6 | import com.tianbo.analysis.service.OriginService; |
8 | import com.tianbo.util.Date.DateUtil; | 7 | import com.tianbo.util.Date.DateUtil; |
9 | 8 | ||
9 | +import io.swagger.annotations.ApiOperation; | ||
10 | +import lombok.extern.slf4j.Slf4j; | ||
10 | import org.springframework.beans.factory.annotation.Autowired; | 11 | import org.springframework.beans.factory.annotation.Autowired; |
11 | import org.springframework.web.bind.annotation.*; | 12 | import org.springframework.web.bind.annotation.*; |
12 | 13 | ||
13 | import javax.annotation.Resource; | 14 | import javax.annotation.Resource; |
14 | import java.util.Date; | 15 | import java.util.Date; |
15 | import java.util.List; | 16 | import java.util.List; |
17 | +import java.util.Map; | ||
18 | +import java.util.UUID; | ||
16 | 19 | ||
20 | +@Slf4j | ||
17 | @RestController | 21 | @RestController |
18 | @RequestMapping("/nmms/dev") | 22 | @RequestMapping("/nmms/dev") |
19 | public class NmmsController { | 23 | public class NmmsController { |
@@ -24,7 +28,10 @@ public class NmmsController { | @@ -24,7 +28,10 @@ public class NmmsController { | ||
24 | @Autowired | 28 | @Autowired |
25 | OriginService originService; | 29 | OriginService originService; |
26 | 30 | ||
31 | + @Resource | ||
32 | + COMPANYUSERMapper companyuserMapper; | ||
27 | 33 | ||
34 | + @ApiOperation(value = "删除分单信息", notes = "awba主单号格式\\d{3}-\\d{8},awbh分单号") | ||
28 | @DeleteMapping("/delOriginAWBH") | 35 | @DeleteMapping("/delOriginAWBH") |
29 | public ResultJson getCustomMessageId(@RequestParam(value = "awba",required = true) String awba, | 36 | public ResultJson getCustomMessageId(@RequestParam(value = "awba",required = true) String awba, |
30 | @RequestParam(value = "awbh",required = true) String awbh, | 37 | @RequestParam(value = "awbh",required = true) String awbh, |
@@ -35,6 +42,51 @@ public class NmmsController { | @@ -35,6 +42,51 @@ public class NmmsController { | ||
35 | ORIGINMANIFESTMASTER originmanifestmaster = new ORIGINMANIFESTMASTER(awba,flight_date,flightNo); | 42 | ORIGINMANIFESTMASTER originmanifestmaster = new ORIGINMANIFESTMASTER(awba,flight_date,flightNo); |
36 | originmanifestmaster = originmanifestmasterMapper.selectByAHBA(originmanifestmaster); | 43 | originmanifestmaster = originmanifestmasterMapper.selectByAHBA(originmanifestmaster); |
37 | return originService.deleteAwbh(originmanifestmaster.getAutoid())>0 ? new ResultJson("200","删除成功") : new ResultJson("200","删除失败"); | 44 | return originService.deleteAwbh(originmanifestmaster.getAutoid())>0 ? new ResultJson("200","删除成功") : new ResultJson("200","删除失败"); |
45 | + } | ||
46 | + | ||
47 | + /** | ||
48 | + * 资源同步 | ||
49 | + * @param uam 资源同步实体 | ||
50 | + * @return | ||
51 | + * @throws Exception | ||
52 | + */ | ||
53 | + @ApiOperation(value = "统一认证平台同步资源接口", notes = "用户信息同步") | ||
54 | + @PostMapping(value = "/userSynchronization") | ||
55 | + @ResponseBody | ||
56 | + public ResultMessage userSynchronization(@RequestBody UAM uam) throws Exception { | ||
57 | + if ("user".equals(uam.getResType())){ | ||
58 | + | ||
59 | + List<UserData> list = uam.getData(); | ||
60 | + // 判断该用户是否存在 | ||
61 | + int i = 0; | ||
62 | + for (UserData userData: list){ | ||
63 | + log.info("用户信息:{}", userData); | ||
64 | + COMPANYUSER companyuser = companyuserMapper.selectByUsername(userData.getLOGIN_NAME()); | ||
65 | + if (companyuser != null){ | ||
66 | + companyuser.setPassword(userData.getPWD()); | ||
67 | + companyuser.setZipCode(userData.getUSER_ID()); | ||
68 | + log.info("通过账号为条件更新"); | ||
69 | + i = companyuserMapper.updateByPrimaryKeySelective(companyuser); | ||
70 | + }else { | ||
71 | + COMPANYUSER kakoUser = new COMPANYUSER(); | ||
72 | + kakoUser.setId(UUID.randomUUID().toString()); | ||
73 | + kakoUser.setCropCode(userData.getLOGIN_NAME()); | ||
74 | + kakoUser.setPassword(userData.getPWD()); | ||
75 | + kakoUser.setZipCode(userData.getUSER_ID()); | ||
76 | + kakoUser.setTelCo(userData.getMOBILE()); | ||
77 | + kakoUser.setFullName(userData.getUSER_NAME()); | ||
78 | + kakoUser.setCreateDate(new Date()); | ||
79 | + kakoUser.setCustomsCode("4604"); | ||
80 | + kakoUser.setCropType(userData.getUSER_TITLE()); | ||
81 | + kakoUser.setAddrCo(userData.getOFFICE_ADDRESS()); | ||
82 | + log.info("账号统一认证id都不在 新增"); | ||
83 | + i = companyuserMapper.insertSelective(kakoUser); | ||
84 | + } | ||
85 | + } | ||
38 | 86 | ||
87 | + return i > 0 ? new ResultMessage("200","资源同步成功"):new ResultMessage("202", "资源同步失败"); | ||
39 | } | 88 | } |
89 | + return new ResultMessage("201","不是用户信息"); | ||
90 | + } | ||
91 | + | ||
40 | } | 92 | } |
1 | +package com.tianbo.analysis.dao; | ||
2 | + | ||
3 | +import com.tianbo.analysis.model.ARRIVEDMASTER; | ||
4 | + | ||
5 | +import java.util.List; | ||
6 | + | ||
7 | +public interface ARRIVEDMASTERMapper { | ||
8 | + int deleteByPrimaryKey(String autoid); | ||
9 | + | ||
10 | + int insert(ARRIVEDMASTER record); | ||
11 | + | ||
12 | + int insertSelective(ARRIVEDMASTER record); | ||
13 | + | ||
14 | + ARRIVEDMASTER selectByPrimaryKey(String autoid); | ||
15 | + | ||
16 | + List<ARRIVEDMASTER> selectByWaybillNo(String waybillnomaster); | ||
17 | + | ||
18 | + int updateByPrimaryKeySelective(ARRIVEDMASTER record); | ||
19 | + | ||
20 | + int updateByPrimaryKey(ARRIVEDMASTER record); | ||
21 | +} |
1 | +package com.tianbo.analysis.dao; | ||
2 | + | ||
3 | +import com.tianbo.analysis.model.ARRIVEDSECONDARY; | ||
4 | + | ||
5 | +import java.util.List; | ||
6 | + | ||
7 | +public interface ARRIVEDSECONDARYMapper { | ||
8 | + int deleteByPrimaryKey(String autoid); | ||
9 | + | ||
10 | + int insert(ARRIVEDSECONDARY record); | ||
11 | + | ||
12 | + int insertSelective(ARRIVEDSECONDARY record); | ||
13 | + | ||
14 | + ARRIVEDSECONDARY selectByPrimaryKey(String autoid); | ||
15 | + | ||
16 | + List<ARRIVEDSECONDARY> selectByWaybillNo(ARRIVEDSECONDARY record); | ||
17 | + | ||
18 | + int updateByPrimaryKeySelective(ARRIVEDSECONDARY record); | ||
19 | + | ||
20 | + int updateByPrimaryKey(ARRIVEDSECONDARY record); | ||
21 | +} |
1 | +package com.tianbo.analysis.dao; | ||
2 | + | ||
3 | +import com.tianbo.analysis.model.COMPANYUSER; | ||
4 | + | ||
5 | +public interface COMPANYUSERMapper { | ||
6 | + int deleteByPrimaryKey(String id); | ||
7 | + | ||
8 | + int insert(COMPANYUSER record); | ||
9 | + | ||
10 | + int insertSelective(COMPANYUSER record); | ||
11 | + | ||
12 | + COMPANYUSER selectByPrimaryKey(String id); | ||
13 | + | ||
14 | + COMPANYUSER selectByUsername(String name); | ||
15 | + | ||
16 | + COMPANYUSER selectByIdAndName(COMPANYUSER record); | ||
17 | + | ||
18 | + int updateByPrimaryKeySelective(COMPANYUSER record); | ||
19 | + | ||
20 | + int updateByPrimaryKey(COMPANYUSER record); | ||
21 | +} |
1 | +package com.tianbo.analysis.dao; | ||
2 | + | ||
3 | +import com.tianbo.analysis.model.DOMTRANSIT; | ||
4 | + | ||
5 | +import java.util.List; | ||
6 | + | ||
7 | +public interface DOMTRANSITMapper { | ||
8 | + int deleteByPrimaryKey(String id); | ||
9 | + | ||
10 | + int insert(DOMTRANSIT record); | ||
11 | + | ||
12 | + int insertSelective(DOMTRANSIT record); | ||
13 | + | ||
14 | + DOMTRANSIT selectByPrimaryKey(String id); | ||
15 | + | ||
16 | + List<DOMTRANSIT> selectList(DOMTRANSIT record); | ||
17 | + | ||
18 | + int updateByPrimaryKeySelective(DOMTRANSIT record); | ||
19 | + | ||
20 | + int updateByPrimaryKey(DOMTRANSIT record); | ||
21 | +} |
1 | +package com.tianbo.analysis.dao; | ||
2 | + | ||
3 | +import com.tianbo.analysis.model.PREPAREMASTER; | ||
4 | + | ||
5 | +import java.util.List; | ||
6 | + | ||
7 | +public interface PREPAREMASTERMapper { | ||
8 | + int deleteByPrimaryKey(String autoid); | ||
9 | + | ||
10 | + int insert(PREPAREMASTER record); | ||
11 | + | ||
12 | + int insertSelective(PREPAREMASTER record); | ||
13 | + | ||
14 | + PREPAREMASTER selectByPrimaryKey(String autoid); | ||
15 | + | ||
16 | + /** | ||
17 | + * 根据主单号查询需要提前运抵的预配 | ||
18 | + * @param waybillNo | ||
19 | + * @return | ||
20 | + */ | ||
21 | + List<PREPAREMASTER> selectArrivedAheadByWaybillNo(String waybillNo); | ||
22 | + | ||
23 | + int updateByPrimaryKeySelective(PREPAREMASTER record); | ||
24 | + | ||
25 | + int updateByPrimaryKey(PREPAREMASTER record); | ||
26 | +} |
1 | +package com.tianbo.analysis.dao; | ||
2 | + | ||
3 | +import com.tianbo.analysis.model.PREPARESECONDARY; | ||
4 | + | ||
5 | +import java.util.List; | ||
6 | + | ||
7 | +public interface PREPARESECONDARYMapper { | ||
8 | + int deleteByPrimaryKey(String autoid); | ||
9 | + | ||
10 | + int insert(PREPARESECONDARY record); | ||
11 | + | ||
12 | + int insertSelective(PREPARESECONDARY record); | ||
13 | + | ||
14 | + PREPARESECONDARY selectByPrimaryKey(String autoid); | ||
15 | + | ||
16 | + /** | ||
17 | + * 根据主单ID查分单 | ||
18 | + * @param masterid | ||
19 | + * @return | ||
20 | + */ | ||
21 | + List<PREPARESECONDARY> selectByMasterKey(String masterid); | ||
22 | + | ||
23 | + int updateByPrimaryKeySelective(PREPARESECONDARY record); | ||
24 | + | ||
25 | + int updateByPrimaryKey(PREPARESECONDARY record); | ||
26 | +} |
1 | +package com.tianbo.analysis.model; | ||
2 | + | ||
3 | +import java.util.Date; | ||
4 | + | ||
5 | +public class ARRIVEDMASTER { | ||
6 | + private String autoid; | ||
7 | + | ||
8 | + private String waybillnomaster; | ||
9 | + | ||
10 | + private String tcdName; | ||
11 | + | ||
12 | + private String tcdTypecode; | ||
13 | + | ||
14 | + private String flightno; | ||
15 | + | ||
16 | + private Date flightdate; | ||
17 | + | ||
18 | + private String carrier; | ||
19 | + | ||
20 | + private String originatingstation; | ||
21 | + | ||
22 | + private String oName; | ||
23 | + | ||
24 | + private String destinationstation; | ||
25 | + | ||
26 | + private String fdName; | ||
27 | + | ||
28 | + private String arrivedtotalpiece; | ||
29 | + | ||
30 | + private String totalpiecequantity; | ||
31 | + | ||
32 | + private String arrivedtotalweight; | ||
33 | + | ||
34 | + private String grossweightmeasureuc; | ||
35 | + | ||
36 | + private String totalgrossweightmeasure; | ||
37 | + | ||
38 | + private String totalgrossweightmeasureuc; | ||
39 | + | ||
40 | + private String chargeableweightmeasure; | ||
41 | + | ||
42 | + private String chargeableweightmeasureuc; | ||
43 | + | ||
44 | + private Date arriveddate; | ||
45 | + | ||
46 | + private String transportsplitdescription; | ||
47 | + | ||
48 | + private String customscode; | ||
49 | + | ||
50 | + private String productname; | ||
51 | + | ||
52 | + private String status; | ||
53 | + | ||
54 | + private String receiptinformation; | ||
55 | + | ||
56 | + private Date createdate; | ||
57 | + | ||
58 | + private String arrivedAhead; | ||
59 | + | ||
60 | + public String getAutoid() { | ||
61 | + return autoid; | ||
62 | + } | ||
63 | + | ||
64 | + public void setAutoid(String autoid) { | ||
65 | + this.autoid = autoid == null ? null : autoid.trim(); | ||
66 | + } | ||
67 | + | ||
68 | + public String getWaybillnomaster() { | ||
69 | + return waybillnomaster; | ||
70 | + } | ||
71 | + | ||
72 | + public void setWaybillnomaster(String waybillnomaster) { | ||
73 | + this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim(); | ||
74 | + } | ||
75 | + | ||
76 | + public String getTcdName() { | ||
77 | + return tcdName; | ||
78 | + } | ||
79 | + | ||
80 | + public void setTcdName(String tcdName) { | ||
81 | + this.tcdName = tcdName == null ? null : tcdName.trim(); | ||
82 | + } | ||
83 | + | ||
84 | + public String getTcdTypecode() { | ||
85 | + return tcdTypecode; | ||
86 | + } | ||
87 | + | ||
88 | + public void setTcdTypecode(String tcdTypecode) { | ||
89 | + this.tcdTypecode = tcdTypecode == null ? null : tcdTypecode.trim(); | ||
90 | + } | ||
91 | + | ||
92 | + public String getFlightno() { | ||
93 | + return flightno; | ||
94 | + } | ||
95 | + | ||
96 | + public void setFlightno(String flightno) { | ||
97 | + this.flightno = flightno == null ? null : flightno.trim(); | ||
98 | + } | ||
99 | + | ||
100 | + public Date getFlightdate() { | ||
101 | + return flightdate; | ||
102 | + } | ||
103 | + | ||
104 | + public void setFlightdate(Date flightdate) { | ||
105 | + this.flightdate = flightdate; | ||
106 | + } | ||
107 | + | ||
108 | + public String getCarrier() { | ||
109 | + return carrier; | ||
110 | + } | ||
111 | + | ||
112 | + public void setCarrier(String carrier) { | ||
113 | + this.carrier = carrier == null ? null : carrier.trim(); | ||
114 | + } | ||
115 | + | ||
116 | + public String getOriginatingstation() { | ||
117 | + return originatingstation; | ||
118 | + } | ||
119 | + | ||
120 | + public void setOriginatingstation(String originatingstation) { | ||
121 | + this.originatingstation = originatingstation == null ? null : originatingstation.trim(); | ||
122 | + } | ||
123 | + | ||
124 | + public String getoName() { | ||
125 | + return oName; | ||
126 | + } | ||
127 | + | ||
128 | + public void setoName(String oName) { | ||
129 | + this.oName = oName == null ? null : oName.trim(); | ||
130 | + } | ||
131 | + | ||
132 | + public String getDestinationstation() { | ||
133 | + return destinationstation; | ||
134 | + } | ||
135 | + | ||
136 | + public void setDestinationstation(String destinationstation) { | ||
137 | + this.destinationstation = destinationstation == null ? null : destinationstation.trim(); | ||
138 | + } | ||
139 | + | ||
140 | + public String getFdName() { | ||
141 | + return fdName; | ||
142 | + } | ||
143 | + | ||
144 | + public void setFdName(String fdName) { | ||
145 | + this.fdName = fdName == null ? null : fdName.trim(); | ||
146 | + } | ||
147 | + | ||
148 | + public String getArrivedtotalpiece() { | ||
149 | + return arrivedtotalpiece; | ||
150 | + } | ||
151 | + | ||
152 | + public void setArrivedtotalpiece(String arrivedtotalpiece) { | ||
153 | + this.arrivedtotalpiece = arrivedtotalpiece == null ? null : arrivedtotalpiece.trim(); | ||
154 | + } | ||
155 | + | ||
156 | + public String getTotalpiecequantity() { | ||
157 | + return totalpiecequantity; | ||
158 | + } | ||
159 | + | ||
160 | + public void setTotalpiecequantity(String totalpiecequantity) { | ||
161 | + this.totalpiecequantity = totalpiecequantity == null ? null : totalpiecequantity.trim(); | ||
162 | + } | ||
163 | + | ||
164 | + public String getArrivedtotalweight() { | ||
165 | + return arrivedtotalweight; | ||
166 | + } | ||
167 | + | ||
168 | + public void setArrivedtotalweight(String arrivedtotalweight) { | ||
169 | + this.arrivedtotalweight = arrivedtotalweight == null ? null : arrivedtotalweight.trim(); | ||
170 | + } | ||
171 | + | ||
172 | + public String getGrossweightmeasureuc() { | ||
173 | + return grossweightmeasureuc; | ||
174 | + } | ||
175 | + | ||
176 | + public void setGrossweightmeasureuc(String grossweightmeasureuc) { | ||
177 | + this.grossweightmeasureuc = grossweightmeasureuc == null ? null : grossweightmeasureuc.trim(); | ||
178 | + } | ||
179 | + | ||
180 | + public String getTotalgrossweightmeasure() { | ||
181 | + return totalgrossweightmeasure; | ||
182 | + } | ||
183 | + | ||
184 | + public void setTotalgrossweightmeasure(String totalgrossweightmeasure) { | ||
185 | + this.totalgrossweightmeasure = totalgrossweightmeasure == null ? null : totalgrossweightmeasure.trim(); | ||
186 | + } | ||
187 | + | ||
188 | + public String getTotalgrossweightmeasureuc() { | ||
189 | + return totalgrossweightmeasureuc; | ||
190 | + } | ||
191 | + | ||
192 | + public void setTotalgrossweightmeasureuc(String totalgrossweightmeasureuc) { | ||
193 | + this.totalgrossweightmeasureuc = totalgrossweightmeasureuc == null ? null : totalgrossweightmeasureuc.trim(); | ||
194 | + } | ||
195 | + | ||
196 | + public String getChargeableweightmeasure() { | ||
197 | + return chargeableweightmeasure; | ||
198 | + } | ||
199 | + | ||
200 | + public void setChargeableweightmeasure(String chargeableweightmeasure) { | ||
201 | + this.chargeableweightmeasure = chargeableweightmeasure == null ? null : chargeableweightmeasure.trim(); | ||
202 | + } | ||
203 | + | ||
204 | + public String getChargeableweightmeasureuc() { | ||
205 | + return chargeableweightmeasureuc; | ||
206 | + } | ||
207 | + | ||
208 | + public void setChargeableweightmeasureuc(String chargeableweightmeasureuc) { | ||
209 | + this.chargeableweightmeasureuc = chargeableweightmeasureuc == null ? null : chargeableweightmeasureuc.trim(); | ||
210 | + } | ||
211 | + | ||
212 | + public Date getArriveddate() { | ||
213 | + return arriveddate; | ||
214 | + } | ||
215 | + | ||
216 | + public void setArriveddate(Date arriveddate) { | ||
217 | + this.arriveddate = arriveddate; | ||
218 | + } | ||
219 | + | ||
220 | + public String getTransportsplitdescription() { | ||
221 | + return transportsplitdescription; | ||
222 | + } | ||
223 | + | ||
224 | + public void setTransportsplitdescription(String transportsplitdescription) { | ||
225 | + this.transportsplitdescription = transportsplitdescription == null ? null : transportsplitdescription.trim(); | ||
226 | + } | ||
227 | + | ||
228 | + public String getCustomscode() { | ||
229 | + return customscode; | ||
230 | + } | ||
231 | + | ||
232 | + public void setCustomscode(String customscode) { | ||
233 | + this.customscode = customscode == null ? null : customscode.trim(); | ||
234 | + } | ||
235 | + | ||
236 | + public String getProductname() { | ||
237 | + return productname; | ||
238 | + } | ||
239 | + | ||
240 | + public void setProductname(String productname) { | ||
241 | + this.productname = productname == null ? null : productname.trim(); | ||
242 | + } | ||
243 | + | ||
244 | + public String getStatus() { | ||
245 | + return status; | ||
246 | + } | ||
247 | + | ||
248 | + public void setStatus(String status) { | ||
249 | + this.status = status == null ? null : status.trim(); | ||
250 | + } | ||
251 | + | ||
252 | + public String getReceiptinformation() { | ||
253 | + return receiptinformation; | ||
254 | + } | ||
255 | + | ||
256 | + public void setReceiptinformation(String receiptinformation) { | ||
257 | + this.receiptinformation = receiptinformation == null ? null : receiptinformation.trim(); | ||
258 | + } | ||
259 | + | ||
260 | + public Date getCreatedate() { | ||
261 | + return createdate; | ||
262 | + } | ||
263 | + | ||
264 | + public void setCreatedate(Date createdate) { | ||
265 | + this.createdate = createdate; | ||
266 | + } | ||
267 | + | ||
268 | + public String getArrivedAhead() { | ||
269 | + return arrivedAhead; | ||
270 | + } | ||
271 | + | ||
272 | + public void setArrivedAhead(String arrivedAhead) { | ||
273 | + this.arrivedAhead = arrivedAhead == null ? null : arrivedAhead.trim(); | ||
274 | + } | ||
275 | +} |
1 | +package com.tianbo.analysis.model; | ||
2 | + | ||
3 | +import java.util.Date; | ||
4 | + | ||
5 | +public class ARRIVEDSECONDARY { | ||
6 | + private String autoid; | ||
7 | + | ||
8 | + private String waybillnomaster; | ||
9 | + | ||
10 | + private String tcdName; | ||
11 | + | ||
12 | + private String tcdTypecode; | ||
13 | + | ||
14 | + private String waybillnosecondary; | ||
15 | + | ||
16 | + private String carrier; | ||
17 | + | ||
18 | + private String oId; | ||
19 | + | ||
20 | + private String oName; | ||
21 | + | ||
22 | + private String fdId; | ||
23 | + | ||
24 | + private String fdName; | ||
25 | + | ||
26 | + private String flightno; | ||
27 | + | ||
28 | + private Date flightdate; | ||
29 | + | ||
30 | + private String arrivedtotalpiece; | ||
31 | + | ||
32 | + private String totalpiecequantity; | ||
33 | + | ||
34 | + private String arrivedtotalweight; | ||
35 | + | ||
36 | + private String grossweightmeasureuc; | ||
37 | + | ||
38 | + private String totalgrossweightmeasure; | ||
39 | + | ||
40 | + private String totalgrossweightmeasureuc; | ||
41 | + | ||
42 | + private String chargeableweightmeasure; | ||
43 | + | ||
44 | + private String chargeableweightmeasureuc; | ||
45 | + | ||
46 | + private Date arriveddate; | ||
47 | + | ||
48 | + private String customscode; | ||
49 | + | ||
50 | + private String productname; | ||
51 | + | ||
52 | + private Date createdate; | ||
53 | + | ||
54 | + private String arrivedmasterid; | ||
55 | + | ||
56 | + private String transportsplitdescription; | ||
57 | + | ||
58 | + private String receiption; | ||
59 | + | ||
60 | + private String status; | ||
61 | + | ||
62 | + public String getAutoid() { | ||
63 | + return autoid; | ||
64 | + } | ||
65 | + | ||
66 | + public void setAutoid(String autoid) { | ||
67 | + this.autoid = autoid == null ? null : autoid.trim(); | ||
68 | + } | ||
69 | + | ||
70 | + public String getWaybillnomaster() { | ||
71 | + return waybillnomaster; | ||
72 | + } | ||
73 | + | ||
74 | + public void setWaybillnomaster(String waybillnomaster) { | ||
75 | + this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim(); | ||
76 | + } | ||
77 | + | ||
78 | + public String getTcdName() { | ||
79 | + return tcdName; | ||
80 | + } | ||
81 | + | ||
82 | + public void setTcdName(String tcdName) { | ||
83 | + this.tcdName = tcdName == null ? null : tcdName.trim(); | ||
84 | + } | ||
85 | + | ||
86 | + public String getTcdTypecode() { | ||
87 | + return tcdTypecode; | ||
88 | + } | ||
89 | + | ||
90 | + public void setTcdTypecode(String tcdTypecode) { | ||
91 | + this.tcdTypecode = tcdTypecode == null ? null : tcdTypecode.trim(); | ||
92 | + } | ||
93 | + | ||
94 | + public String getWaybillnosecondary() { | ||
95 | + return waybillnosecondary; | ||
96 | + } | ||
97 | + | ||
98 | + public void setWaybillnosecondary(String waybillnosecondary) { | ||
99 | + this.waybillnosecondary = waybillnosecondary == null ? null : waybillnosecondary.trim(); | ||
100 | + } | ||
101 | + | ||
102 | + public String getCarrier() { | ||
103 | + return carrier; | ||
104 | + } | ||
105 | + | ||
106 | + public void setCarrier(String carrier) { | ||
107 | + this.carrier = carrier == null ? null : carrier.trim(); | ||
108 | + } | ||
109 | + | ||
110 | + public String getoId() { | ||
111 | + return oId; | ||
112 | + } | ||
113 | + | ||
114 | + public void setoId(String oId) { | ||
115 | + this.oId = oId == null ? null : oId.trim(); | ||
116 | + } | ||
117 | + | ||
118 | + public String getoName() { | ||
119 | + return oName; | ||
120 | + } | ||
121 | + | ||
122 | + public void setoName(String oName) { | ||
123 | + this.oName = oName == null ? null : oName.trim(); | ||
124 | + } | ||
125 | + | ||
126 | + public String getFdId() { | ||
127 | + return fdId; | ||
128 | + } | ||
129 | + | ||
130 | + public void setFdId(String fdId) { | ||
131 | + this.fdId = fdId == null ? null : fdId.trim(); | ||
132 | + } | ||
133 | + | ||
134 | + public String getFdName() { | ||
135 | + return fdName; | ||
136 | + } | ||
137 | + | ||
138 | + public void setFdName(String fdName) { | ||
139 | + this.fdName = fdName == null ? null : fdName.trim(); | ||
140 | + } | ||
141 | + | ||
142 | + public String getFlightno() { | ||
143 | + return flightno; | ||
144 | + } | ||
145 | + | ||
146 | + public void setFlightno(String flightno) { | ||
147 | + this.flightno = flightno == null ? null : flightno.trim(); | ||
148 | + } | ||
149 | + | ||
150 | + public Date getFlightdate() { | ||
151 | + return flightdate; | ||
152 | + } | ||
153 | + | ||
154 | + public void setFlightdate(Date flightdate) { | ||
155 | + this.flightdate = flightdate; | ||
156 | + } | ||
157 | + | ||
158 | + public String getArrivedtotalpiece() { | ||
159 | + return arrivedtotalpiece; | ||
160 | + } | ||
161 | + | ||
162 | + public void setArrivedtotalpiece(String arrivedtotalpiece) { | ||
163 | + this.arrivedtotalpiece = arrivedtotalpiece == null ? null : arrivedtotalpiece.trim(); | ||
164 | + } | ||
165 | + | ||
166 | + public String getTotalpiecequantity() { | ||
167 | + return totalpiecequantity; | ||
168 | + } | ||
169 | + | ||
170 | + public void setTotalpiecequantity(String totalpiecequantity) { | ||
171 | + this.totalpiecequantity = totalpiecequantity == null ? null : totalpiecequantity.trim(); | ||
172 | + } | ||
173 | + | ||
174 | + public String getArrivedtotalweight() { | ||
175 | + return arrivedtotalweight; | ||
176 | + } | ||
177 | + | ||
178 | + public void setArrivedtotalweight(String arrivedtotalweight) { | ||
179 | + this.arrivedtotalweight = arrivedtotalweight == null ? null : arrivedtotalweight.trim(); | ||
180 | + } | ||
181 | + | ||
182 | + public String getGrossweightmeasureuc() { | ||
183 | + return grossweightmeasureuc; | ||
184 | + } | ||
185 | + | ||
186 | + public void setGrossweightmeasureuc(String grossweightmeasureuc) { | ||
187 | + this.grossweightmeasureuc = grossweightmeasureuc == null ? null : grossweightmeasureuc.trim(); | ||
188 | + } | ||
189 | + | ||
190 | + public String getTotalgrossweightmeasure() { | ||
191 | + return totalgrossweightmeasure; | ||
192 | + } | ||
193 | + | ||
194 | + public void setTotalgrossweightmeasure(String totalgrossweightmeasure) { | ||
195 | + this.totalgrossweightmeasure = totalgrossweightmeasure == null ? null : totalgrossweightmeasure.trim(); | ||
196 | + } | ||
197 | + | ||
198 | + public String getTotalgrossweightmeasureuc() { | ||
199 | + return totalgrossweightmeasureuc; | ||
200 | + } | ||
201 | + | ||
202 | + public void setTotalgrossweightmeasureuc(String totalgrossweightmeasureuc) { | ||
203 | + this.totalgrossweightmeasureuc = totalgrossweightmeasureuc == null ? null : totalgrossweightmeasureuc.trim(); | ||
204 | + } | ||
205 | + | ||
206 | + public String getChargeableweightmeasure() { | ||
207 | + return chargeableweightmeasure; | ||
208 | + } | ||
209 | + | ||
210 | + public void setChargeableweightmeasure(String chargeableweightmeasure) { | ||
211 | + this.chargeableweightmeasure = chargeableweightmeasure == null ? null : chargeableweightmeasure.trim(); | ||
212 | + } | ||
213 | + | ||
214 | + public String getChargeableweightmeasureuc() { | ||
215 | + return chargeableweightmeasureuc; | ||
216 | + } | ||
217 | + | ||
218 | + public void setChargeableweightmeasureuc(String chargeableweightmeasureuc) { | ||
219 | + this.chargeableweightmeasureuc = chargeableweightmeasureuc == null ? null : chargeableweightmeasureuc.trim(); | ||
220 | + } | ||
221 | + | ||
222 | + public Date getArriveddate() { | ||
223 | + return arriveddate; | ||
224 | + } | ||
225 | + | ||
226 | + public void setArriveddate(Date arriveddate) { | ||
227 | + this.arriveddate = arriveddate; | ||
228 | + } | ||
229 | + | ||
230 | + public String getCustomscode() { | ||
231 | + return customscode; | ||
232 | + } | ||
233 | + | ||
234 | + public void setCustomscode(String customscode) { | ||
235 | + this.customscode = customscode == null ? null : customscode.trim(); | ||
236 | + } | ||
237 | + | ||
238 | + public String getProductname() { | ||
239 | + return productname; | ||
240 | + } | ||
241 | + | ||
242 | + public void setProductname(String productname) { | ||
243 | + this.productname = productname == null ? null : productname.trim(); | ||
244 | + } | ||
245 | + | ||
246 | + public Date getCreatedate() { | ||
247 | + return createdate; | ||
248 | + } | ||
249 | + | ||
250 | + public void setCreatedate(Date createdate) { | ||
251 | + this.createdate = createdate; | ||
252 | + } | ||
253 | + | ||
254 | + public String getArrivedmasterid() { | ||
255 | + return arrivedmasterid; | ||
256 | + } | ||
257 | + | ||
258 | + public void setArrivedmasterid(String arrivedmasterid) { | ||
259 | + this.arrivedmasterid = arrivedmasterid == null ? null : arrivedmasterid.trim(); | ||
260 | + } | ||
261 | + | ||
262 | + public String getTransportsplitdescription() { | ||
263 | + return transportsplitdescription; | ||
264 | + } | ||
265 | + | ||
266 | + public void setTransportsplitdescription(String transportsplitdescription) { | ||
267 | + this.transportsplitdescription = transportsplitdescription == null ? null : transportsplitdescription.trim(); | ||
268 | + } | ||
269 | + | ||
270 | + public String getReceiption() { | ||
271 | + return receiption; | ||
272 | + } | ||
273 | + | ||
274 | + public void setReceiption(String receiption) { | ||
275 | + this.receiption = receiption == null ? null : receiption.trim(); | ||
276 | + } | ||
277 | + | ||
278 | + public String getStatus() { | ||
279 | + return status; | ||
280 | + } | ||
281 | + | ||
282 | + public void setStatus(String status) { | ||
283 | + this.status = status == null ? null : status.trim(); | ||
284 | + } | ||
285 | +} |
1 | +package com.tianbo.analysis.model; | ||
2 | + | ||
3 | +import java.util.Date; | ||
4 | + | ||
5 | +public class COMPANYUSER { | ||
6 | + private String id; | ||
7 | + | ||
8 | + private String cropCode; | ||
9 | + | ||
10 | + private String password; | ||
11 | + | ||
12 | + private String customsCode; | ||
13 | + | ||
14 | + private String orgCode; | ||
15 | + | ||
16 | + private String fullName; | ||
17 | + | ||
18 | + private String addrCo; | ||
19 | + | ||
20 | + private String lawMan; | ||
21 | + | ||
22 | + private String contacCo; | ||
23 | + | ||
24 | + private String telCo; | ||
25 | + | ||
26 | + private String cropType; | ||
27 | + | ||
28 | + private String zipCode; | ||
29 | + | ||
30 | + private Date createDate; | ||
31 | + | ||
32 | + public String getId() { | ||
33 | + return id; | ||
34 | + } | ||
35 | + | ||
36 | + public void setId(String id) { | ||
37 | + this.id = id == null ? null : id.trim(); | ||
38 | + } | ||
39 | + | ||
40 | + public String getCropCode() { | ||
41 | + return cropCode; | ||
42 | + } | ||
43 | + | ||
44 | + public void setCropCode(String cropCode) { | ||
45 | + this.cropCode = cropCode == null ? null : cropCode.trim(); | ||
46 | + } | ||
47 | + | ||
48 | + public String getPassword() { | ||
49 | + return password; | ||
50 | + } | ||
51 | + | ||
52 | + public void setPassword(String password) { | ||
53 | + this.password = password == null ? null : password.trim(); | ||
54 | + } | ||
55 | + | ||
56 | + public String getCustomsCode() { | ||
57 | + return customsCode; | ||
58 | + } | ||
59 | + | ||
60 | + public void setCustomsCode(String customsCode) { | ||
61 | + this.customsCode = customsCode == null ? null : customsCode.trim(); | ||
62 | + } | ||
63 | + | ||
64 | + public String getOrgCode() { | ||
65 | + return orgCode; | ||
66 | + } | ||
67 | + | ||
68 | + public void setOrgCode(String orgCode) { | ||
69 | + this.orgCode = orgCode == null ? null : orgCode.trim(); | ||
70 | + } | ||
71 | + | ||
72 | + public String getFullName() { | ||
73 | + return fullName; | ||
74 | + } | ||
75 | + | ||
76 | + public void setFullName(String fullName) { | ||
77 | + this.fullName = fullName == null ? null : fullName.trim(); | ||
78 | + } | ||
79 | + | ||
80 | + public String getAddrCo() { | ||
81 | + return addrCo; | ||
82 | + } | ||
83 | + | ||
84 | + public void setAddrCo(String addrCo) { | ||
85 | + this.addrCo = addrCo == null ? null : addrCo.trim(); | ||
86 | + } | ||
87 | + | ||
88 | + public String getLawMan() { | ||
89 | + return lawMan; | ||
90 | + } | ||
91 | + | ||
92 | + public void setLawMan(String lawMan) { | ||
93 | + this.lawMan = lawMan == null ? null : lawMan.trim(); | ||
94 | + } | ||
95 | + | ||
96 | + public String getContacCo() { | ||
97 | + return contacCo; | ||
98 | + } | ||
99 | + | ||
100 | + public void setContacCo(String contacCo) { | ||
101 | + this.contacCo = contacCo == null ? null : contacCo.trim(); | ||
102 | + } | ||
103 | + | ||
104 | + public String getTelCo() { | ||
105 | + return telCo; | ||
106 | + } | ||
107 | + | ||
108 | + public void setTelCo(String telCo) { | ||
109 | + this.telCo = telCo == null ? null : telCo.trim(); | ||
110 | + } | ||
111 | + | ||
112 | + public String getCropType() { | ||
113 | + return cropType; | ||
114 | + } | ||
115 | + | ||
116 | + public void setCropType(String cropType) { | ||
117 | + this.cropType = cropType == null ? null : cropType.trim(); | ||
118 | + } | ||
119 | + | ||
120 | + public String getZipCode() { | ||
121 | + return zipCode; | ||
122 | + } | ||
123 | + | ||
124 | + public void setZipCode(String zipCode) { | ||
125 | + this.zipCode = zipCode == null ? null : zipCode.trim(); | ||
126 | + } | ||
127 | + | ||
128 | + public Date getCreateDate() { | ||
129 | + return createDate; | ||
130 | + } | ||
131 | + | ||
132 | + public void setCreateDate(Date createDate) { | ||
133 | + this.createDate = createDate; | ||
134 | + } | ||
135 | +} |
1 | +package com.tianbo.analysis.model; | ||
2 | + | ||
3 | +import lombok.Data; | ||
4 | + | ||
5 | +import java.util.List; | ||
6 | + | ||
7 | +@Data | ||
8 | +public class CarAndWayBill { | ||
9 | + | ||
10 | + public String vname; | ||
11 | + public List<String> waybillList; | ||
12 | + public String masterList; | ||
13 | + | ||
14 | + @Override | ||
15 | + public String toString(){ | ||
16 | + return "vname="+vname+"masterList="+masterList; | ||
17 | + } | ||
18 | +} |
1 | +package com.tianbo.analysis.model; | ||
2 | + | ||
3 | +import com.fasterxml.jackson.annotation.JsonFormat; | ||
4 | +import com.tianbo.analysis.service.ValidateInsert; | ||
5 | +import com.tianbo.analysis.service.ValidateUpdate; | ||
6 | +import org.hibernate.validator.constraints.Length; | ||
7 | + | ||
8 | +import javax.validation.constraints.*; | ||
9 | +import java.math.BigDecimal; | ||
10 | +import java.util.Date; | ||
11 | + | ||
12 | +public class DOMTRANSIT { | ||
13 | + | ||
14 | + @NotNull(message="类型不能为null",groups= ValidateUpdate.class) | ||
15 | + private String id; | ||
16 | + | ||
17 | + @NotNull(message="类型不能为null",groups= ValidateInsert.class) | ||
18 | + @NotBlank(message="类型不能为空",groups=ValidateInsert.class) | ||
19 | + @Length(min = 3, max = 3, message = "转运类型 长度必须在 {min} - {max} 之间",groups={ValidateInsert.class, ValidateUpdate.class}) | ||
20 | + private String transitType; | ||
21 | + | ||
22 | + @DecimalMin(value = "1",message = "件数必须大于等于1",groups= {ValidateInsert.class, ValidateUpdate.class}) | ||
23 | + private BigDecimal piece; | ||
24 | + | ||
25 | + @DecimalMin(value = "0.01" ,message = "重量必须大于0",groups= {ValidateInsert.class, ValidateUpdate.class}) | ||
26 | + private BigDecimal weight; | ||
27 | + | ||
28 | + | ||
29 | + @NotNull(message="运单起始站不能为空",groups=ValidateInsert.class) | ||
30 | + private String originStation; | ||
31 | + | ||
32 | + @NotNull(message="运单目的站不能为空",groups=ValidateInsert.class) | ||
33 | + private String destinationStation; | ||
34 | + | ||
35 | + private String goodsdesen; | ||
36 | + | ||
37 | + private String goodsdescn; | ||
38 | + | ||
39 | + private String pack; | ||
40 | + | ||
41 | + @NotNull(message="转运前主运单号不能为空",groups=ValidateInsert.class) | ||
42 | + private String originMasterwaybill; | ||
43 | + | ||
44 | + private String originHousewaybill; | ||
45 | + | ||
46 | + @NotNull(message="转运前航班号不能为空",groups=ValidateInsert.class) | ||
47 | + private String originFlightno; | ||
48 | + | ||
49 | + @NotNull(message="转运前航班日期不能为空",groups=ValidateInsert.class) | ||
50 | + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") | ||
51 | + private Date originFlightdate; | ||
52 | + | ||
53 | + @NotNull(message="转运后主运单号不能为空",groups=ValidateInsert.class) | ||
54 | + private String transMasterwaybill; | ||
55 | + | ||
56 | + private String transHousewaybill; | ||
57 | + | ||
58 | + @NotNull(message="转运后航班号不能为空",groups=ValidateInsert.class) | ||
59 | + private String transFlightno; | ||
60 | + | ||
61 | + @NotNull(message="转运后航班日期不能为空",groups=ValidateInsert.class) | ||
62 | + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") | ||
63 | + private Date transFlightdate; | ||
64 | + | ||
65 | + private Date createDate; | ||
66 | + | ||
67 | + private Date modifyTime; | ||
68 | + | ||
69 | + private String modifyName; | ||
70 | + | ||
71 | + private String agentName; | ||
72 | + | ||
73 | + private String agentCode; | ||
74 | + | ||
75 | + @NotNull(message="申请人账号不能为空",groups=ValidateInsert.class) | ||
76 | + private String userName; | ||
77 | + | ||
78 | + private String userRealName; | ||
79 | + | ||
80 | + private String userTel; | ||
81 | + | ||
82 | + private BigDecimal status; | ||
83 | + | ||
84 | + private String approverAccount; | ||
85 | + | ||
86 | + private String approverDate; | ||
87 | + | ||
88 | + private String approverResoult; | ||
89 | + | ||
90 | + public String getId() { | ||
91 | + return id; | ||
92 | + } | ||
93 | + | ||
94 | + public void setId(String id) { | ||
95 | + this.id = id == null ? null : id.trim(); | ||
96 | + } | ||
97 | + | ||
98 | + public String getTransitType() { | ||
99 | + return transitType; | ||
100 | + } | ||
101 | + | ||
102 | + public void setTransitType(String transitType) { | ||
103 | + this.transitType = transitType == null ? null : transitType.trim(); | ||
104 | + } | ||
105 | + | ||
106 | + public BigDecimal getPiece() { | ||
107 | + return piece; | ||
108 | + } | ||
109 | + | ||
110 | + public void setPiece(BigDecimal piece) { | ||
111 | + this.piece = piece; | ||
112 | + } | ||
113 | + | ||
114 | + public BigDecimal getWeight() { | ||
115 | + return weight; | ||
116 | + } | ||
117 | + | ||
118 | + public void setWeight(BigDecimal weight) { | ||
119 | + this.weight = weight; | ||
120 | + } | ||
121 | + | ||
122 | + public String getOriginStation() { | ||
123 | + return originStation; | ||
124 | + } | ||
125 | + | ||
126 | + public void setOriginStation(String originStation) { | ||
127 | + this.originStation = originStation == null ? null : originStation.trim(); | ||
128 | + } | ||
129 | + | ||
130 | + public String getDestinationStation() { | ||
131 | + return destinationStation; | ||
132 | + } | ||
133 | + | ||
134 | + public void setDestinationStation(String destinationStation) { | ||
135 | + this.destinationStation = destinationStation == null ? null : destinationStation.trim(); | ||
136 | + } | ||
137 | + | ||
138 | + public String getGoodsdesen() { | ||
139 | + return goodsdesen; | ||
140 | + } | ||
141 | + | ||
142 | + public void setGoodsdesen(String goodsdesen) { | ||
143 | + this.goodsdesen = goodsdesen == null ? null : goodsdesen.trim(); | ||
144 | + } | ||
145 | + | ||
146 | + public String getGoodsdescn() { | ||
147 | + return goodsdescn; | ||
148 | + } | ||
149 | + | ||
150 | + public void setGoodsdescn(String goodsdescn) { | ||
151 | + this.goodsdescn = goodsdescn == null ? null : goodsdescn.trim(); | ||
152 | + } | ||
153 | + | ||
154 | + public String getPack() { | ||
155 | + return pack; | ||
156 | + } | ||
157 | + | ||
158 | + public void setPack(String pack) { | ||
159 | + this.pack = pack == null ? null : pack.trim(); | ||
160 | + } | ||
161 | + | ||
162 | + public String getOriginMasterwaybill() { | ||
163 | + return originMasterwaybill; | ||
164 | + } | ||
165 | + | ||
166 | + public void setOriginMasterwaybill(String originMasterwaybill) { | ||
167 | + this.originMasterwaybill = originMasterwaybill == null ? null : originMasterwaybill.trim(); | ||
168 | + } | ||
169 | + | ||
170 | + public String getOriginHousewaybill() { | ||
171 | + return originHousewaybill; | ||
172 | + } | ||
173 | + | ||
174 | + public void setOriginHousewaybill(String originHousewaybill) { | ||
175 | + this.originHousewaybill = originHousewaybill == null ? null : originHousewaybill.trim(); | ||
176 | + } | ||
177 | + | ||
178 | + public String getOriginFlightno() { | ||
179 | + return originFlightno; | ||
180 | + } | ||
181 | + | ||
182 | + public void setOriginFlightno(String originFlightno) { | ||
183 | + this.originFlightno = originFlightno == null ? null : originFlightno.trim(); | ||
184 | + } | ||
185 | + | ||
186 | + public Date getOriginFlightdate() { | ||
187 | + return originFlightdate; | ||
188 | + } | ||
189 | + | ||
190 | + public void setOriginFlightdate(Date originFlightdate) { | ||
191 | + this.originFlightdate = originFlightdate; | ||
192 | + } | ||
193 | + | ||
194 | + public String getTransMasterwaybill() { | ||
195 | + return transMasterwaybill; | ||
196 | + } | ||
197 | + | ||
198 | + public void setTransMasterwaybill(String transMasterwaybill) { | ||
199 | + this.transMasterwaybill = transMasterwaybill == null ? null : transMasterwaybill.trim(); | ||
200 | + } | ||
201 | + | ||
202 | + public String getTransHousewaybill() { | ||
203 | + return transHousewaybill; | ||
204 | + } | ||
205 | + | ||
206 | + public void setTransHousewaybill(String transHousewaybill) { | ||
207 | + this.transHousewaybill = transHousewaybill == null ? null : transHousewaybill.trim(); | ||
208 | + } | ||
209 | + | ||
210 | + public String getTransFlightno() { | ||
211 | + return transFlightno; | ||
212 | + } | ||
213 | + | ||
214 | + public void setTransFlightno(String transFlightno) { | ||
215 | + this.transFlightno = transFlightno == null ? null : transFlightno.trim(); | ||
216 | + } | ||
217 | + | ||
218 | + public Date getTransFlightdate() { | ||
219 | + return transFlightdate; | ||
220 | + } | ||
221 | + | ||
222 | + public void setTransFlightdate(Date transFlightdate) { | ||
223 | + this.transFlightdate = transFlightdate; | ||
224 | + } | ||
225 | + | ||
226 | + public Date getCreateDate() { | ||
227 | + return createDate; | ||
228 | + } | ||
229 | + | ||
230 | + public void setCreateDate(Date createDate) { | ||
231 | + this.createDate = createDate; | ||
232 | + } | ||
233 | + | ||
234 | + public Date getModifyTime() { | ||
235 | + return modifyTime; | ||
236 | + } | ||
237 | + | ||
238 | + public void setModifyTime(Date modifyTime) { | ||
239 | + this.modifyTime = modifyTime; | ||
240 | + } | ||
241 | + | ||
242 | + public String getModifyName() { | ||
243 | + return modifyName; | ||
244 | + } | ||
245 | + | ||
246 | + public void setModifyName(String modifyName) { | ||
247 | + this.modifyName = modifyName == null ? null : modifyName.trim(); | ||
248 | + } | ||
249 | + | ||
250 | + public String getAgentName() { | ||
251 | + return agentName; | ||
252 | + } | ||
253 | + | ||
254 | + public void setAgentName(String agentName) { | ||
255 | + this.agentName = agentName == null ? null : agentName.trim(); | ||
256 | + } | ||
257 | + | ||
258 | + public String getAgentCode() { | ||
259 | + return agentCode; | ||
260 | + } | ||
261 | + | ||
262 | + public void setAgentCode(String agentCode) { | ||
263 | + this.agentCode = agentCode == null ? null : agentCode.trim(); | ||
264 | + } | ||
265 | + | ||
266 | + public String getUserName() { | ||
267 | + return userName; | ||
268 | + } | ||
269 | + | ||
270 | + public void setUserName(String userName) { | ||
271 | + this.userName = userName == null ? null : userName.trim(); | ||
272 | + } | ||
273 | + | ||
274 | + public String getUserRealName() { | ||
275 | + return userRealName; | ||
276 | + } | ||
277 | + | ||
278 | + public void setUserRealName(String userRealName) { | ||
279 | + this.userRealName = userRealName == null ? null : userRealName.trim(); | ||
280 | + } | ||
281 | + | ||
282 | + public String getUserTel() { | ||
283 | + return userTel; | ||
284 | + } | ||
285 | + | ||
286 | + public void setUserTel(String userTel) { | ||
287 | + this.userTel = userTel == null ? null : userTel.trim(); | ||
288 | + } | ||
289 | + | ||
290 | + public BigDecimal getStatus() { | ||
291 | + return status; | ||
292 | + } | ||
293 | + | ||
294 | + public void setStatus(BigDecimal status) { | ||
295 | + this.status = status; | ||
296 | + } | ||
297 | + | ||
298 | + public String getApproverAccount() { | ||
299 | + return approverAccount; | ||
300 | + } | ||
301 | + | ||
302 | + public void setApproverAccount(String approverAccount) { | ||
303 | + this.approverAccount = approverAccount == null ? null : approverAccount.trim(); | ||
304 | + } | ||
305 | + | ||
306 | + public String getApproverDate() { | ||
307 | + return approverDate; | ||
308 | + } | ||
309 | + | ||
310 | + public void setApproverDate(String approverDate) { | ||
311 | + this.approverDate = approverDate == null ? null : approverDate.trim(); | ||
312 | + } | ||
313 | + | ||
314 | + public String getApproverResoult() { | ||
315 | + return approverResoult; | ||
316 | + } | ||
317 | + | ||
318 | + public void setApproverResoult(String approverResoult) { | ||
319 | + this.approverResoult = approverResoult == null ? null : approverResoult.trim(); | ||
320 | + } | ||
321 | +} |
1 | +package com.tianbo.analysis.model; | ||
2 | + | ||
3 | +import java.util.Date; | ||
4 | + | ||
5 | +public class PREPAREMASTER { | ||
6 | + private String autoid; | ||
7 | + | ||
8 | + private String flightno; | ||
9 | + | ||
10 | + private Date flightdate; | ||
11 | + | ||
12 | + private String originatingstation; | ||
13 | + | ||
14 | + private String destinationstation; | ||
15 | + | ||
16 | + private String waybillnomaster; | ||
17 | + | ||
18 | + private String totalweight; | ||
19 | + | ||
20 | + private String totalpiece; | ||
21 | + | ||
22 | + private String preparetotalpiece; | ||
23 | + | ||
24 | + private String preparetotalweight; | ||
25 | + | ||
26 | + private Date stowagedate; | ||
27 | + | ||
28 | + private String status; | ||
29 | + | ||
30 | + private String carrier; | ||
31 | + | ||
32 | + private String customsstatus; | ||
33 | + | ||
34 | + private String paymode; | ||
35 | + | ||
36 | + private String customscode; | ||
37 | + | ||
38 | + private String agentcode; | ||
39 | + | ||
40 | + private String agentname; | ||
41 | + | ||
42 | + private String shippername; | ||
43 | + | ||
44 | + private String shippercity; | ||
45 | + | ||
46 | + private String shipperaddress; | ||
47 | + | ||
48 | + private String consigneename; | ||
49 | + | ||
50 | + private String consigneecity; | ||
51 | + | ||
52 | + private String consigneeaddress; | ||
53 | + | ||
54 | + private String receiptinformation; | ||
55 | + | ||
56 | + private Date createdate; | ||
57 | + | ||
58 | + private String productname; | ||
59 | + | ||
60 | + private String shipperCode; | ||
61 | + | ||
62 | + private String shipperCountrycode; | ||
63 | + | ||
64 | + private String shipperPhone; | ||
65 | + | ||
66 | + private String shipperFax; | ||
67 | + | ||
68 | + private String consigneeCode; | ||
69 | + | ||
70 | + private String consigneeCountrycode; | ||
71 | + | ||
72 | + private String consigneeFax; | ||
73 | + | ||
74 | + private String consigneePhone; | ||
75 | + | ||
76 | + private String shipperAeo; | ||
77 | + | ||
78 | + private String consigneeAeo; | ||
79 | + | ||
80 | + private String unloadingstation; | ||
81 | + | ||
82 | + private String arrivedAhead; | ||
83 | + | ||
84 | + public String getAutoid() { | ||
85 | + return autoid; | ||
86 | + } | ||
87 | + | ||
88 | + public void setAutoid(String autoid) { | ||
89 | + this.autoid = autoid == null ? null : autoid.trim(); | ||
90 | + } | ||
91 | + | ||
92 | + public String getFlightno() { | ||
93 | + return flightno; | ||
94 | + } | ||
95 | + | ||
96 | + public void setFlightno(String flightno) { | ||
97 | + this.flightno = flightno == null ? null : flightno.trim(); | ||
98 | + } | ||
99 | + | ||
100 | + public Date getFlightdate() { | ||
101 | + return flightdate; | ||
102 | + } | ||
103 | + | ||
104 | + public void setFlightdate(Date flightdate) { | ||
105 | + this.flightdate = flightdate; | ||
106 | + } | ||
107 | + | ||
108 | + public String getOriginatingstation() { | ||
109 | + return originatingstation; | ||
110 | + } | ||
111 | + | ||
112 | + public void setOriginatingstation(String originatingstation) { | ||
113 | + this.originatingstation = originatingstation == null ? null : originatingstation.trim(); | ||
114 | + } | ||
115 | + | ||
116 | + public String getDestinationstation() { | ||
117 | + return destinationstation; | ||
118 | + } | ||
119 | + | ||
120 | + public void setDestinationstation(String destinationstation) { | ||
121 | + this.destinationstation = destinationstation == null ? null : destinationstation.trim(); | ||
122 | + } | ||
123 | + | ||
124 | + public String getWaybillnomaster() { | ||
125 | + return waybillnomaster; | ||
126 | + } | ||
127 | + | ||
128 | + public void setWaybillnomaster(String waybillnomaster) { | ||
129 | + this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim(); | ||
130 | + } | ||
131 | + | ||
132 | + public String getTotalweight() { | ||
133 | + return totalweight; | ||
134 | + } | ||
135 | + | ||
136 | + public void setTotalweight(String totalweight) { | ||
137 | + this.totalweight = totalweight == null ? null : totalweight.trim(); | ||
138 | + } | ||
139 | + | ||
140 | + public String getTotalpiece() { | ||
141 | + return totalpiece; | ||
142 | + } | ||
143 | + | ||
144 | + public void setTotalpiece(String totalpiece) { | ||
145 | + this.totalpiece = totalpiece == null ? null : totalpiece.trim(); | ||
146 | + } | ||
147 | + | ||
148 | + public String getPreparetotalpiece() { | ||
149 | + return preparetotalpiece; | ||
150 | + } | ||
151 | + | ||
152 | + public void setPreparetotalpiece(String preparetotalpiece) { | ||
153 | + this.preparetotalpiece = preparetotalpiece == null ? null : preparetotalpiece.trim(); | ||
154 | + } | ||
155 | + | ||
156 | + public String getPreparetotalweight() { | ||
157 | + return preparetotalweight; | ||
158 | + } | ||
159 | + | ||
160 | + public void setPreparetotalweight(String preparetotalweight) { | ||
161 | + this.preparetotalweight = preparetotalweight == null ? null : preparetotalweight.trim(); | ||
162 | + } | ||
163 | + | ||
164 | + public Date getStowagedate() { | ||
165 | + return stowagedate; | ||
166 | + } | ||
167 | + | ||
168 | + public void setStowagedate(Date stowagedate) { | ||
169 | + this.stowagedate = stowagedate; | ||
170 | + } | ||
171 | + | ||
172 | + public String getStatus() { | ||
173 | + return status; | ||
174 | + } | ||
175 | + | ||
176 | + public void setStatus(String status) { | ||
177 | + this.status = status == null ? null : status.trim(); | ||
178 | + } | ||
179 | + | ||
180 | + public String getCarrier() { | ||
181 | + return carrier; | ||
182 | + } | ||
183 | + | ||
184 | + public void setCarrier(String carrier) { | ||
185 | + this.carrier = carrier == null ? null : carrier.trim(); | ||
186 | + } | ||
187 | + | ||
188 | + public String getCustomsstatus() { | ||
189 | + return customsstatus; | ||
190 | + } | ||
191 | + | ||
192 | + public void setCustomsstatus(String customsstatus) { | ||
193 | + this.customsstatus = customsstatus == null ? null : customsstatus.trim(); | ||
194 | + } | ||
195 | + | ||
196 | + public String getPaymode() { | ||
197 | + return paymode; | ||
198 | + } | ||
199 | + | ||
200 | + public void setPaymode(String paymode) { | ||
201 | + this.paymode = paymode == null ? null : paymode.trim(); | ||
202 | + } | ||
203 | + | ||
204 | + public String getCustomscode() { | ||
205 | + return customscode; | ||
206 | + } | ||
207 | + | ||
208 | + public void setCustomscode(String customscode) { | ||
209 | + this.customscode = customscode == null ? null : customscode.trim(); | ||
210 | + } | ||
211 | + | ||
212 | + public String getAgentcode() { | ||
213 | + return agentcode; | ||
214 | + } | ||
215 | + | ||
216 | + public void setAgentcode(String agentcode) { | ||
217 | + this.agentcode = agentcode == null ? null : agentcode.trim(); | ||
218 | + } | ||
219 | + | ||
220 | + public String getAgentname() { | ||
221 | + return agentname; | ||
222 | + } | ||
223 | + | ||
224 | + public void setAgentname(String agentname) { | ||
225 | + this.agentname = agentname == null ? null : agentname.trim(); | ||
226 | + } | ||
227 | + | ||
228 | + public String getShippername() { | ||
229 | + return shippername; | ||
230 | + } | ||
231 | + | ||
232 | + public void setShippername(String shippername) { | ||
233 | + this.shippername = shippername == null ? null : shippername.trim(); | ||
234 | + } | ||
235 | + | ||
236 | + public String getShippercity() { | ||
237 | + return shippercity; | ||
238 | + } | ||
239 | + | ||
240 | + public void setShippercity(String shippercity) { | ||
241 | + this.shippercity = shippercity == null ? null : shippercity.trim(); | ||
242 | + } | ||
243 | + | ||
244 | + public String getShipperaddress() { | ||
245 | + return shipperaddress; | ||
246 | + } | ||
247 | + | ||
248 | + public void setShipperaddress(String shipperaddress) { | ||
249 | + this.shipperaddress = shipperaddress == null ? null : shipperaddress.trim(); | ||
250 | + } | ||
251 | + | ||
252 | + public String getConsigneename() { | ||
253 | + return consigneename; | ||
254 | + } | ||
255 | + | ||
256 | + public void setConsigneename(String consigneename) { | ||
257 | + this.consigneename = consigneename == null ? null : consigneename.trim(); | ||
258 | + } | ||
259 | + | ||
260 | + public String getConsigneecity() { | ||
261 | + return consigneecity; | ||
262 | + } | ||
263 | + | ||
264 | + public void setConsigneecity(String consigneecity) { | ||
265 | + this.consigneecity = consigneecity == null ? null : consigneecity.trim(); | ||
266 | + } | ||
267 | + | ||
268 | + public String getConsigneeaddress() { | ||
269 | + return consigneeaddress; | ||
270 | + } | ||
271 | + | ||
272 | + public void setConsigneeaddress(String consigneeaddress) { | ||
273 | + this.consigneeaddress = consigneeaddress == null ? null : consigneeaddress.trim(); | ||
274 | + } | ||
275 | + | ||
276 | + public String getReceiptinformation() { | ||
277 | + return receiptinformation; | ||
278 | + } | ||
279 | + | ||
280 | + public void setReceiptinformation(String receiptinformation) { | ||
281 | + this.receiptinformation = receiptinformation == null ? null : receiptinformation.trim(); | ||
282 | + } | ||
283 | + | ||
284 | + public Date getCreatedate() { | ||
285 | + return createdate; | ||
286 | + } | ||
287 | + | ||
288 | + public void setCreatedate(Date createdate) { | ||
289 | + this.createdate = createdate; | ||
290 | + } | ||
291 | + | ||
292 | + public String getProductname() { | ||
293 | + return productname; | ||
294 | + } | ||
295 | + | ||
296 | + public void setProductname(String productname) { | ||
297 | + this.productname = productname == null ? null : productname.trim(); | ||
298 | + } | ||
299 | + | ||
300 | + public String getShipperCode() { | ||
301 | + return shipperCode; | ||
302 | + } | ||
303 | + | ||
304 | + public void setShipperCode(String shipperCode) { | ||
305 | + this.shipperCode = shipperCode == null ? null : shipperCode.trim(); | ||
306 | + } | ||
307 | + | ||
308 | + public String getShipperCountrycode() { | ||
309 | + return shipperCountrycode; | ||
310 | + } | ||
311 | + | ||
312 | + public void setShipperCountrycode(String shipperCountrycode) { | ||
313 | + this.shipperCountrycode = shipperCountrycode == null ? null : shipperCountrycode.trim(); | ||
314 | + } | ||
315 | + | ||
316 | + public String getShipperPhone() { | ||
317 | + return shipperPhone; | ||
318 | + } | ||
319 | + | ||
320 | + public void setShipperPhone(String shipperPhone) { | ||
321 | + this.shipperPhone = shipperPhone == null ? null : shipperPhone.trim(); | ||
322 | + } | ||
323 | + | ||
324 | + public String getShipperFax() { | ||
325 | + return shipperFax; | ||
326 | + } | ||
327 | + | ||
328 | + public void setShipperFax(String shipperFax) { | ||
329 | + this.shipperFax = shipperFax == null ? null : shipperFax.trim(); | ||
330 | + } | ||
331 | + | ||
332 | + public String getConsigneeCode() { | ||
333 | + return consigneeCode; | ||
334 | + } | ||
335 | + | ||
336 | + public void setConsigneeCode(String consigneeCode) { | ||
337 | + this.consigneeCode = consigneeCode == null ? null : consigneeCode.trim(); | ||
338 | + } | ||
339 | + | ||
340 | + public String getConsigneeCountrycode() { | ||
341 | + return consigneeCountrycode; | ||
342 | + } | ||
343 | + | ||
344 | + public void setConsigneeCountrycode(String consigneeCountrycode) { | ||
345 | + this.consigneeCountrycode = consigneeCountrycode == null ? null : consigneeCountrycode.trim(); | ||
346 | + } | ||
347 | + | ||
348 | + public String getConsigneeFax() { | ||
349 | + return consigneeFax; | ||
350 | + } | ||
351 | + | ||
352 | + public void setConsigneeFax(String consigneeFax) { | ||
353 | + this.consigneeFax = consigneeFax == null ? null : consigneeFax.trim(); | ||
354 | + } | ||
355 | + | ||
356 | + public String getConsigneePhone() { | ||
357 | + return consigneePhone; | ||
358 | + } | ||
359 | + | ||
360 | + public void setConsigneePhone(String consigneePhone) { | ||
361 | + this.consigneePhone = consigneePhone == null ? null : consigneePhone.trim(); | ||
362 | + } | ||
363 | + | ||
364 | + public String getShipperAeo() { | ||
365 | + return shipperAeo; | ||
366 | + } | ||
367 | + | ||
368 | + public void setShipperAeo(String shipperAeo) { | ||
369 | + this.shipperAeo = shipperAeo == null ? null : shipperAeo.trim(); | ||
370 | + } | ||
371 | + | ||
372 | + public String getConsigneeAeo() { | ||
373 | + return consigneeAeo; | ||
374 | + } | ||
375 | + | ||
376 | + public void setConsigneeAeo(String consigneeAeo) { | ||
377 | + this.consigneeAeo = consigneeAeo == null ? null : consigneeAeo.trim(); | ||
378 | + } | ||
379 | + | ||
380 | + public String getUnloadingstation() { | ||
381 | + return unloadingstation; | ||
382 | + } | ||
383 | + | ||
384 | + public void setUnloadingstation(String unloadingstation) { | ||
385 | + this.unloadingstation = unloadingstation == null ? null : unloadingstation.trim(); | ||
386 | + } | ||
387 | + | ||
388 | + public String getArrivedAhead() { | ||
389 | + return arrivedAhead; | ||
390 | + } | ||
391 | + | ||
392 | + public void setArrivedAhead(String arrivedAhead) { | ||
393 | + this.arrivedAhead = arrivedAhead == null ? null : arrivedAhead.trim(); | ||
394 | + } | ||
395 | +} |
1 | +package com.tianbo.analysis.model; | ||
2 | + | ||
3 | +import java.util.Date; | ||
4 | + | ||
5 | +public class PREPARESECONDARY { | ||
6 | + private String autoid; | ||
7 | + | ||
8 | + private String waybillnomaster; | ||
9 | + | ||
10 | + private String waybillnosecondary; | ||
11 | + | ||
12 | + private String totalweight; | ||
13 | + | ||
14 | + private String totalpiece; | ||
15 | + | ||
16 | + private String preparepiece; | ||
17 | + | ||
18 | + private String prepareweight; | ||
19 | + | ||
20 | + private Date createdate; | ||
21 | + | ||
22 | + private String preparemasterid; | ||
23 | + | ||
24 | + private String carrier; | ||
25 | + | ||
26 | + private String flightno; | ||
27 | + | ||
28 | + private Date flightdate; | ||
29 | + | ||
30 | + private String originatingstation; | ||
31 | + | ||
32 | + private String destinationstation; | ||
33 | + | ||
34 | + private String customsstatus; | ||
35 | + | ||
36 | + private String paymode; | ||
37 | + | ||
38 | + private String productname; | ||
39 | + | ||
40 | + private Date stowagedate; | ||
41 | + | ||
42 | + private String customscode; | ||
43 | + | ||
44 | + private String shippername; | ||
45 | + | ||
46 | + private String shippercity; | ||
47 | + | ||
48 | + private String shipperaddress; | ||
49 | + | ||
50 | + private String consigneename; | ||
51 | + | ||
52 | + private String consigneecity; | ||
53 | + | ||
54 | + private String consigneeaddress; | ||
55 | + | ||
56 | + private String receiptinformation; | ||
57 | + | ||
58 | + private String agentcode; | ||
59 | + | ||
60 | + private String agentname; | ||
61 | + | ||
62 | + private String status; | ||
63 | + | ||
64 | + private String shipperCode; | ||
65 | + | ||
66 | + private String shipperCountrycode; | ||
67 | + | ||
68 | + private String shipperPhone; | ||
69 | + | ||
70 | + private String shipperFax; | ||
71 | + | ||
72 | + private String consigneeCode; | ||
73 | + | ||
74 | + private String consigneeCountrycode; | ||
75 | + | ||
76 | + private String consigneePhone; | ||
77 | + | ||
78 | + private String consigneeFax; | ||
79 | + | ||
80 | + private String shipperAeo; | ||
81 | + | ||
82 | + private String consigneeAeo; | ||
83 | + | ||
84 | + private String unloadingstation; | ||
85 | + | ||
86 | + public String getAutoid() { | ||
87 | + return autoid; | ||
88 | + } | ||
89 | + | ||
90 | + public void setAutoid(String autoid) { | ||
91 | + this.autoid = autoid == null ? null : autoid.trim(); | ||
92 | + } | ||
93 | + | ||
94 | + public String getWaybillnomaster() { | ||
95 | + return waybillnomaster; | ||
96 | + } | ||
97 | + | ||
98 | + public void setWaybillnomaster(String waybillnomaster) { | ||
99 | + this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim(); | ||
100 | + } | ||
101 | + | ||
102 | + public String getWaybillnosecondary() { | ||
103 | + return waybillnosecondary; | ||
104 | + } | ||
105 | + | ||
106 | + public void setWaybillnosecondary(String waybillnosecondary) { | ||
107 | + this.waybillnosecondary = waybillnosecondary == null ? null : waybillnosecondary.trim(); | ||
108 | + } | ||
109 | + | ||
110 | + public String getTotalweight() { | ||
111 | + return totalweight; | ||
112 | + } | ||
113 | + | ||
114 | + public void setTotalweight(String totalweight) { | ||
115 | + this.totalweight = totalweight == null ? null : totalweight.trim(); | ||
116 | + } | ||
117 | + | ||
118 | + public String getTotalpiece() { | ||
119 | + return totalpiece; | ||
120 | + } | ||
121 | + | ||
122 | + public void setTotalpiece(String totalpiece) { | ||
123 | + this.totalpiece = totalpiece == null ? null : totalpiece.trim(); | ||
124 | + } | ||
125 | + | ||
126 | + public String getPreparepiece() { | ||
127 | + return preparepiece; | ||
128 | + } | ||
129 | + | ||
130 | + public void setPreparepiece(String preparepiece) { | ||
131 | + this.preparepiece = preparepiece == null ? null : preparepiece.trim(); | ||
132 | + } | ||
133 | + | ||
134 | + public String getPrepareweight() { | ||
135 | + return prepareweight; | ||
136 | + } | ||
137 | + | ||
138 | + public void setPrepareweight(String prepareweight) { | ||
139 | + this.prepareweight = prepareweight == null ? null : prepareweight.trim(); | ||
140 | + } | ||
141 | + | ||
142 | + public Date getCreatedate() { | ||
143 | + return createdate; | ||
144 | + } | ||
145 | + | ||
146 | + public void setCreatedate(Date createdate) { | ||
147 | + this.createdate = createdate; | ||
148 | + } | ||
149 | + | ||
150 | + public String getPreparemasterid() { | ||
151 | + return preparemasterid; | ||
152 | + } | ||
153 | + | ||
154 | + public void setPreparemasterid(String preparemasterid) { | ||
155 | + this.preparemasterid = preparemasterid == null ? null : preparemasterid.trim(); | ||
156 | + } | ||
157 | + | ||
158 | + public String getCarrier() { | ||
159 | + return carrier; | ||
160 | + } | ||
161 | + | ||
162 | + public void setCarrier(String carrier) { | ||
163 | + this.carrier = carrier == null ? null : carrier.trim(); | ||
164 | + } | ||
165 | + | ||
166 | + public String getFlightno() { | ||
167 | + return flightno; | ||
168 | + } | ||
169 | + | ||
170 | + public void setFlightno(String flightno) { | ||
171 | + this.flightno = flightno == null ? null : flightno.trim(); | ||
172 | + } | ||
173 | + | ||
174 | + public Date getFlightdate() { | ||
175 | + return flightdate; | ||
176 | + } | ||
177 | + | ||
178 | + public void setFlightdate(Date flightdate) { | ||
179 | + this.flightdate = flightdate; | ||
180 | + } | ||
181 | + | ||
182 | + public String getOriginatingstation() { | ||
183 | + return originatingstation; | ||
184 | + } | ||
185 | + | ||
186 | + public void setOriginatingstation(String originatingstation) { | ||
187 | + this.originatingstation = originatingstation == null ? null : originatingstation.trim(); | ||
188 | + } | ||
189 | + | ||
190 | + public String getDestinationstation() { | ||
191 | + return destinationstation; | ||
192 | + } | ||
193 | + | ||
194 | + public void setDestinationstation(String destinationstation) { | ||
195 | + this.destinationstation = destinationstation == null ? null : destinationstation.trim(); | ||
196 | + } | ||
197 | + | ||
198 | + public String getCustomsstatus() { | ||
199 | + return customsstatus; | ||
200 | + } | ||
201 | + | ||
202 | + public void setCustomsstatus(String customsstatus) { | ||
203 | + this.customsstatus = customsstatus == null ? null : customsstatus.trim(); | ||
204 | + } | ||
205 | + | ||
206 | + public String getPaymode() { | ||
207 | + return paymode; | ||
208 | + } | ||
209 | + | ||
210 | + public void setPaymode(String paymode) { | ||
211 | + this.paymode = paymode == null ? null : paymode.trim(); | ||
212 | + } | ||
213 | + | ||
214 | + public String getProductname() { | ||
215 | + return productname; | ||
216 | + } | ||
217 | + | ||
218 | + public void setProductname(String productname) { | ||
219 | + this.productname = productname == null ? null : productname.trim(); | ||
220 | + } | ||
221 | + | ||
222 | + public Date getStowagedate() { | ||
223 | + return stowagedate; | ||
224 | + } | ||
225 | + | ||
226 | + public void setStowagedate(Date stowagedate) { | ||
227 | + this.stowagedate = stowagedate; | ||
228 | + } | ||
229 | + | ||
230 | + public String getCustomscode() { | ||
231 | + return customscode; | ||
232 | + } | ||
233 | + | ||
234 | + public void setCustomscode(String customscode) { | ||
235 | + this.customscode = customscode == null ? null : customscode.trim(); | ||
236 | + } | ||
237 | + | ||
238 | + public String getShippername() { | ||
239 | + return shippername; | ||
240 | + } | ||
241 | + | ||
242 | + public void setShippername(String shippername) { | ||
243 | + this.shippername = shippername == null ? null : shippername.trim(); | ||
244 | + } | ||
245 | + | ||
246 | + public String getShippercity() { | ||
247 | + return shippercity; | ||
248 | + } | ||
249 | + | ||
250 | + public void setShippercity(String shippercity) { | ||
251 | + this.shippercity = shippercity == null ? null : shippercity.trim(); | ||
252 | + } | ||
253 | + | ||
254 | + public String getShipperaddress() { | ||
255 | + return shipperaddress; | ||
256 | + } | ||
257 | + | ||
258 | + public void setShipperaddress(String shipperaddress) { | ||
259 | + this.shipperaddress = shipperaddress == null ? null : shipperaddress.trim(); | ||
260 | + } | ||
261 | + | ||
262 | + public String getConsigneename() { | ||
263 | + return consigneename; | ||
264 | + } | ||
265 | + | ||
266 | + public void setConsigneename(String consigneename) { | ||
267 | + this.consigneename = consigneename == null ? null : consigneename.trim(); | ||
268 | + } | ||
269 | + | ||
270 | + public String getConsigneecity() { | ||
271 | + return consigneecity; | ||
272 | + } | ||
273 | + | ||
274 | + public void setConsigneecity(String consigneecity) { | ||
275 | + this.consigneecity = consigneecity == null ? null : consigneecity.trim(); | ||
276 | + } | ||
277 | + | ||
278 | + public String getConsigneeaddress() { | ||
279 | + return consigneeaddress; | ||
280 | + } | ||
281 | + | ||
282 | + public void setConsigneeaddress(String consigneeaddress) { | ||
283 | + this.consigneeaddress = consigneeaddress == null ? null : consigneeaddress.trim(); | ||
284 | + } | ||
285 | + | ||
286 | + public String getReceiptinformation() { | ||
287 | + return receiptinformation; | ||
288 | + } | ||
289 | + | ||
290 | + public void setReceiptinformation(String receiptinformation) { | ||
291 | + this.receiptinformation = receiptinformation == null ? null : receiptinformation.trim(); | ||
292 | + } | ||
293 | + | ||
294 | + public String getAgentcode() { | ||
295 | + return agentcode; | ||
296 | + } | ||
297 | + | ||
298 | + public void setAgentcode(String agentcode) { | ||
299 | + this.agentcode = agentcode == null ? null : agentcode.trim(); | ||
300 | + } | ||
301 | + | ||
302 | + public String getAgentname() { | ||
303 | + return agentname; | ||
304 | + } | ||
305 | + | ||
306 | + public void setAgentname(String agentname) { | ||
307 | + this.agentname = agentname == null ? null : agentname.trim(); | ||
308 | + } | ||
309 | + | ||
310 | + public String getStatus() { | ||
311 | + return status; | ||
312 | + } | ||
313 | + | ||
314 | + public void setStatus(String status) { | ||
315 | + this.status = status == null ? null : status.trim(); | ||
316 | + } | ||
317 | + | ||
318 | + public String getShipperCode() { | ||
319 | + return shipperCode; | ||
320 | + } | ||
321 | + | ||
322 | + public void setShipperCode(String shipperCode) { | ||
323 | + this.shipperCode = shipperCode == null ? null : shipperCode.trim(); | ||
324 | + } | ||
325 | + | ||
326 | + public String getShipperCountrycode() { | ||
327 | + return shipperCountrycode; | ||
328 | + } | ||
329 | + | ||
330 | + public void setShipperCountrycode(String shipperCountrycode) { | ||
331 | + this.shipperCountrycode = shipperCountrycode == null ? null : shipperCountrycode.trim(); | ||
332 | + } | ||
333 | + | ||
334 | + public String getShipperPhone() { | ||
335 | + return shipperPhone; | ||
336 | + } | ||
337 | + | ||
338 | + public void setShipperPhone(String shipperPhone) { | ||
339 | + this.shipperPhone = shipperPhone == null ? null : shipperPhone.trim(); | ||
340 | + } | ||
341 | + | ||
342 | + public String getShipperFax() { | ||
343 | + return shipperFax; | ||
344 | + } | ||
345 | + | ||
346 | + public void setShipperFax(String shipperFax) { | ||
347 | + this.shipperFax = shipperFax == null ? null : shipperFax.trim(); | ||
348 | + } | ||
349 | + | ||
350 | + public String getConsigneeCode() { | ||
351 | + return consigneeCode; | ||
352 | + } | ||
353 | + | ||
354 | + public void setConsigneeCode(String consigneeCode) { | ||
355 | + this.consigneeCode = consigneeCode == null ? null : consigneeCode.trim(); | ||
356 | + } | ||
357 | + | ||
358 | + public String getConsigneeCountrycode() { | ||
359 | + return consigneeCountrycode; | ||
360 | + } | ||
361 | + | ||
362 | + public void setConsigneeCountrycode(String consigneeCountrycode) { | ||
363 | + this.consigneeCountrycode = consigneeCountrycode == null ? null : consigneeCountrycode.trim(); | ||
364 | + } | ||
365 | + | ||
366 | + public String getConsigneePhone() { | ||
367 | + return consigneePhone; | ||
368 | + } | ||
369 | + | ||
370 | + public void setConsigneePhone(String consigneePhone) { | ||
371 | + this.consigneePhone = consigneePhone == null ? null : consigneePhone.trim(); | ||
372 | + } | ||
373 | + | ||
374 | + public String getConsigneeFax() { | ||
375 | + return consigneeFax; | ||
376 | + } | ||
377 | + | ||
378 | + public void setConsigneeFax(String consigneeFax) { | ||
379 | + this.consigneeFax = consigneeFax == null ? null : consigneeFax.trim(); | ||
380 | + } | ||
381 | + | ||
382 | + public String getShipperAeo() { | ||
383 | + return shipperAeo; | ||
384 | + } | ||
385 | + | ||
386 | + public void setShipperAeo(String shipperAeo) { | ||
387 | + this.shipperAeo = shipperAeo == null ? null : shipperAeo.trim(); | ||
388 | + } | ||
389 | + | ||
390 | + public String getConsigneeAeo() { | ||
391 | + return consigneeAeo; | ||
392 | + } | ||
393 | + | ||
394 | + public void setConsigneeAeo(String consigneeAeo) { | ||
395 | + this.consigneeAeo = consigneeAeo == null ? null : consigneeAeo.trim(); | ||
396 | + } | ||
397 | + | ||
398 | + public String getUnloadingstation() { | ||
399 | + return unloadingstation; | ||
400 | + } | ||
401 | + | ||
402 | + public void setUnloadingstation(String unloadingstation) { | ||
403 | + this.unloadingstation = unloadingstation == null ? null : unloadingstation.trim(); | ||
404 | + } | ||
405 | +} |
1 | +package com.tianbo.analysis.model; | ||
2 | + | ||
3 | +import java.io.Serializable; | ||
4 | + | ||
5 | +/** | ||
6 | + * 统一认证返回实体 | ||
7 | + */ | ||
8 | +public class ResultMessage implements Serializable { | ||
9 | + private static final long serialVersionUID = 1L; | ||
10 | + | ||
11 | + private String resultCode; | ||
12 | + | ||
13 | + private String resultMessage; | ||
14 | + | ||
15 | + public ResultMessage(String resultCode, String resultMessage) { | ||
16 | + this.resultCode = resultCode; | ||
17 | + this.resultMessage = resultMessage; | ||
18 | + } | ||
19 | + | ||
20 | +} |
1 | +package com.tianbo.analysis.model; | ||
2 | + | ||
3 | +import java.math.BigDecimal; | ||
4 | +import java.util.Date; | ||
5 | + | ||
6 | +public class SENDLOG { | ||
7 | + private String autoid; | ||
8 | + | ||
9 | + private Date createdate; | ||
10 | + | ||
11 | + private String opauthor; | ||
12 | + | ||
13 | + private Long sendpeice; | ||
14 | + | ||
15 | + private BigDecimal sendweight; | ||
16 | + | ||
17 | + private String receiption; | ||
18 | + | ||
19 | + private String messagetype; | ||
20 | + | ||
21 | + private String messageautoid; | ||
22 | + | ||
23 | + public String getAutoid() { | ||
24 | + return autoid; | ||
25 | + } | ||
26 | + | ||
27 | + public void setAutoid(String autoid) { | ||
28 | + this.autoid = autoid == null ? null : autoid.trim(); | ||
29 | + } | ||
30 | + | ||
31 | + public Date getCreatedate() { | ||
32 | + return createdate; | ||
33 | + } | ||
34 | + | ||
35 | + public void setCreatedate(Date createdate) { | ||
36 | + this.createdate = createdate; | ||
37 | + } | ||
38 | + | ||
39 | + public String getOpauthor() { | ||
40 | + return opauthor; | ||
41 | + } | ||
42 | + | ||
43 | + public void setOpauthor(String opauthor) { | ||
44 | + this.opauthor = opauthor == null ? null : opauthor.trim(); | ||
45 | + } | ||
46 | + | ||
47 | + public Long getSendpeice() { | ||
48 | + return sendpeice; | ||
49 | + } | ||
50 | + | ||
51 | + public void setSendpeice(Long sendpeice) { | ||
52 | + this.sendpeice = sendpeice; | ||
53 | + } | ||
54 | + | ||
55 | + public BigDecimal getSendweight() { | ||
56 | + return sendweight; | ||
57 | + } | ||
58 | + | ||
59 | + public void setSendweight(BigDecimal sendweight) { | ||
60 | + this.sendweight = sendweight; | ||
61 | + } | ||
62 | + | ||
63 | + public String getReceiption() { | ||
64 | + return receiption; | ||
65 | + } | ||
66 | + | ||
67 | + public void setReceiption(String receiption) { | ||
68 | + this.receiption = receiption == null ? null : receiption.trim(); | ||
69 | + } | ||
70 | + | ||
71 | + public String getMessagetype() { | ||
72 | + return messagetype; | ||
73 | + } | ||
74 | + | ||
75 | + public void setMessagetype(String messagetype) { | ||
76 | + this.messagetype = messagetype == null ? null : messagetype.trim(); | ||
77 | + } | ||
78 | + | ||
79 | + public String getMessageautoid() { | ||
80 | + return messageautoid; | ||
81 | + } | ||
82 | + | ||
83 | + public void setMessageautoid(String messageautoid) { | ||
84 | + this.messageautoid = messageautoid == null ? null : messageautoid.trim(); | ||
85 | + } | ||
86 | +} |
1 | +package com.tianbo.analysis.model; | ||
2 | + | ||
3 | +import lombok.Data; | ||
4 | + | ||
5 | +/** | ||
6 | + * 统一认证推送的用户实体 | ||
7 | + */ | ||
8 | +@Data | ||
9 | +public class UserData { | ||
10 | + | ||
11 | + private String USER_ID; | ||
12 | + | ||
13 | + private String USER_NAME; | ||
14 | + | ||
15 | + private String USER_NO; | ||
16 | + | ||
17 | + private String MOBILE; | ||
18 | + | ||
19 | + private String IDCARD_NO; | ||
20 | + | ||
21 | + private String COUNTRY; | ||
22 | + | ||
23 | + private String SEX; | ||
24 | + | ||
25 | + private String NATIONALITY; | ||
26 | + | ||
27 | + private String OFFICE_PHONE; | ||
28 | + | ||
29 | + private String OFFICE_ADDRESS; | ||
30 | + | ||
31 | + private String EMAIL; | ||
32 | + | ||
33 | + private String JOB_LEVEL; | ||
34 | + | ||
35 | + private String JOB_TITLE; | ||
36 | + | ||
37 | + private String JOB_TYPE; | ||
38 | + | ||
39 | + private String JOB_STATUS; | ||
40 | + | ||
41 | + private String JOB_POSITION; | ||
42 | + | ||
43 | + private String SECRET_LEVEL; | ||
44 | + | ||
45 | + private String USER_POST; | ||
46 | + | ||
47 | + private String USER_JOB_ID; | ||
48 | + | ||
49 | + private String ORG_ID; | ||
50 | + | ||
51 | + private String USER_TITLE; | ||
52 | + | ||
53 | + private String LOGIN_NAME; | ||
54 | + | ||
55 | + private String SHOW_ORDER; | ||
56 | + | ||
57 | + private String REMARK; | ||
58 | + | ||
59 | + private String NAIL_ID; | ||
60 | + | ||
61 | + private String PK_PSNDOC; | ||
62 | + | ||
63 | + private String PWD; | ||
64 | + | ||
65 | + private String PWD_ENCRYPT; | ||
66 | + | ||
67 | + private String UPDATE_TIME; | ||
68 | +} |
1 | +package com.tianbo.analysis.service; | ||
2 | + | ||
3 | +import com.tianbo.analysis.model.CarAndWayBill; | ||
4 | +import com.tianbo.analysis.model.PREPAREMASTER; | ||
5 | +import org.jetbrains.annotations.NotNull; | ||
6 | + | ||
7 | +public interface ArriveMasterService { | ||
8 | + | ||
9 | + /** | ||
10 | + * 提前运抵业务处理 | ||
11 | + */ | ||
12 | + boolean arrivedAhead(CarAndWayBill carAndWayBill); | ||
13 | + | ||
14 | + /** | ||
15 | + * 根据提前运抵的预配主单生成运抵,主分单都会被生成 | ||
16 | + */ | ||
17 | + boolean importFromPreplan(@NotNull PREPAREMASTER preparemasterFirst); | ||
18 | +} |
1 | +package com.tianbo.analysis.service; | ||
2 | + | ||
3 | +import com.github.pagehelper.PageInfo; | ||
4 | +import com.tianbo.analysis.model.DOMTRANSIT; | ||
5 | + | ||
6 | +import java.util.List; | ||
7 | + | ||
8 | +public interface DomTransitService { | ||
9 | + int deleteByPrimaryKey(String id); | ||
10 | + | ||
11 | + int insert(DOMTRANSIT record); | ||
12 | + | ||
13 | + int insertSelective(DOMTRANSIT record); | ||
14 | + | ||
15 | + DOMTRANSIT selectByPrimaryKey(String id); | ||
16 | + | ||
17 | + PageInfo<DOMTRANSIT> selectList(DOMTRANSIT record, int pageNum, int pageSize); | ||
18 | + | ||
19 | + int updateByPrimaryKeySelective(DOMTRANSIT record); | ||
20 | + | ||
21 | + int updateByPrimaryKey(DOMTRANSIT record); | ||
22 | +} |
1 | +package com.tianbo.analysis.service.imp; | ||
2 | + | ||
3 | +import com.tianbo.analysis.dao.*; | ||
4 | +import com.tianbo.analysis.model.*; | ||
5 | +import com.tianbo.analysis.service.ArriveMasterService; | ||
6 | +import com.tianbo.analysis.tools.WaybillTools; | ||
7 | +import lombok.extern.slf4j.Slf4j; | ||
8 | +import org.jetbrains.annotations.NotNull; | ||
9 | +import org.springframework.stereotype.Service; | ||
10 | + | ||
11 | +import javax.annotation.Resource; | ||
12 | +import java.math.BigDecimal; | ||
13 | +import java.util.Arrays; | ||
14 | +import java.util.Date; | ||
15 | +import java.util.List; | ||
16 | +import java.util.UUID; | ||
17 | + | ||
18 | +@Service | ||
19 | +@Slf4j | ||
20 | +public class ArriveMasterServiceImpl implements ArriveMasterService { | ||
21 | + | ||
22 | + @Resource | ||
23 | + PREPAREMASTERMapper preparemasterMapper; | ||
24 | + | ||
25 | + @Resource | ||
26 | + PREPARESECONDARYMapper preparesecondaryMapper; | ||
27 | + | ||
28 | + @Resource | ||
29 | + ARRIVEDMASTERMapper arrivedmasterMapper; | ||
30 | + | ||
31 | + @Resource | ||
32 | + ARRIVEDSECONDARYMapper arrivedsecondaryMapper; | ||
33 | + | ||
34 | + @Resource | ||
35 | + SENDLOGMapper sendlogMapper; | ||
36 | + | ||
37 | + @Override | ||
38 | + public boolean arrivedAhead(CarAndWayBill carAndWayBill) { | ||
39 | + try { | ||
40 | + /** | ||
41 | + * 根据运单列表,与预配核碰提前运抵货物。 | ||
42 | + */ | ||
43 | + log.info("接收到通知车辆{}拉货数据{}",carAndWayBill.vname,carAndWayBill.getMasterList()); | ||
44 | + carAndWayBill.setMasterList(carAndWayBill.getMasterList().replace(",",",")); | ||
45 | + carAndWayBill.waybillList = Arrays.asList(carAndWayBill.getMasterList().split(",")); | ||
46 | + List<String> waybillList = carAndWayBill.waybillList; | ||
47 | + if (!waybillList.isEmpty()){ | ||
48 | + for (String waybillmaster : waybillList) { | ||
49 | + log.info("开始核对运单{}",waybillmaster); | ||
50 | + /** | ||
51 | + * 校验运单格式,要为172-66666666,中间有减号的才行 | ||
52 | + * 校验不通过的属于17288888888这种格式的给他加个-号再处理 | ||
53 | + */ | ||
54 | + if (!WaybillTools.checkWaybillFormat(waybillmaster)) { | ||
55 | + log.info("处理{}运单格式",waybillmaster); | ||
56 | + waybillmaster = WaybillTools.awbFormat(waybillmaster); | ||
57 | + } | ||
58 | + /** | ||
59 | + * 找提前运抵预配 | ||
60 | + * 这里注意,同一个预配有可能多发,所以有重复。 | ||
61 | + * 这里目前只取回执状态为04以及提前运抵为Y的预配主单 | ||
62 | + */ | ||
63 | + List<PREPAREMASTER> preparemasterList = preparemasterMapper.selectArrivedAheadByWaybillNo(waybillmaster); | ||
64 | + /** | ||
65 | + * 判断是否为空 | ||
66 | + * 有多个符合条件的预配只取最新的第一个 | ||
67 | + */ | ||
68 | + if (!preparemasterList.isEmpty()) { | ||
69 | + PREPAREMASTER preparemasterFirst = preparemasterList.get(0); | ||
70 | + log.info("查到提前运抵运单:{}", preparemasterFirst.getWaybillnomaster()); | ||
71 | + return importFromPreplan(preparemasterFirst); | ||
72 | + }else { | ||
73 | + log.info("运单{}不属于提前运抵运单", waybillmaster); | ||
74 | + return false; | ||
75 | + } | ||
76 | + } | ||
77 | + } | ||
78 | + return false; | ||
79 | + } catch (Exception e) { | ||
80 | + e.printStackTrace(); | ||
81 | + return false; | ||
82 | + } | ||
83 | + } | ||
84 | + | ||
85 | + | ||
86 | + @Override | ||
87 | + public boolean importFromPreplan(@NotNull PREPAREMASTER preparemasterFirst) { | ||
88 | + | ||
89 | + try { | ||
90 | + //共用入库主键 | ||
91 | + String id = UUID.randomUUID().toString(); | ||
92 | + /** | ||
93 | + * 根据主单号判断是否有预配分单。 | ||
94 | + */ | ||
95 | + List<PREPARESECONDARY> preparesecondaryList = preparesecondaryMapper.selectByMasterKey(preparemasterFirst.getAutoid()); | ||
96 | + /** | ||
97 | + * 根据预配生成运抵数据 | ||
98 | + * 生成规则,有运抵数据则不生,无运抵数据才生。 | ||
99 | + */ | ||
100 | + if (preparesecondaryList.isEmpty()) { | ||
101 | + log.info("运单{}预配没有分单,开始生成主单运抵",preparemasterFirst.getWaybillnomaster()); | ||
102 | + /** | ||
103 | + * 预配没分单,直接生成主单运抵 | ||
104 | + */ | ||
105 | + ARRIVEDMASTER arrivedmaster = new ARRIVEDMASTER(); | ||
106 | + arrivedmaster.setAutoid(id); | ||
107 | + arrivedmaster.setArrivedAhead("Y"); | ||
108 | + arrivedmaster.setTcdName("Air Waybill"); | ||
109 | + arrivedmaster.setTcdTypecode("741"); | ||
110 | + arrivedmaster.setoName("ZHENGZHOU"); | ||
111 | + arrivedmaster.setGrossweightmeasureuc("KGM"); | ||
112 | + arrivedmaster.setTotalgrossweightmeasureuc("KGM"); | ||
113 | + arrivedmaster.setChargeableweightmeasureuc("KGM"); | ||
114 | + arrivedmaster.setTransportsplitdescription("T"); | ||
115 | + arrivedmaster.setStatus("01"); | ||
116 | + arrivedmaster.setCreatedate(new Date()); | ||
117 | + | ||
118 | + arrivedmaster.setWaybillnomaster(preparemasterFirst.getWaybillnomaster()); | ||
119 | + arrivedmaster.setFlightno(preparemasterFirst.getFlightno()); | ||
120 | + arrivedmaster.setFlightdate(preparemasterFirst.getFlightdate()); | ||
121 | + arrivedmaster.setCarrier(preparemasterFirst.getCarrier()); | ||
122 | + arrivedmaster.setOriginatingstation(preparemasterFirst.getOriginatingstation()); | ||
123 | + arrivedmaster.setDestinationstation(preparemasterFirst.getDestinationstation()); | ||
124 | + arrivedmaster.setArrivedtotalpiece(preparemasterFirst.getTotalpiece()); | ||
125 | + arrivedmaster.setTotalpiecequantity(preparemasterFirst.getTotalpiece()); | ||
126 | + arrivedmaster.setArrivedtotalweight(preparemasterFirst.getTotalweight()); | ||
127 | + arrivedmaster.setTotalgrossweightmeasure(preparemasterFirst.getTotalweight()); | ||
128 | + arrivedmaster.setChargeableweightmeasure(preparemasterFirst.getTotalweight()); | ||
129 | + arrivedmaster.setArriveddate(new Date()); | ||
130 | + arrivedmaster.setCustomscode(preparemasterFirst.getCustomscode()); | ||
131 | + arrivedmaster.setProductname(preparemasterFirst.getProductname()); | ||
132 | + | ||
133 | + //查重 根据运单号,有运抵数据则不插入也不更新了,说明已经产生过业务 | ||
134 | + List<ARRIVEDMASTER> arrivedmasterList = arrivedmasterMapper.selectByWaybillNo(preparemasterFirst.getWaybillnomaster()); | ||
135 | + if (arrivedmasterList.isEmpty()) { | ||
136 | + int i = arrivedmasterMapper.insertSelective(arrivedmaster); | ||
137 | + log.info("已插入提前运抵数据:{},运单号为{}", i, arrivedmaster.getWaybillnomaster()); | ||
138 | + }else { | ||
139 | + log.info("运单{}已存在运抵数据,不再提前生成运抵信息",preparemasterFirst.getWaybillnomaster()); | ||
140 | + } | ||
141 | + | ||
142 | + } else { | ||
143 | + //根据分单预配生成分单运抵 | ||
144 | + for (PREPARESECONDARY preparesecondary : preparesecondaryList) { | ||
145 | + log.info("运单{}预配含有分单,生成分单运抵",preparemasterFirst.getWaybillnomaster()); | ||
146 | + String id_slave = UUID.randomUUID().toString(); | ||
147 | + ARRIVEDSECONDARY arrivedsecondary = new ARRIVEDSECONDARY(); | ||
148 | + arrivedsecondary.setAutoid(id_slave); | ||
149 | + arrivedsecondary.setWaybillnomaster(preparesecondary.getWaybillnomaster()); | ||
150 | + arrivedsecondary.setWaybillnosecondary(preparesecondary.getWaybillnosecondary()); | ||
151 | + arrivedsecondary.setCarrier(preparesecondary.getCarrier()); | ||
152 | + arrivedsecondary.setoId(preparesecondary.getOriginatingstation()); | ||
153 | + arrivedsecondary.setFdId(preparesecondary.getDestinationstation()); | ||
154 | + arrivedsecondary.setFlightno(preparesecondary.getFlightno()); | ||
155 | + arrivedsecondary.setFlightdate(preparesecondary.getFlightdate()); | ||
156 | + arrivedsecondary.setArrivedtotalpiece(preparesecondary.getTotalpiece()); | ||
157 | + arrivedsecondary.setArrivedtotalweight(preparesecondary.getTotalweight()); | ||
158 | + arrivedsecondary.setTotalpiecequantity(preparesecondary.getTotalpiece()); | ||
159 | + arrivedsecondary.setTotalgrossweightmeasure(preparesecondary.getTotalweight()); | ||
160 | + arrivedsecondary.setChargeableweightmeasure(preparesecondary.getTotalweight()); | ||
161 | + arrivedsecondary.setArriveddate(new Date()); | ||
162 | + arrivedsecondary.setCustomscode(preparesecondary.getCustomscode()); | ||
163 | + arrivedsecondary.setProductname(preparesecondary.getProductname()); | ||
164 | + arrivedsecondary.setCreatedate(new Date()); | ||
165 | + arrivedsecondary.setArrivedmasterid(""); | ||
166 | + arrivedsecondary.setStatus("01"); | ||
167 | + | ||
168 | + arrivedsecondary.setTcdName("Air Waybill"); | ||
169 | + arrivedsecondary.setTcdTypecode("741"); | ||
170 | + arrivedsecondary.setoName("ZHENGZHOU"); | ||
171 | + | ||
172 | + //查重 根据运单号,有运抵数据则不插入也不更新了,说明已经产生过业务 | ||
173 | + List<ARRIVEDSECONDARY> arrivedsecondaryList = arrivedsecondaryMapper.selectByWaybillNo(arrivedsecondary); | ||
174 | + if (arrivedsecondaryList.isEmpty()) { | ||
175 | + int i = arrivedsecondaryMapper.insertSelective(arrivedsecondary); | ||
176 | + log.info("已插入提前运抵数据,插入数量:{},运单号为{}_{}", i, arrivedsecondary.getWaybillnomaster(), arrivedsecondary.getWaybillnosecondary()); | ||
177 | + | ||
178 | + /** | ||
179 | + * 插入日志。 | ||
180 | + */ | ||
181 | + if (i > 0) { | ||
182 | + SENDLOG sendlog = new SENDLOG(); | ||
183 | + sendlog.setAutoid(id_slave); | ||
184 | + sendlog.setCreatedate(new Date()); | ||
185 | + sendlog.setMessageautoid(id_slave); | ||
186 | + sendlog.setOpauthor("提前运抵"); | ||
187 | + sendlog.setSendpeice(Long.parseLong(preparesecondary.getTotalpiece())); | ||
188 | + sendlog.setSendweight(new BigDecimal(preparesecondary.getTotalweight())); | ||
189 | + sendlog.setReceiption("SYSTEM 提前运抵生成"); | ||
190 | + sendlog.setMessagetype("MT3201"); | ||
191 | + sendlogMapper.insertSelective(sendlog); | ||
192 | + log.info("分单生成日志已记录"); | ||
193 | + } | ||
194 | + } | ||
195 | + } | ||
196 | + } | ||
197 | + } catch (Exception e) { | ||
198 | + e.printStackTrace(); | ||
199 | + return false; | ||
200 | + } | ||
201 | + | ||
202 | + return true; | ||
203 | + } | ||
204 | +} |
1 | +package com.tianbo.analysis.service.imp; | ||
2 | + | ||
3 | +import com.github.pagehelper.Page; | ||
4 | +import com.github.pagehelper.PageHelper; | ||
5 | +import com.github.pagehelper.PageInfo; | ||
6 | +import com.tianbo.analysis.dao.DOMTRANSITMapper; | ||
7 | +import com.tianbo.analysis.model.DOMTRANSIT; | ||
8 | +import com.tianbo.analysis.service.DomTransitService; | ||
9 | +import org.springframework.stereotype.Service; | ||
10 | + | ||
11 | +import javax.annotation.Resource; | ||
12 | +import java.util.List; | ||
13 | +import java.util.UUID; | ||
14 | + | ||
15 | +@Service | ||
16 | +public class DomtransitServiceImpl implements DomTransitService { | ||
17 | + | ||
18 | + @Resource | ||
19 | + DOMTRANSITMapper domtransitMapper; | ||
20 | + | ||
21 | + @Override | ||
22 | + public int insert(DOMTRANSIT record) { | ||
23 | + return domtransitMapper.insert(record); | ||
24 | + } | ||
25 | + | ||
26 | + @Override | ||
27 | + public int insertSelective(DOMTRANSIT record) { | ||
28 | + String id= UUID.randomUUID().toString(); | ||
29 | + record.setId(id); | ||
30 | + return domtransitMapper.insertSelective(record); | ||
31 | + } | ||
32 | + | ||
33 | + @Override | ||
34 | + public int deleteByPrimaryKey(String id) { | ||
35 | + return domtransitMapper.deleteByPrimaryKey(id); | ||
36 | + } | ||
37 | + | ||
38 | + @Override | ||
39 | + public DOMTRANSIT selectByPrimaryKey(String id) { | ||
40 | + return domtransitMapper.selectByPrimaryKey(id); | ||
41 | + } | ||
42 | + | ||
43 | + @Override | ||
44 | + public PageInfo<DOMTRANSIT> selectList(DOMTRANSIT record, int pageNum, int pageSize) { | ||
45 | + Page<DOMTRANSIT> page = PageHelper.startPage(pageNum,pageSize); | ||
46 | + List<DOMTRANSIT> list = domtransitMapper.selectList(record); | ||
47 | + PageInfo<DOMTRANSIT> result = new PageInfo<DOMTRANSIT>(list); | ||
48 | + return result; | ||
49 | + } | ||
50 | + | ||
51 | + @Override | ||
52 | + public int updateByPrimaryKeySelective(DOMTRANSIT record) { | ||
53 | + return domtransitMapper.updateByPrimaryKeySelective(record); | ||
54 | + } | ||
55 | + | ||
56 | + @Override | ||
57 | + public int updateByPrimaryKey(DOMTRANSIT record) { | ||
58 | + return domtransitMapper.updateByPrimaryKey(record); | ||
59 | + } | ||
60 | +} |
1 | +package com.tianbo.analysis.tools; | ||
2 | + | ||
3 | +import org.apache.commons.lang.StringUtils; | ||
4 | + | ||
5 | +import java.util.regex.Pattern; | ||
6 | + | ||
7 | +/** | ||
8 | + * @author mrz | ||
9 | + * 关于运单的工具类 | ||
10 | + */ | ||
11 | +public class WaybillTools { | ||
12 | + | ||
13 | + /** | ||
14 | + * 检查运单格式是否符合要求 格式要求为172-66666666 | ||
15 | + * @param waybillNo 运单号 | ||
16 | + * @return true符合 | ||
17 | + */ | ||
18 | + public static boolean checkWaybillFormat(String waybillNo){ | ||
19 | + if (StringUtils.isNotBlank(waybillNo)){ | ||
20 | + String pattern = "^\\d{3}-\\d{8}$"; | ||
21 | + // 创建 Pattern 对象 | ||
22 | + Pattern r = Pattern.compile(pattern); | ||
23 | + | ||
24 | + boolean isMatch = Pattern.matches(pattern, waybillNo); | ||
25 | + | ||
26 | + return isMatch; | ||
27 | + } | ||
28 | + | ||
29 | + return false; | ||
30 | + } | ||
31 | + | ||
32 | + /** | ||
33 | + * 转换运单格式,将17266666666格式转换成172-66666666 | ||
34 | + * @param awbNo 运单号,格式为17255555555 | ||
35 | + * @return 转换后的运单号 | ||
36 | + */ | ||
37 | + public static String awbFormat(String awbNo) { | ||
38 | + if (!StringUtils.isEmpty(awbNo)) { | ||
39 | + //适配邮单解析 | ||
40 | + String pattern = "\\d{11}"; | ||
41 | + boolean isMatch = Pattern.matches(pattern, awbNo); | ||
42 | + if (!isMatch){ | ||
43 | + return awbNo; | ||
44 | + } | ||
45 | + | ||
46 | + StringBuffer stringBuffer = new StringBuffer(awbNo); | ||
47 | + stringBuffer.insert(3, "-"); | ||
48 | + awbNo = stringBuffer.toString(); | ||
49 | + return awbNo; | ||
50 | + } | ||
51 | + return ""; | ||
52 | + } | ||
53 | +} |
@@ -19,9 +19,11 @@ | @@ -19,9 +19,11 @@ | ||
19 | <!--password="">--> | 19 | <!--password="">--> |
20 | <!--</jdbcConnection>--> | 20 | <!--</jdbcConnection>--> |
21 | <jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver" | 21 | <jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver" |
22 | - connectionURL="jdbc:oracle:thin:@218.28.199.134:8004:CGODB" | 22 | + connectionURL="jdbc:oracle:thin:@192.168.1.253:1522:ORCLL" |
23 | userId="CGONMS" | 23 | userId="CGONMS" |
24 | - password="1q2w3e4r"> | 24 | + password="vmvnv1v2"> |
25 | + <!--防止生成其他库同名表--> | ||
26 | + <property name="nullCatalogMeansCurrent" value="true"/> | ||
25 | </jdbcConnection> | 27 | </jdbcConnection> |
26 | <!-- 默认false,把JDBC DECIMAL 和 NUMERIC 类型解析为 Integer,为 true时把JDBC DECIMAL 和 | 28 | <!-- 默认false,把JDBC DECIMAL 和 NUMERIC 类型解析为 Integer,为 true时把JDBC DECIMAL 和 |
27 | NUMERIC 类型解析为java.math.BigDecimal --> | 29 | NUMERIC 类型解析为java.math.BigDecimal --> |
@@ -33,18 +35,18 @@ | @@ -33,18 +35,18 @@ | ||
33 | </javaTypeResolver> | 35 | </javaTypeResolver> |
34 | <!-- 生成模型的包名和位置--> | 36 | <!-- 生成模型的包名和位置--> |
35 | <javaModelGenerator targetPackage="com.tianbo.analysis.model" targetProject="src/main/java"> | 37 | <javaModelGenerator targetPackage="com.tianbo.analysis.model" targetProject="src/main/java"> |
36 | - <property name="enableSubPackages" value="true"/> | 38 | + <property name="enableSubPackages" value="false"/> |
37 | <property name="trimStrings" value="true"/> | 39 | <property name="trimStrings" value="true"/> |
38 | </javaModelGenerator> | 40 | </javaModelGenerator> |
39 | <!-- 生成映射文件的包名和位置--> | 41 | <!-- 生成映射文件的包名和位置--> |
40 | <sqlMapGenerator targetPackage="mapping" targetProject="src/main/resources"> | 42 | <sqlMapGenerator targetPackage="mapping" targetProject="src/main/resources"> |
41 | - <property name="enableSubPackages" value="true"/> | 43 | + <property name="enableSubPackages" value="false"/> |
42 | </sqlMapGenerator> | 44 | </sqlMapGenerator> |
43 | <!-- 生成DAO的包名和位置--> | 45 | <!-- 生成DAO的包名和位置--> |
44 | <javaClientGenerator type="XMLMAPPER" targetPackage="com.tianbo.analysis.dao" targetProject="src/main/java"> | 46 | <javaClientGenerator type="XMLMAPPER" targetPackage="com.tianbo.analysis.dao" targetProject="src/main/java"> |
45 | - <property name="enableSubPackages" value="true"/> | 47 | + <property name="enableSubPackages" value="false"/> |
46 | </javaClientGenerator> | 48 | </javaClientGenerator> |
47 | <!-- 要生成的表 tableName是数据库中的表名或视图名 domainObjectName是实体类名--> | 49 | <!-- 要生成的表 tableName是数据库中的表名或视图名 domainObjectName是实体类名--> |
48 | - <table tableName="CUSTOMSMESSAGE" domainObjectName="CUSTOMSMESSAGE" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table> | 50 | + <table schema="CGONMS" tableName="SENDLOG" domainObjectName="SENDLOG" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table> |
49 | </context> | 51 | </context> |
50 | </generatorConfiguration> | 52 | </generatorConfiguration> |
1 | +<?xml version="1.0" encoding="UTF-8" ?> | ||
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | ||
3 | +<mapper namespace="com.tianbo.analysis.dao.ARRIVEDMASTERMapper" > | ||
4 | + <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.ARRIVEDMASTER" > | ||
5 | + <id column="AUTOID" property="autoid" jdbcType="VARCHAR" /> | ||
6 | + <result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" /> | ||
7 | + <result column="TCD_NAME" property="tcdName" jdbcType="VARCHAR" /> | ||
8 | + <result column="TCD_TYPECODE" property="tcdTypecode" jdbcType="VARCHAR" /> | ||
9 | + <result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" /> | ||
10 | + <result column="FLIGHTDATE" property="flightdate" jdbcType="TIMESTAMP" /> | ||
11 | + <result column="CARRIER" property="carrier" jdbcType="VARCHAR" /> | ||
12 | + <result column="ORIGINATINGSTATION" property="originatingstation" jdbcType="VARCHAR" /> | ||
13 | + <result column="O_NAME" property="oName" jdbcType="VARCHAR" /> | ||
14 | + <result column="DESTINATIONSTATION" property="destinationstation" jdbcType="VARCHAR" /> | ||
15 | + <result column="FD_NAME" property="fdName" jdbcType="VARCHAR" /> | ||
16 | + <result column="ARRIVEDTOTALPIECE" property="arrivedtotalpiece" jdbcType="VARCHAR" /> | ||
17 | + <result column="TOTALPIECEQUANTITY" property="totalpiecequantity" jdbcType="VARCHAR" /> | ||
18 | + <result column="ARRIVEDTOTALWEIGHT" property="arrivedtotalweight" jdbcType="VARCHAR" /> | ||
19 | + <result column="GROSSWEIGHTMEASUREUC" property="grossweightmeasureuc" jdbcType="VARCHAR" /> | ||
20 | + <result column="TOTALGROSSWEIGHTMEASURE" property="totalgrossweightmeasure" jdbcType="VARCHAR" /> | ||
21 | + <result column="TOTALGROSSWEIGHTMEASUREUC" property="totalgrossweightmeasureuc" jdbcType="VARCHAR" /> | ||
22 | + <result column="CHARGEABLEWEIGHTMEASURE" property="chargeableweightmeasure" jdbcType="VARCHAR" /> | ||
23 | + <result column="CHARGEABLEWEIGHTMEASUREUC" property="chargeableweightmeasureuc" jdbcType="VARCHAR" /> | ||
24 | + <result column="ARRIVEDDATE" property="arriveddate" jdbcType="TIMESTAMP" /> | ||
25 | + <result column="TRANSPORTSPLITDESCRIPTION" property="transportsplitdescription" jdbcType="VARCHAR" /> | ||
26 | + <result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" /> | ||
27 | + <result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" /> | ||
28 | + <result column="STATUS" property="status" jdbcType="VARCHAR" /> | ||
29 | + <result column="RECEIPTINFORMATION" property="receiptinformation" jdbcType="VARCHAR" /> | ||
30 | + <result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" /> | ||
31 | + <result column="ARRIVED_AHEAD" property="arrivedAhead" jdbcType="VARCHAR" /> | ||
32 | + </resultMap> | ||
33 | + <sql id="Base_Column_List" > | ||
34 | + AUTOID, WAYBILLNOMASTER, TCD_NAME, TCD_TYPECODE, FLIGHTNO, FLIGHTDATE, CARRIER, ORIGINATINGSTATION, | ||
35 | + O_NAME, DESTINATIONSTATION, FD_NAME, ARRIVEDTOTALPIECE, TOTALPIECEQUANTITY, ARRIVEDTOTALWEIGHT, | ||
36 | + GROSSWEIGHTMEASUREUC, TOTALGROSSWEIGHTMEASURE, TOTALGROSSWEIGHTMEASUREUC, CHARGEABLEWEIGHTMEASURE, | ||
37 | + CHARGEABLEWEIGHTMEASUREUC, ARRIVEDDATE, TRANSPORTSPLITDESCRIPTION, CUSTOMSCODE, PRODUCTNAME, | ||
38 | + STATUS, RECEIPTINFORMATION, CREATEDATE, ARRIVED_AHEAD | ||
39 | + </sql> | ||
40 | + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" > | ||
41 | + select | ||
42 | + <include refid="Base_Column_List" /> | ||
43 | + from CGONMS.ARRIVEDMASTER | ||
44 | + where AUTOID = #{autoid,jdbcType=VARCHAR} | ||
45 | + </select> | ||
46 | + <select id="selectByWaybillNo" resultMap="BaseResultMap" parameterType="java.lang.String" > | ||
47 | + select | ||
48 | + <include refid="Base_Column_List" /> | ||
49 | + from CGONMS.ARRIVEDMASTER | ||
50 | + where WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR} | ||
51 | + </select> | ||
52 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.String" > | ||
53 | + delete from CGONMS.ARRIVEDMASTER | ||
54 | + where AUTOID = #{autoid,jdbcType=VARCHAR} | ||
55 | + </delete> | ||
56 | + <insert id="insert" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" > | ||
57 | + insert into CGONMS.ARRIVEDMASTER (AUTOID, WAYBILLNOMASTER, TCD_NAME, | ||
58 | + TCD_TYPECODE, FLIGHTNO, FLIGHTDATE, | ||
59 | + CARRIER, ORIGINATINGSTATION, O_NAME, | ||
60 | + DESTINATIONSTATION, FD_NAME, ARRIVEDTOTALPIECE, | ||
61 | + TOTALPIECEQUANTITY, ARRIVEDTOTALWEIGHT, | ||
62 | + GROSSWEIGHTMEASUREUC, TOTALGROSSWEIGHTMEASURE, | ||
63 | + TOTALGROSSWEIGHTMEASUREUC, CHARGEABLEWEIGHTMEASURE, | ||
64 | + CHARGEABLEWEIGHTMEASUREUC, ARRIVEDDATE, | ||
65 | + TRANSPORTSPLITDESCRIPTION, CUSTOMSCODE, | ||
66 | + PRODUCTNAME, STATUS, RECEIPTINFORMATION, | ||
67 | + CREATEDATE, ARRIVED_AHEAD) | ||
68 | + values (#{autoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{tcdName,jdbcType=VARCHAR}, | ||
69 | + #{tcdTypecode,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=TIMESTAMP}, | ||
70 | + #{carrier,jdbcType=VARCHAR}, #{originatingstation,jdbcType=VARCHAR}, #{oName,jdbcType=VARCHAR}, | ||
71 | + #{destinationstation,jdbcType=VARCHAR}, #{fdName,jdbcType=VARCHAR}, #{arrivedtotalpiece,jdbcType=VARCHAR}, | ||
72 | + #{totalpiecequantity,jdbcType=VARCHAR}, #{arrivedtotalweight,jdbcType=VARCHAR}, | ||
73 | + #{grossweightmeasureuc,jdbcType=VARCHAR}, #{totalgrossweightmeasure,jdbcType=VARCHAR}, | ||
74 | + #{totalgrossweightmeasureuc,jdbcType=VARCHAR}, #{chargeableweightmeasure,jdbcType=VARCHAR}, | ||
75 | + #{chargeableweightmeasureuc,jdbcType=VARCHAR}, #{arriveddate,jdbcType=TIMESTAMP}, | ||
76 | + #{transportsplitdescription,jdbcType=VARCHAR}, #{customscode,jdbcType=VARCHAR}, | ||
77 | + #{productname,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{receiptinformation,jdbcType=VARCHAR}, | ||
78 | + #{createdate,jdbcType=TIMESTAMP}, #{arrivedAhead,jdbcType=VARCHAR}) | ||
79 | + </insert> | ||
80 | + <insert id="insertSelective" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" > | ||
81 | + insert into CGONMS.ARRIVEDMASTER | ||
82 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
83 | + <if test="autoid != null" > | ||
84 | + AUTOID, | ||
85 | + </if> | ||
86 | + <if test="waybillnomaster != null" > | ||
87 | + WAYBILLNOMASTER, | ||
88 | + </if> | ||
89 | + <if test="tcdName != null" > | ||
90 | + TCD_NAME, | ||
91 | + </if> | ||
92 | + <if test="tcdTypecode != null" > | ||
93 | + TCD_TYPECODE, | ||
94 | + </if> | ||
95 | + <if test="flightno != null" > | ||
96 | + FLIGHTNO, | ||
97 | + </if> | ||
98 | + <if test="flightdate != null" > | ||
99 | + FLIGHTDATE, | ||
100 | + </if> | ||
101 | + <if test="carrier != null" > | ||
102 | + CARRIER, | ||
103 | + </if> | ||
104 | + <if test="originatingstation != null" > | ||
105 | + ORIGINATINGSTATION, | ||
106 | + </if> | ||
107 | + <if test="oName != null" > | ||
108 | + O_NAME, | ||
109 | + </if> | ||
110 | + <if test="destinationstation != null" > | ||
111 | + DESTINATIONSTATION, | ||
112 | + </if> | ||
113 | + <if test="fdName != null" > | ||
114 | + FD_NAME, | ||
115 | + </if> | ||
116 | + <if test="arrivedtotalpiece != null" > | ||
117 | + ARRIVEDTOTALPIECE, | ||
118 | + </if> | ||
119 | + <if test="totalpiecequantity != null" > | ||
120 | + TOTALPIECEQUANTITY, | ||
121 | + </if> | ||
122 | + <if test="arrivedtotalweight != null" > | ||
123 | + ARRIVEDTOTALWEIGHT, | ||
124 | + </if> | ||
125 | + <if test="grossweightmeasureuc != null" > | ||
126 | + GROSSWEIGHTMEASUREUC, | ||
127 | + </if> | ||
128 | + <if test="totalgrossweightmeasure != null" > | ||
129 | + TOTALGROSSWEIGHTMEASURE, | ||
130 | + </if> | ||
131 | + <if test="totalgrossweightmeasureuc != null" > | ||
132 | + TOTALGROSSWEIGHTMEASUREUC, | ||
133 | + </if> | ||
134 | + <if test="chargeableweightmeasure != null" > | ||
135 | + CHARGEABLEWEIGHTMEASURE, | ||
136 | + </if> | ||
137 | + <if test="chargeableweightmeasureuc != null" > | ||
138 | + CHARGEABLEWEIGHTMEASUREUC, | ||
139 | + </if> | ||
140 | + <if test="arriveddate != null" > | ||
141 | + ARRIVEDDATE, | ||
142 | + </if> | ||
143 | + <if test="transportsplitdescription != null" > | ||
144 | + TRANSPORTSPLITDESCRIPTION, | ||
145 | + </if> | ||
146 | + <if test="customscode != null" > | ||
147 | + CUSTOMSCODE, | ||
148 | + </if> | ||
149 | + <if test="productname != null" > | ||
150 | + PRODUCTNAME, | ||
151 | + </if> | ||
152 | + <if test="status != null" > | ||
153 | + STATUS, | ||
154 | + </if> | ||
155 | + <if test="receiptinformation != null" > | ||
156 | + RECEIPTINFORMATION, | ||
157 | + </if> | ||
158 | + <if test="createdate != null" > | ||
159 | + CREATEDATE, | ||
160 | + </if> | ||
161 | + <if test="arrivedAhead != null" > | ||
162 | + ARRIVED_AHEAD, | ||
163 | + </if> | ||
164 | + </trim> | ||
165 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
166 | + <if test="autoid != null" > | ||
167 | + #{autoid,jdbcType=VARCHAR}, | ||
168 | + </if> | ||
169 | + <if test="waybillnomaster != null" > | ||
170 | + #{waybillnomaster,jdbcType=VARCHAR}, | ||
171 | + </if> | ||
172 | + <if test="tcdName != null" > | ||
173 | + #{tcdName,jdbcType=VARCHAR}, | ||
174 | + </if> | ||
175 | + <if test="tcdTypecode != null" > | ||
176 | + #{tcdTypecode,jdbcType=VARCHAR}, | ||
177 | + </if> | ||
178 | + <if test="flightno != null" > | ||
179 | + #{flightno,jdbcType=VARCHAR}, | ||
180 | + </if> | ||
181 | + <if test="flightdate != null" > | ||
182 | + #{flightdate,jdbcType=TIMESTAMP}, | ||
183 | + </if> | ||
184 | + <if test="carrier != null" > | ||
185 | + #{carrier,jdbcType=VARCHAR}, | ||
186 | + </if> | ||
187 | + <if test="originatingstation != null" > | ||
188 | + #{originatingstation,jdbcType=VARCHAR}, | ||
189 | + </if> | ||
190 | + <if test="oName != null" > | ||
191 | + #{oName,jdbcType=VARCHAR}, | ||
192 | + </if> | ||
193 | + <if test="destinationstation != null" > | ||
194 | + #{destinationstation,jdbcType=VARCHAR}, | ||
195 | + </if> | ||
196 | + <if test="fdName != null" > | ||
197 | + #{fdName,jdbcType=VARCHAR}, | ||
198 | + </if> | ||
199 | + <if test="arrivedtotalpiece != null" > | ||
200 | + #{arrivedtotalpiece,jdbcType=VARCHAR}, | ||
201 | + </if> | ||
202 | + <if test="totalpiecequantity != null" > | ||
203 | + #{totalpiecequantity,jdbcType=VARCHAR}, | ||
204 | + </if> | ||
205 | + <if test="arrivedtotalweight != null" > | ||
206 | + #{arrivedtotalweight,jdbcType=VARCHAR}, | ||
207 | + </if> | ||
208 | + <if test="grossweightmeasureuc != null" > | ||
209 | + #{grossweightmeasureuc,jdbcType=VARCHAR}, | ||
210 | + </if> | ||
211 | + <if test="totalgrossweightmeasure != null" > | ||
212 | + #{totalgrossweightmeasure,jdbcType=VARCHAR}, | ||
213 | + </if> | ||
214 | + <if test="totalgrossweightmeasureuc != null" > | ||
215 | + #{totalgrossweightmeasureuc,jdbcType=VARCHAR}, | ||
216 | + </if> | ||
217 | + <if test="chargeableweightmeasure != null" > | ||
218 | + #{chargeableweightmeasure,jdbcType=VARCHAR}, | ||
219 | + </if> | ||
220 | + <if test="chargeableweightmeasureuc != null" > | ||
221 | + #{chargeableweightmeasureuc,jdbcType=VARCHAR}, | ||
222 | + </if> | ||
223 | + <if test="arriveddate != null" > | ||
224 | + #{arriveddate,jdbcType=TIMESTAMP}, | ||
225 | + </if> | ||
226 | + <if test="transportsplitdescription != null" > | ||
227 | + #{transportsplitdescription,jdbcType=VARCHAR}, | ||
228 | + </if> | ||
229 | + <if test="customscode != null" > | ||
230 | + #{customscode,jdbcType=VARCHAR}, | ||
231 | + </if> | ||
232 | + <if test="productname != null" > | ||
233 | + #{productname,jdbcType=VARCHAR}, | ||
234 | + </if> | ||
235 | + <if test="status != null" > | ||
236 | + #{status,jdbcType=VARCHAR}, | ||
237 | + </if> | ||
238 | + <if test="receiptinformation != null" > | ||
239 | + #{receiptinformation,jdbcType=VARCHAR}, | ||
240 | + </if> | ||
241 | + <if test="createdate != null" > | ||
242 | + #{createdate,jdbcType=TIMESTAMP}, | ||
243 | + </if> | ||
244 | + <if test="arrivedAhead != null" > | ||
245 | + #{arrivedAhead,jdbcType=VARCHAR}, | ||
246 | + </if> | ||
247 | + </trim> | ||
248 | + </insert> | ||
249 | + <update id="updateByPrimaryKeySelective" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" > | ||
250 | + update CGONMS.ARRIVEDMASTER | ||
251 | + <set > | ||
252 | + <if test="waybillnomaster != null" > | ||
253 | + WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}, | ||
254 | + </if> | ||
255 | + <if test="tcdName != null" > | ||
256 | + TCD_NAME = #{tcdName,jdbcType=VARCHAR}, | ||
257 | + </if> | ||
258 | + <if test="tcdTypecode != null" > | ||
259 | + TCD_TYPECODE = #{tcdTypecode,jdbcType=VARCHAR}, | ||
260 | + </if> | ||
261 | + <if test="flightno != null" > | ||
262 | + FLIGHTNO = #{flightno,jdbcType=VARCHAR}, | ||
263 | + </if> | ||
264 | + <if test="flightdate != null" > | ||
265 | + FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP}, | ||
266 | + </if> | ||
267 | + <if test="carrier != null" > | ||
268 | + CARRIER = #{carrier,jdbcType=VARCHAR}, | ||
269 | + </if> | ||
270 | + <if test="originatingstation != null" > | ||
271 | + ORIGINATINGSTATION = #{originatingstation,jdbcType=VARCHAR}, | ||
272 | + </if> | ||
273 | + <if test="oName != null" > | ||
274 | + O_NAME = #{oName,jdbcType=VARCHAR}, | ||
275 | + </if> | ||
276 | + <if test="destinationstation != null" > | ||
277 | + DESTINATIONSTATION = #{destinationstation,jdbcType=VARCHAR}, | ||
278 | + </if> | ||
279 | + <if test="fdName != null" > | ||
280 | + FD_NAME = #{fdName,jdbcType=VARCHAR}, | ||
281 | + </if> | ||
282 | + <if test="arrivedtotalpiece != null" > | ||
283 | + ARRIVEDTOTALPIECE = #{arrivedtotalpiece,jdbcType=VARCHAR}, | ||
284 | + </if> | ||
285 | + <if test="totalpiecequantity != null" > | ||
286 | + TOTALPIECEQUANTITY = #{totalpiecequantity,jdbcType=VARCHAR}, | ||
287 | + </if> | ||
288 | + <if test="arrivedtotalweight != null" > | ||
289 | + ARRIVEDTOTALWEIGHT = #{arrivedtotalweight,jdbcType=VARCHAR}, | ||
290 | + </if> | ||
291 | + <if test="grossweightmeasureuc != null" > | ||
292 | + GROSSWEIGHTMEASUREUC = #{grossweightmeasureuc,jdbcType=VARCHAR}, | ||
293 | + </if> | ||
294 | + <if test="totalgrossweightmeasure != null" > | ||
295 | + TOTALGROSSWEIGHTMEASURE = #{totalgrossweightmeasure,jdbcType=VARCHAR}, | ||
296 | + </if> | ||
297 | + <if test="totalgrossweightmeasureuc != null" > | ||
298 | + TOTALGROSSWEIGHTMEASUREUC = #{totalgrossweightmeasureuc,jdbcType=VARCHAR}, | ||
299 | + </if> | ||
300 | + <if test="chargeableweightmeasure != null" > | ||
301 | + CHARGEABLEWEIGHTMEASURE = #{chargeableweightmeasure,jdbcType=VARCHAR}, | ||
302 | + </if> | ||
303 | + <if test="chargeableweightmeasureuc != null" > | ||
304 | + CHARGEABLEWEIGHTMEASUREUC = #{chargeableweightmeasureuc,jdbcType=VARCHAR}, | ||
305 | + </if> | ||
306 | + <if test="arriveddate != null" > | ||
307 | + ARRIVEDDATE = #{arriveddate,jdbcType=TIMESTAMP}, | ||
308 | + </if> | ||
309 | + <if test="transportsplitdescription != null" > | ||
310 | + TRANSPORTSPLITDESCRIPTION = #{transportsplitdescription,jdbcType=VARCHAR}, | ||
311 | + </if> | ||
312 | + <if test="customscode != null" > | ||
313 | + CUSTOMSCODE = #{customscode,jdbcType=VARCHAR}, | ||
314 | + </if> | ||
315 | + <if test="productname != null" > | ||
316 | + PRODUCTNAME = #{productname,jdbcType=VARCHAR}, | ||
317 | + </if> | ||
318 | + <if test="status != null" > | ||
319 | + STATUS = #{status,jdbcType=VARCHAR}, | ||
320 | + </if> | ||
321 | + <if test="receiptinformation != null" > | ||
322 | + RECEIPTINFORMATION = #{receiptinformation,jdbcType=VARCHAR}, | ||
323 | + </if> | ||
324 | + <if test="createdate != null" > | ||
325 | + CREATEDATE = #{createdate,jdbcType=TIMESTAMP}, | ||
326 | + </if> | ||
327 | + <if test="arrivedAhead != null" > | ||
328 | + ARRIVED_AHEAD = #{arrivedAhead,jdbcType=VARCHAR}, | ||
329 | + </if> | ||
330 | + </set> | ||
331 | + where AUTOID = #{autoid,jdbcType=VARCHAR} | ||
332 | + </update> | ||
333 | + <update id="updateByPrimaryKey" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" > | ||
334 | + update CGONMS.ARRIVEDMASTER | ||
335 | + set WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}, | ||
336 | + TCD_NAME = #{tcdName,jdbcType=VARCHAR}, | ||
337 | + TCD_TYPECODE = #{tcdTypecode,jdbcType=VARCHAR}, | ||
338 | + FLIGHTNO = #{flightno,jdbcType=VARCHAR}, | ||
339 | + FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP}, | ||
340 | + CARRIER = #{carrier,jdbcType=VARCHAR}, | ||
341 | + ORIGINATINGSTATION = #{originatingstation,jdbcType=VARCHAR}, | ||
342 | + O_NAME = #{oName,jdbcType=VARCHAR}, | ||
343 | + DESTINATIONSTATION = #{destinationstation,jdbcType=VARCHAR}, | ||
344 | + FD_NAME = #{fdName,jdbcType=VARCHAR}, | ||
345 | + ARRIVEDTOTALPIECE = #{arrivedtotalpiece,jdbcType=VARCHAR}, | ||
346 | + TOTALPIECEQUANTITY = #{totalpiecequantity,jdbcType=VARCHAR}, | ||
347 | + ARRIVEDTOTALWEIGHT = #{arrivedtotalweight,jdbcType=VARCHAR}, | ||
348 | + GROSSWEIGHTMEASUREUC = #{grossweightmeasureuc,jdbcType=VARCHAR}, | ||
349 | + TOTALGROSSWEIGHTMEASURE = #{totalgrossweightmeasure,jdbcType=VARCHAR}, | ||
350 | + TOTALGROSSWEIGHTMEASUREUC = #{totalgrossweightmeasureuc,jdbcType=VARCHAR}, | ||
351 | + CHARGEABLEWEIGHTMEASURE = #{chargeableweightmeasure,jdbcType=VARCHAR}, | ||
352 | + CHARGEABLEWEIGHTMEASUREUC = #{chargeableweightmeasureuc,jdbcType=VARCHAR}, | ||
353 | + ARRIVEDDATE = #{arriveddate,jdbcType=TIMESTAMP}, | ||
354 | + TRANSPORTSPLITDESCRIPTION = #{transportsplitdescription,jdbcType=VARCHAR}, | ||
355 | + CUSTOMSCODE = #{customscode,jdbcType=VARCHAR}, | ||
356 | + PRODUCTNAME = #{productname,jdbcType=VARCHAR}, | ||
357 | + STATUS = #{status,jdbcType=VARCHAR}, | ||
358 | + RECEIPTINFORMATION = #{receiptinformation,jdbcType=VARCHAR}, | ||
359 | + CREATEDATE = #{createdate,jdbcType=TIMESTAMP}, | ||
360 | + ARRIVED_AHEAD = #{arrivedAhead,jdbcType=VARCHAR} | ||
361 | + where AUTOID = #{autoid,jdbcType=VARCHAR} | ||
362 | + </update> | ||
363 | +</mapper> |
1 | +<?xml version="1.0" encoding="UTF-8" ?> | ||
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | ||
3 | +<mapper namespace="com.tianbo.analysis.dao.ARRIVEDSECONDARYMapper" > | ||
4 | + <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.ARRIVEDSECONDARY" > | ||
5 | + <id column="AUTOID" property="autoid" jdbcType="VARCHAR" /> | ||
6 | + <result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" /> | ||
7 | + <result column="TCD_NAME" property="tcdName" jdbcType="VARCHAR" /> | ||
8 | + <result column="TCD_TYPECODE" property="tcdTypecode" jdbcType="VARCHAR" /> | ||
9 | + <result column="WAYBILLNOSECONDARY" property="waybillnosecondary" jdbcType="VARCHAR" /> | ||
10 | + <result column="CARRIER" property="carrier" jdbcType="VARCHAR" /> | ||
11 | + <result column="O_ID" property="oId" jdbcType="VARCHAR" /> | ||
12 | + <result column="O_NAME" property="oName" jdbcType="VARCHAR" /> | ||
13 | + <result column="FD_ID" property="fdId" jdbcType="VARCHAR" /> | ||
14 | + <result column="FD_NAME" property="fdName" jdbcType="VARCHAR" /> | ||
15 | + <result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" /> | ||
16 | + <result column="FLIGHTDATE" property="flightdate" jdbcType="TIMESTAMP" /> | ||
17 | + <result column="ARRIVEDTOTALPIECE" property="arrivedtotalpiece" jdbcType="VARCHAR" /> | ||
18 | + <result column="TOTALPIECEQUANTITY" property="totalpiecequantity" jdbcType="VARCHAR" /> | ||
19 | + <result column="ARRIVEDTOTALWEIGHT" property="arrivedtotalweight" jdbcType="VARCHAR" /> | ||
20 | + <result column="GROSSWEIGHTMEASUREUC" property="grossweightmeasureuc" jdbcType="VARCHAR" /> | ||
21 | + <result column="TOTALGROSSWEIGHTMEASURE" property="totalgrossweightmeasure" jdbcType="VARCHAR" /> | ||
22 | + <result column="TOTALGROSSWEIGHTMEASUREUC" property="totalgrossweightmeasureuc" jdbcType="VARCHAR" /> | ||
23 | + <result column="CHARGEABLEWEIGHTMEASURE" property="chargeableweightmeasure" jdbcType="VARCHAR" /> | ||
24 | + <result column="CHARGEABLEWEIGHTMEASUREUC" property="chargeableweightmeasureuc" jdbcType="VARCHAR" /> | ||
25 | + <result column="ARRIVEDDATE" property="arriveddate" jdbcType="TIMESTAMP" /> | ||
26 | + <result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" /> | ||
27 | + <result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" /> | ||
28 | + <result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" /> | ||
29 | + <result column="ARRIVEDMASTERID" property="arrivedmasterid" jdbcType="VARCHAR" /> | ||
30 | + <result column="TRANSPORTSPLITDESCRIPTION" property="transportsplitdescription" jdbcType="VARCHAR" /> | ||
31 | + <result column="RECEIPTION" property="receiption" jdbcType="VARCHAR" /> | ||
32 | + <result column="STATUS" property="status" jdbcType="VARCHAR" /> | ||
33 | + </resultMap> | ||
34 | + <sql id="Base_Column_List" > | ||
35 | + AUTOID, WAYBILLNOMASTER, TCD_NAME, TCD_TYPECODE, WAYBILLNOSECONDARY, CARRIER, O_ID, | ||
36 | + O_NAME, FD_ID, FD_NAME, FLIGHTNO, FLIGHTDATE, ARRIVEDTOTALPIECE, TOTALPIECEQUANTITY, | ||
37 | + ARRIVEDTOTALWEIGHT, GROSSWEIGHTMEASUREUC, TOTALGROSSWEIGHTMEASURE, TOTALGROSSWEIGHTMEASUREUC, | ||
38 | + CHARGEABLEWEIGHTMEASURE, CHARGEABLEWEIGHTMEASUREUC, ARRIVEDDATE, CUSTOMSCODE, PRODUCTNAME, | ||
39 | + CREATEDATE, ARRIVEDMASTERID, TRANSPORTSPLITDESCRIPTION, RECEIPTION, STATUS | ||
40 | + </sql> | ||
41 | + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" > | ||
42 | + select | ||
43 | + <include refid="Base_Column_List" /> | ||
44 | + from CGONMS.ARRIVEDSECONDARY | ||
45 | + where AUTOID = #{autoid,jdbcType=VARCHAR} | ||
46 | + </select> | ||
47 | + <select id="selectByWaybillNo" resultMap="BaseResultMap" parameterType="com.tianbo.analysis.model.ARRIVEDSECONDARY" > | ||
48 | + select | ||
49 | + <include refid="Base_Column_List" /> | ||
50 | + from CGONMS.ARRIVEDSECONDARY | ||
51 | + where WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR} | ||
52 | + and WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR} | ||
53 | + </select> | ||
54 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.String" > | ||
55 | + delete from CGONMS.ARRIVEDSECONDARY | ||
56 | + where AUTOID = #{autoid,jdbcType=VARCHAR} | ||
57 | + </delete> | ||
58 | + <insert id="insert" parameterType="com.tianbo.analysis.model.ARRIVEDSECONDARY" > | ||
59 | + insert into CGONMS.ARRIVEDSECONDARY (AUTOID, WAYBILLNOMASTER, TCD_NAME, | ||
60 | + TCD_TYPECODE, WAYBILLNOSECONDARY, CARRIER, | ||
61 | + O_ID, O_NAME, FD_ID, FD_NAME, | ||
62 | + FLIGHTNO, FLIGHTDATE, ARRIVEDTOTALPIECE, | ||
63 | + TOTALPIECEQUANTITY, ARRIVEDTOTALWEIGHT, | ||
64 | + GROSSWEIGHTMEASUREUC, TOTALGROSSWEIGHTMEASURE, | ||
65 | + TOTALGROSSWEIGHTMEASUREUC, CHARGEABLEWEIGHTMEASURE, | ||
66 | + CHARGEABLEWEIGHTMEASUREUC, ARRIVEDDATE, | ||
67 | + CUSTOMSCODE, PRODUCTNAME, CREATEDATE, | ||
68 | + ARRIVEDMASTERID, TRANSPORTSPLITDESCRIPTION, | ||
69 | + RECEIPTION, STATUS) | ||
70 | + values (#{autoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{tcdName,jdbcType=VARCHAR}, | ||
71 | + #{tcdTypecode,jdbcType=VARCHAR}, #{waybillnosecondary,jdbcType=VARCHAR}, #{carrier,jdbcType=VARCHAR}, | ||
72 | + #{oId,jdbcType=VARCHAR}, #{oName,jdbcType=VARCHAR}, #{fdId,jdbcType=VARCHAR}, #{fdName,jdbcType=VARCHAR}, | ||
73 | + #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=TIMESTAMP}, #{arrivedtotalpiece,jdbcType=VARCHAR}, | ||
74 | + #{totalpiecequantity,jdbcType=VARCHAR}, #{arrivedtotalweight,jdbcType=VARCHAR}, | ||
75 | + #{grossweightmeasureuc,jdbcType=VARCHAR}, #{totalgrossweightmeasure,jdbcType=VARCHAR}, | ||
76 | + #{totalgrossweightmeasureuc,jdbcType=VARCHAR}, #{chargeableweightmeasure,jdbcType=VARCHAR}, | ||
77 | + #{chargeableweightmeasureuc,jdbcType=VARCHAR}, #{arriveddate,jdbcType=TIMESTAMP}, | ||
78 | + #{customscode,jdbcType=VARCHAR}, #{productname,jdbcType=VARCHAR}, #{createdate,jdbcType=TIMESTAMP}, | ||
79 | + #{arrivedmasterid,jdbcType=VARCHAR}, #{transportsplitdescription,jdbcType=VARCHAR}, | ||
80 | + #{receiption,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}) | ||
81 | + </insert> | ||
82 | + <insert id="insertSelective" parameterType="com.tianbo.analysis.model.ARRIVEDSECONDARY" > | ||
83 | + insert into CGONMS.ARRIVEDSECONDARY | ||
84 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
85 | + <if test="autoid != null" > | ||
86 | + AUTOID, | ||
87 | + </if> | ||
88 | + <if test="waybillnomaster != null" > | ||
89 | + WAYBILLNOMASTER, | ||
90 | + </if> | ||
91 | + <if test="tcdName != null" > | ||
92 | + TCD_NAME, | ||
93 | + </if> | ||
94 | + <if test="tcdTypecode != null" > | ||
95 | + TCD_TYPECODE, | ||
96 | + </if> | ||
97 | + <if test="waybillnosecondary != null" > | ||
98 | + WAYBILLNOSECONDARY, | ||
99 | + </if> | ||
100 | + <if test="carrier != null" > | ||
101 | + CARRIER, | ||
102 | + </if> | ||
103 | + <if test="oId != null" > | ||
104 | + O_ID, | ||
105 | + </if> | ||
106 | + <if test="oName != null" > | ||
107 | + O_NAME, | ||
108 | + </if> | ||
109 | + <if test="fdId != null" > | ||
110 | + FD_ID, | ||
111 | + </if> | ||
112 | + <if test="fdName != null" > | ||
113 | + FD_NAME, | ||
114 | + </if> | ||
115 | + <if test="flightno != null" > | ||
116 | + FLIGHTNO, | ||
117 | + </if> | ||
118 | + <if test="flightdate != null" > | ||
119 | + FLIGHTDATE, | ||
120 | + </if> | ||
121 | + <if test="arrivedtotalpiece != null" > | ||
122 | + ARRIVEDTOTALPIECE, | ||
123 | + </if> | ||
124 | + <if test="totalpiecequantity != null" > | ||
125 | + TOTALPIECEQUANTITY, | ||
126 | + </if> | ||
127 | + <if test="arrivedtotalweight != null" > | ||
128 | + ARRIVEDTOTALWEIGHT, | ||
129 | + </if> | ||
130 | + <if test="grossweightmeasureuc != null" > | ||
131 | + GROSSWEIGHTMEASUREUC, | ||
132 | + </if> | ||
133 | + <if test="totalgrossweightmeasure != null" > | ||
134 | + TOTALGROSSWEIGHTMEASURE, | ||
135 | + </if> | ||
136 | + <if test="totalgrossweightmeasureuc != null" > | ||
137 | + TOTALGROSSWEIGHTMEASUREUC, | ||
138 | + </if> | ||
139 | + <if test="chargeableweightmeasure != null" > | ||
140 | + CHARGEABLEWEIGHTMEASURE, | ||
141 | + </if> | ||
142 | + <if test="chargeableweightmeasureuc != null" > | ||
143 | + CHARGEABLEWEIGHTMEASUREUC, | ||
144 | + </if> | ||
145 | + <if test="arriveddate != null" > | ||
146 | + ARRIVEDDATE, | ||
147 | + </if> | ||
148 | + <if test="customscode != null" > | ||
149 | + CUSTOMSCODE, | ||
150 | + </if> | ||
151 | + <if test="productname != null" > | ||
152 | + PRODUCTNAME, | ||
153 | + </if> | ||
154 | + <if test="createdate != null" > | ||
155 | + CREATEDATE, | ||
156 | + </if> | ||
157 | + <if test="arrivedmasterid != null" > | ||
158 | + ARRIVEDMASTERID, | ||
159 | + </if> | ||
160 | + <if test="transportsplitdescription != null" > | ||
161 | + TRANSPORTSPLITDESCRIPTION, | ||
162 | + </if> | ||
163 | + <if test="receiption != null" > | ||
164 | + RECEIPTION, | ||
165 | + </if> | ||
166 | + <if test="status != null" > | ||
167 | + STATUS, | ||
168 | + </if> | ||
169 | + </trim> | ||
170 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
171 | + <if test="autoid != null" > | ||
172 | + #{autoid,jdbcType=VARCHAR}, | ||
173 | + </if> | ||
174 | + <if test="waybillnomaster != null" > | ||
175 | + #{waybillnomaster,jdbcType=VARCHAR}, | ||
176 | + </if> | ||
177 | + <if test="tcdName != null" > | ||
178 | + #{tcdName,jdbcType=VARCHAR}, | ||
179 | + </if> | ||
180 | + <if test="tcdTypecode != null" > | ||
181 | + #{tcdTypecode,jdbcType=VARCHAR}, | ||
182 | + </if> | ||
183 | + <if test="waybillnosecondary != null" > | ||
184 | + #{waybillnosecondary,jdbcType=VARCHAR}, | ||
185 | + </if> | ||
186 | + <if test="carrier != null" > | ||
187 | + #{carrier,jdbcType=VARCHAR}, | ||
188 | + </if> | ||
189 | + <if test="oId != null" > | ||
190 | + #{oId,jdbcType=VARCHAR}, | ||
191 | + </if> | ||
192 | + <if test="oName != null" > | ||
193 | + #{oName,jdbcType=VARCHAR}, | ||
194 | + </if> | ||
195 | + <if test="fdId != null" > | ||
196 | + #{fdId,jdbcType=VARCHAR}, | ||
197 | + </if> | ||
198 | + <if test="fdName != null" > | ||
199 | + #{fdName,jdbcType=VARCHAR}, | ||
200 | + </if> | ||
201 | + <if test="flightno != null" > | ||
202 | + #{flightno,jdbcType=VARCHAR}, | ||
203 | + </if> | ||
204 | + <if test="flightdate != null" > | ||
205 | + #{flightdate,jdbcType=TIMESTAMP}, | ||
206 | + </if> | ||
207 | + <if test="arrivedtotalpiece != null" > | ||
208 | + #{arrivedtotalpiece,jdbcType=VARCHAR}, | ||
209 | + </if> | ||
210 | + <if test="totalpiecequantity != null" > | ||
211 | + #{totalpiecequantity,jdbcType=VARCHAR}, | ||
212 | + </if> | ||
213 | + <if test="arrivedtotalweight != null" > | ||
214 | + #{arrivedtotalweight,jdbcType=VARCHAR}, | ||
215 | + </if> | ||
216 | + <if test="grossweightmeasureuc != null" > | ||
217 | + #{grossweightmeasureuc,jdbcType=VARCHAR}, | ||
218 | + </if> | ||
219 | + <if test="totalgrossweightmeasure != null" > | ||
220 | + #{totalgrossweightmeasure,jdbcType=VARCHAR}, | ||
221 | + </if> | ||
222 | + <if test="totalgrossweightmeasureuc != null" > | ||
223 | + #{totalgrossweightmeasureuc,jdbcType=VARCHAR}, | ||
224 | + </if> | ||
225 | + <if test="chargeableweightmeasure != null" > | ||
226 | + #{chargeableweightmeasure,jdbcType=VARCHAR}, | ||
227 | + </if> | ||
228 | + <if test="chargeableweightmeasureuc != null" > | ||
229 | + #{chargeableweightmeasureuc,jdbcType=VARCHAR}, | ||
230 | + </if> | ||
231 | + <if test="arriveddate != null" > | ||
232 | + #{arriveddate,jdbcType=TIMESTAMP}, | ||
233 | + </if> | ||
234 | + <if test="customscode != null" > | ||
235 | + #{customscode,jdbcType=VARCHAR}, | ||
236 | + </if> | ||
237 | + <if test="productname != null" > | ||
238 | + #{productname,jdbcType=VARCHAR}, | ||
239 | + </if> | ||
240 | + <if test="createdate != null" > | ||
241 | + #{createdate,jdbcType=TIMESTAMP}, | ||
242 | + </if> | ||
243 | + <if test="arrivedmasterid != null" > | ||
244 | + #{arrivedmasterid,jdbcType=VARCHAR}, | ||
245 | + </if> | ||
246 | + <if test="transportsplitdescription != null" > | ||
247 | + #{transportsplitdescription,jdbcType=VARCHAR}, | ||
248 | + </if> | ||
249 | + <if test="receiption != null" > | ||
250 | + #{receiption,jdbcType=VARCHAR}, | ||
251 | + </if> | ||
252 | + <if test="status != null" > | ||
253 | + #{status,jdbcType=VARCHAR}, | ||
254 | + </if> | ||
255 | + </trim> | ||
256 | + </insert> | ||
257 | + <update id="updateByPrimaryKeySelective" parameterType="com.tianbo.analysis.model.ARRIVEDSECONDARY" > | ||
258 | + update CGONMS.ARRIVEDSECONDARY | ||
259 | + <set > | ||
260 | + <if test="waybillnomaster != null" > | ||
261 | + WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}, | ||
262 | + </if> | ||
263 | + <if test="tcdName != null" > | ||
264 | + TCD_NAME = #{tcdName,jdbcType=VARCHAR}, | ||
265 | + </if> | ||
266 | + <if test="tcdTypecode != null" > | ||
267 | + TCD_TYPECODE = #{tcdTypecode,jdbcType=VARCHAR}, | ||
268 | + </if> | ||
269 | + <if test="waybillnosecondary != null" > | ||
270 | + WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}, | ||
271 | + </if> | ||
272 | + <if test="carrier != null" > | ||
273 | + CARRIER = #{carrier,jdbcType=VARCHAR}, | ||
274 | + </if> | ||
275 | + <if test="oId != null" > | ||
276 | + O_ID = #{oId,jdbcType=VARCHAR}, | ||
277 | + </if> | ||
278 | + <if test="oName != null" > | ||
279 | + O_NAME = #{oName,jdbcType=VARCHAR}, | ||
280 | + </if> | ||
281 | + <if test="fdId != null" > | ||
282 | + FD_ID = #{fdId,jdbcType=VARCHAR}, | ||
283 | + </if> | ||
284 | + <if test="fdName != null" > | ||
285 | + FD_NAME = #{fdName,jdbcType=VARCHAR}, | ||
286 | + </if> | ||
287 | + <if test="flightno != null" > | ||
288 | + FLIGHTNO = #{flightno,jdbcType=VARCHAR}, | ||
289 | + </if> | ||
290 | + <if test="flightdate != null" > | ||
291 | + FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP}, | ||
292 | + </if> | ||
293 | + <if test="arrivedtotalpiece != null" > | ||
294 | + ARRIVEDTOTALPIECE = #{arrivedtotalpiece,jdbcType=VARCHAR}, | ||
295 | + </if> | ||
296 | + <if test="totalpiecequantity != null" > | ||
297 | + TOTALPIECEQUANTITY = #{totalpiecequantity,jdbcType=VARCHAR}, | ||
298 | + </if> | ||
299 | + <if test="arrivedtotalweight != null" > | ||
300 | + ARRIVEDTOTALWEIGHT = #{arrivedtotalweight,jdbcType=VARCHAR}, | ||
301 | + </if> | ||
302 | + <if test="grossweightmeasureuc != null" > | ||
303 | + GROSSWEIGHTMEASUREUC = #{grossweightmeasureuc,jdbcType=VARCHAR}, | ||
304 | + </if> | ||
305 | + <if test="totalgrossweightmeasure != null" > | ||
306 | + TOTALGROSSWEIGHTMEASURE = #{totalgrossweightmeasure,jdbcType=VARCHAR}, | ||
307 | + </if> | ||
308 | + <if test="totalgrossweightmeasureuc != null" > | ||
309 | + TOTALGROSSWEIGHTMEASUREUC = #{totalgrossweightmeasureuc,jdbcType=VARCHAR}, | ||
310 | + </if> | ||
311 | + <if test="chargeableweightmeasure != null" > | ||
312 | + CHARGEABLEWEIGHTMEASURE = #{chargeableweightmeasure,jdbcType=VARCHAR}, | ||
313 | + </if> | ||
314 | + <if test="chargeableweightmeasureuc != null" > | ||
315 | + CHARGEABLEWEIGHTMEASUREUC = #{chargeableweightmeasureuc,jdbcType=VARCHAR}, | ||
316 | + </if> | ||
317 | + <if test="arriveddate != null" > | ||
318 | + ARRIVEDDATE = #{arriveddate,jdbcType=TIMESTAMP}, | ||
319 | + </if> | ||
320 | + <if test="customscode != null" > | ||
321 | + CUSTOMSCODE = #{customscode,jdbcType=VARCHAR}, | ||
322 | + </if> | ||
323 | + <if test="productname != null" > | ||
324 | + PRODUCTNAME = #{productname,jdbcType=VARCHAR}, | ||
325 | + </if> | ||
326 | + <if test="createdate != null" > | ||
327 | + CREATEDATE = #{createdate,jdbcType=TIMESTAMP}, | ||
328 | + </if> | ||
329 | + <if test="arrivedmasterid != null" > | ||
330 | + ARRIVEDMASTERID = #{arrivedmasterid,jdbcType=VARCHAR}, | ||
331 | + </if> | ||
332 | + <if test="transportsplitdescription != null" > | ||
333 | + TRANSPORTSPLITDESCRIPTION = #{transportsplitdescription,jdbcType=VARCHAR}, | ||
334 | + </if> | ||
335 | + <if test="receiption != null" > | ||
336 | + RECEIPTION = #{receiption,jdbcType=VARCHAR}, | ||
337 | + </if> | ||
338 | + <if test="status != null" > | ||
339 | + STATUS = #{status,jdbcType=VARCHAR}, | ||
340 | + </if> | ||
341 | + </set> | ||
342 | + where AUTOID = #{autoid,jdbcType=VARCHAR} | ||
343 | + </update> | ||
344 | + <update id="updateByPrimaryKey" parameterType="com.tianbo.analysis.model.ARRIVEDSECONDARY" > | ||
345 | + update CGONMS.ARRIVEDSECONDARY | ||
346 | + set WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}, | ||
347 | + TCD_NAME = #{tcdName,jdbcType=VARCHAR}, | ||
348 | + TCD_TYPECODE = #{tcdTypecode,jdbcType=VARCHAR}, | ||
349 | + WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}, | ||
350 | + CARRIER = #{carrier,jdbcType=VARCHAR}, | ||
351 | + O_ID = #{oId,jdbcType=VARCHAR}, | ||
352 | + O_NAME = #{oName,jdbcType=VARCHAR}, | ||
353 | + FD_ID = #{fdId,jdbcType=VARCHAR}, | ||
354 | + FD_NAME = #{fdName,jdbcType=VARCHAR}, | ||
355 | + FLIGHTNO = #{flightno,jdbcType=VARCHAR}, | ||
356 | + FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP}, | ||
357 | + ARRIVEDTOTALPIECE = #{arrivedtotalpiece,jdbcType=VARCHAR}, | ||
358 | + TOTALPIECEQUANTITY = #{totalpiecequantity,jdbcType=VARCHAR}, | ||
359 | + ARRIVEDTOTALWEIGHT = #{arrivedtotalweight,jdbcType=VARCHAR}, | ||
360 | + GROSSWEIGHTMEASUREUC = #{grossweightmeasureuc,jdbcType=VARCHAR}, | ||
361 | + TOTALGROSSWEIGHTMEASURE = #{totalgrossweightmeasure,jdbcType=VARCHAR}, | ||
362 | + TOTALGROSSWEIGHTMEASUREUC = #{totalgrossweightmeasureuc,jdbcType=VARCHAR}, | ||
363 | + CHARGEABLEWEIGHTMEASURE = #{chargeableweightmeasure,jdbcType=VARCHAR}, | ||
364 | + CHARGEABLEWEIGHTMEASUREUC = #{chargeableweightmeasureuc,jdbcType=VARCHAR}, | ||
365 | + ARRIVEDDATE = #{arriveddate,jdbcType=TIMESTAMP}, | ||
366 | + CUSTOMSCODE = #{customscode,jdbcType=VARCHAR}, | ||
367 | + PRODUCTNAME = #{productname,jdbcType=VARCHAR}, | ||
368 | + CREATEDATE = #{createdate,jdbcType=TIMESTAMP}, | ||
369 | + ARRIVEDMASTERID = #{arrivedmasterid,jdbcType=VARCHAR}, | ||
370 | + TRANSPORTSPLITDESCRIPTION = #{transportsplitdescription,jdbcType=VARCHAR}, | ||
371 | + RECEIPTION = #{receiption,jdbcType=VARCHAR}, | ||
372 | + STATUS = #{status,jdbcType=VARCHAR} | ||
373 | + where AUTOID = #{autoid,jdbcType=VARCHAR} | ||
374 | + </update> | ||
375 | +</mapper> |
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
3 | +<mapper namespace="com.tianbo.analysis.dao.COMPANYUSERMapper"> | ||
4 | + <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.COMPANYUSER"> | ||
5 | + <id column="ID" jdbcType="VARCHAR" property="id" /> | ||
6 | + <result column="CROP_CODE" jdbcType="VARCHAR" property="cropCode" /> | ||
7 | + <result column="PASSWORD" jdbcType="VARCHAR" property="password" /> | ||
8 | + <result column="CUSTOMS_CODE" jdbcType="VARCHAR" property="customsCode" /> | ||
9 | + <result column="ORG_CODE" jdbcType="VARCHAR" property="orgCode" /> | ||
10 | + <result column="FULL_NAME" jdbcType="VARCHAR" property="fullName" /> | ||
11 | + <result column="ADDR_CO" jdbcType="VARCHAR" property="addrCo" /> | ||
12 | + <result column="LAW_MAN" jdbcType="VARCHAR" property="lawMan" /> | ||
13 | + <result column="CONTAC_CO" jdbcType="VARCHAR" property="contacCo" /> | ||
14 | + <result column="TEL_CO" jdbcType="VARCHAR" property="telCo" /> | ||
15 | + <result column="CROP_TYPE" jdbcType="VARCHAR" property="cropType" /> | ||
16 | + <result column="ZIP_CODE" jdbcType="VARCHAR" property="zipCode" /> | ||
17 | + <result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" /> | ||
18 | + </resultMap> | ||
19 | + <sql id="Base_Column_List"> | ||
20 | + ID, CROP_CODE, PASSWORD, CUSTOMS_CODE, ORG_CODE, FULL_NAME, ADDR_CO, LAW_MAN, CONTAC_CO, | ||
21 | + TEL_CO, CROP_TYPE, ZIP_CODE, CREATE_DATE | ||
22 | + </sql> | ||
23 | + <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> | ||
24 | + select | ||
25 | + <include refid="Base_Column_List" /> | ||
26 | + from COMPANYUSER | ||
27 | + where ID = #{id,jdbcType=VARCHAR} | ||
28 | + </select> | ||
29 | + <select id="selectByUsername" parameterType="java.lang.String" resultMap="BaseResultMap"> | ||
30 | + select | ||
31 | + <include refid="Base_Column_List" /> | ||
32 | + from COMPANYUSER | ||
33 | + where CROP_CODE = #{cropCode,jdbcType=VARCHAR} | ||
34 | + </select> | ||
35 | + <select id="selectByIdAndName" parameterType="com.tianbo.analysis.model.COMPANYUSER" resultMap="BaseResultMap"> | ||
36 | + select | ||
37 | + <include refid="Base_Column_List" /> | ||
38 | + from COMPANYUSER | ||
39 | + where ID = #{id,jdbcType=VARCHAR} | ||
40 | + and CROP_CODE = #{cropCode,jdbcType=VARCHAR} | ||
41 | + </select> | ||
42 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> | ||
43 | + delete from COMPANYUSER | ||
44 | + where ID = #{id,jdbcType=VARCHAR} | ||
45 | + </delete> | ||
46 | + <insert id="insert" parameterType="com.tianbo.analysis.model.COMPANYUSER"> | ||
47 | + insert into COMPANYUSER (ID, CROP_CODE, PASSWORD, | ||
48 | + CUSTOMS_CODE, ORG_CODE, FULL_NAME, | ||
49 | + ADDR_CO, LAW_MAN, CONTAC_CO, | ||
50 | + TEL_CO, CROP_TYPE, ZIP_CODE, | ||
51 | + CREATE_DATE) | ||
52 | + values (#{id,jdbcType=VARCHAR}, #{cropCode,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, | ||
53 | + #{customsCode,jdbcType=VARCHAR}, #{orgCode,jdbcType=VARCHAR}, #{fullName,jdbcType=VARCHAR}, | ||
54 | + #{addrCo,jdbcType=VARCHAR}, #{lawMan,jdbcType=VARCHAR}, #{contacCo,jdbcType=VARCHAR}, | ||
55 | + #{telCo,jdbcType=VARCHAR}, #{cropType,jdbcType=VARCHAR}, #{zipCode,jdbcType=VARCHAR}, | ||
56 | + #{createDate,jdbcType=TIMESTAMP}) | ||
57 | + </insert> | ||
58 | + <insert id="insertSelective" parameterType="com.tianbo.analysis.model.COMPANYUSER"> | ||
59 | + insert into COMPANYUSER | ||
60 | + <trim prefix="(" suffix=")" suffixOverrides=","> | ||
61 | + <if test="id != null"> | ||
62 | + ID, | ||
63 | + </if> | ||
64 | + <if test="cropCode != null"> | ||
65 | + CROP_CODE, | ||
66 | + </if> | ||
67 | + <if test="password != null"> | ||
68 | + PASSWORD, | ||
69 | + </if> | ||
70 | + <if test="customsCode != null"> | ||
71 | + CUSTOMS_CODE, | ||
72 | + </if> | ||
73 | + <if test="orgCode != null"> | ||
74 | + ORG_CODE, | ||
75 | + </if> | ||
76 | + <if test="fullName != null"> | ||
77 | + FULL_NAME, | ||
78 | + </if> | ||
79 | + <if test="addrCo != null"> | ||
80 | + ADDR_CO, | ||
81 | + </if> | ||
82 | + <if test="lawMan != null"> | ||
83 | + LAW_MAN, | ||
84 | + </if> | ||
85 | + <if test="contacCo != null"> | ||
86 | + CONTAC_CO, | ||
87 | + </if> | ||
88 | + <if test="telCo != null"> | ||
89 | + TEL_CO, | ||
90 | + </if> | ||
91 | + <if test="cropType != null"> | ||
92 | + CROP_TYPE, | ||
93 | + </if> | ||
94 | + <if test="zipCode != null"> | ||
95 | + ZIP_CODE, | ||
96 | + </if> | ||
97 | + <if test="createDate != null"> | ||
98 | + CREATE_DATE, | ||
99 | + </if> | ||
100 | + </trim> | ||
101 | + <trim prefix="values (" suffix=")" suffixOverrides=","> | ||
102 | + <if test="id != null"> | ||
103 | + #{id,jdbcType=VARCHAR}, | ||
104 | + </if> | ||
105 | + <if test="cropCode != null"> | ||
106 | + #{cropCode,jdbcType=VARCHAR}, | ||
107 | + </if> | ||
108 | + <if test="password != null"> | ||
109 | + #{password,jdbcType=VARCHAR}, | ||
110 | + </if> | ||
111 | + <if test="customsCode != null"> | ||
112 | + #{customsCode,jdbcType=VARCHAR}, | ||
113 | + </if> | ||
114 | + <if test="orgCode != null"> | ||
115 | + #{orgCode,jdbcType=VARCHAR}, | ||
116 | + </if> | ||
117 | + <if test="fullName != null"> | ||
118 | + #{fullName,jdbcType=VARCHAR}, | ||
119 | + </if> | ||
120 | + <if test="addrCo != null"> | ||
121 | + #{addrCo,jdbcType=VARCHAR}, | ||
122 | + </if> | ||
123 | + <if test="lawMan != null"> | ||
124 | + #{lawMan,jdbcType=VARCHAR}, | ||
125 | + </if> | ||
126 | + <if test="contacCo != null"> | ||
127 | + #{contacCo,jdbcType=VARCHAR}, | ||
128 | + </if> | ||
129 | + <if test="telCo != null"> | ||
130 | + #{telCo,jdbcType=VARCHAR}, | ||
131 | + </if> | ||
132 | + <if test="cropType != null"> | ||
133 | + #{cropType,jdbcType=VARCHAR}, | ||
134 | + </if> | ||
135 | + <if test="zipCode != null"> | ||
136 | + #{zipCode,jdbcType=VARCHAR}, | ||
137 | + </if> | ||
138 | + <if test="createDate != null"> | ||
139 | + #{createDate,jdbcType=TIMESTAMP}, | ||
140 | + </if> | ||
141 | + </trim> | ||
142 | + </insert> | ||
143 | + <update id="updateByPrimaryKeySelective" parameterType="com.tianbo.analysis.model.COMPANYUSER"> | ||
144 | + update COMPANYUSER | ||
145 | + <set> | ||
146 | + <if test="cropCode != null"> | ||
147 | + CROP_CODE = #{cropCode,jdbcType=VARCHAR}, | ||
148 | + </if> | ||
149 | + <if test="password != null"> | ||
150 | + PASSWORD = #{password,jdbcType=VARCHAR}, | ||
151 | + </if> | ||
152 | + <if test="customsCode != null"> | ||
153 | + CUSTOMS_CODE = #{customsCode,jdbcType=VARCHAR}, | ||
154 | + </if> | ||
155 | + <if test="orgCode != null"> | ||
156 | + ORG_CODE = #{orgCode,jdbcType=VARCHAR}, | ||
157 | + </if> | ||
158 | + <if test="fullName != null"> | ||
159 | + FULL_NAME = #{fullName,jdbcType=VARCHAR}, | ||
160 | + </if> | ||
161 | + <if test="addrCo != null"> | ||
162 | + ADDR_CO = #{addrCo,jdbcType=VARCHAR}, | ||
163 | + </if> | ||
164 | + <if test="lawMan != null"> | ||
165 | + LAW_MAN = #{lawMan,jdbcType=VARCHAR}, | ||
166 | + </if> | ||
167 | + <if test="contacCo != null"> | ||
168 | + CONTAC_CO = #{contacCo,jdbcType=VARCHAR}, | ||
169 | + </if> | ||
170 | + <if test="telCo != null"> | ||
171 | + TEL_CO = #{telCo,jdbcType=VARCHAR}, | ||
172 | + </if> | ||
173 | + <if test="cropType != null"> | ||
174 | + CROP_TYPE = #{cropType,jdbcType=VARCHAR}, | ||
175 | + </if> | ||
176 | + <if test="zipCode != null"> | ||
177 | + ZIP_CODE = #{zipCode,jdbcType=VARCHAR}, | ||
178 | + </if> | ||
179 | + <if test="createDate != null"> | ||
180 | + CREATE_DATE = #{createDate,jdbcType=TIMESTAMP}, | ||
181 | + </if> | ||
182 | + </set> | ||
183 | + where ID = #{id,jdbcType=VARCHAR} | ||
184 | + </update> | ||
185 | + <update id="updateByPrimaryKey" parameterType="com.tianbo.analysis.model.COMPANYUSER"> | ||
186 | + update COMPANYUSER | ||
187 | + set CROP_CODE = #{cropCode,jdbcType=VARCHAR}, | ||
188 | + PASSWORD = #{password,jdbcType=VARCHAR}, | ||
189 | + CUSTOMS_CODE = #{customsCode,jdbcType=VARCHAR}, | ||
190 | + ORG_CODE = #{orgCode,jdbcType=VARCHAR}, | ||
191 | + FULL_NAME = #{fullName,jdbcType=VARCHAR}, | ||
192 | + ADDR_CO = #{addrCo,jdbcType=VARCHAR}, | ||
193 | + LAW_MAN = #{lawMan,jdbcType=VARCHAR}, | ||
194 | + CONTAC_CO = #{contacCo,jdbcType=VARCHAR}, | ||
195 | + TEL_CO = #{telCo,jdbcType=VARCHAR}, | ||
196 | + CROP_TYPE = #{cropType,jdbcType=VARCHAR}, | ||
197 | + ZIP_CODE = #{zipCode,jdbcType=VARCHAR}, | ||
198 | + CREATE_DATE = #{createDate,jdbcType=TIMESTAMP} | ||
199 | + where ID = #{id,jdbcType=VARCHAR} | ||
200 | + </update> | ||
201 | +</mapper> |
1 | +<?xml version="1.0" encoding="UTF-8" ?> | ||
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | ||
3 | +<mapper namespace="com.tianbo.analysis.dao.DOMTRANSITMapper" > | ||
4 | + <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.DOMTRANSIT" > | ||
5 | + <id column="ID" property="id" jdbcType="VARCHAR" /> | ||
6 | + <result column="TRANSIT_TYPE" property="transitType" jdbcType="VARCHAR" /> | ||
7 | + <result column="PIECE" property="piece" jdbcType="DECIMAL" /> | ||
8 | + <result column="WEIGHT" property="weight" jdbcType="DECIMAL" /> | ||
9 | + <result column="ORIGIN_STATION" property="originStation" jdbcType="VARCHAR" /> | ||
10 | + <result column="DESTINATION_STATION" property="destinationStation" jdbcType="VARCHAR" /> | ||
11 | + <result column="GOODSDESEN" property="goodsdesen" jdbcType="VARCHAR" /> | ||
12 | + <result column="GOODSDESCN" property="goodsdescn" jdbcType="VARCHAR" /> | ||
13 | + <result column="PACK" property="pack" jdbcType="VARCHAR" /> | ||
14 | + <result column="ORIGIN_MASTERWAYBILL" property="originMasterwaybill" jdbcType="VARCHAR" /> | ||
15 | + <result column="ORIGIN_HOUSEWAYBILL" property="originHousewaybill" jdbcType="VARCHAR" /> | ||
16 | + <result column="ORIGIN_FLIGHTNO" property="originFlightno" jdbcType="VARCHAR" /> | ||
17 | + <result column="ORIGIN_FLIGHTDATE" property="originFlightdate" jdbcType="TIMESTAMP" /> | ||
18 | + <result column="TRANS_MASTERWAYBILL" property="transMasterwaybill" jdbcType="VARCHAR" /> | ||
19 | + <result column="TRANS_HOUSEWAYBILL" property="transHousewaybill" jdbcType="VARCHAR" /> | ||
20 | + <result column="TRANS_FLIGHTNO" property="transFlightno" jdbcType="VARCHAR" /> | ||
21 | + <result column="TRANS_FLIGHTDATE" property="transFlightdate" jdbcType="TIMESTAMP" /> | ||
22 | + <result column="CREATE_DATE" property="createDate" jdbcType="TIMESTAMP" /> | ||
23 | + <result column="MODIFY_TIME" property="modifyTime" jdbcType="TIMESTAMP" /> | ||
24 | + <result column="MODIFY_NAME" property="modifyName" jdbcType="VARCHAR" /> | ||
25 | + <result column="AGENT_NAME" property="agentName" jdbcType="VARCHAR" /> | ||
26 | + <result column="AGENT_CODE" property="agentCode" jdbcType="VARCHAR" /> | ||
27 | + <result column="USER_NAME" property="userName" jdbcType="VARCHAR" /> | ||
28 | + <result column="USER_REAL_NAME" property="userRealName" jdbcType="VARCHAR" /> | ||
29 | + <result column="USER_TEL" property="userTel" jdbcType="VARCHAR" /> | ||
30 | + <result column="STATUS" property="status" jdbcType="DECIMAL" /> | ||
31 | + <result column="APPROVER_ACCOUNT" property="approverAccount" jdbcType="VARCHAR" /> | ||
32 | + <result column="APPROVER_DATE" property="approverDate" jdbcType="VARCHAR" /> | ||
33 | + <result column="APPROVER_RESOULT" property="approverResoult" jdbcType="VARCHAR" /> | ||
34 | + </resultMap> | ||
35 | + <sql id="Base_Column_List" > | ||
36 | + ID, TRANSIT_TYPE, PIECE, WEIGHT, ORIGIN_STATION, DESTINATION_STATION, GOODSDESEN, | ||
37 | + GOODSDESCN, PACK, ORIGIN_MASTERWAYBILL, ORIGIN_HOUSEWAYBILL, ORIGIN_FLIGHTNO, ORIGIN_FLIGHTDATE, | ||
38 | + TRANS_MASTERWAYBILL, TRANS_HOUSEWAYBILL, TRANS_FLIGHTNO, TRANS_FLIGHTDATE, CREATE_DATE, | ||
39 | + MODIFY_TIME, MODIFY_NAME, AGENT_NAME, AGENT_CODE, USER_NAME, USER_REAL_NAME, USER_TEL, | ||
40 | + STATUS, APPROVER_ACCOUNT, APPROVER_DATE, APPROVER_RESOULT | ||
41 | + </sql> | ||
42 | + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" > | ||
43 | + select | ||
44 | + <include refid="Base_Column_List" /> | ||
45 | + from DOMTRANSIT | ||
46 | + where ID = #{id,jdbcType=VARCHAR} | ||
47 | + </select> | ||
48 | + <select id="selectList" resultMap="BaseResultMap" parameterType="com.tianbo.analysis.model.DOMTRANSIT" > | ||
49 | + select | ||
50 | + <include refid="Base_Column_List" /> | ||
51 | + from DOMTRANSIT | ||
52 | + <where> | ||
53 | + <if test="transitType != null"> | ||
54 | + TRANSIT_TYPE = #{transitType,jdbcType=VARCHAR} | ||
55 | + </if> | ||
56 | + <if test="originMasterwaybill !=null and originMasterwaybill != ''"> | ||
57 | + AND ORIGIN_MASTERWAYBILL = #{originMasterwaybill,jdbcType=VARCHAR} | ||
58 | + </if> | ||
59 | + <if test="originHousewaybill !=null and originHousewaybill !=''"> | ||
60 | + AND ORIGIN_HOUSEWAYBILL = #{originHousewaybill,jdbcType=VARCHAR} | ||
61 | + </if> | ||
62 | + <if test="originFlightno !=null and originFlightno !=''"> | ||
63 | + AND ORIGIN_FLIGHTNO = #{originFlightno,jdbcType=VARCHAR} | ||
64 | + </if> | ||
65 | + <if test="originFlightdate != null and originFlightdate !=''"> | ||
66 | + AND ORIGIN_FLIGHTDATE = to_date(#{originFlightdate}, 'YYYY-MM-DD') | ||
67 | + </if> | ||
68 | + <if test="transMasterwaybill != null and transMasterwaybill !='' "> | ||
69 | + AND TRANS_MASTERWAYBILL = #{transMasterwaybill,jdbcType=VARCHAR} | ||
70 | + </if> | ||
71 | + <if test="transHousewaybill != null and transHousewaybill !='' "> | ||
72 | + AND TRANS_FLIGHTNO = #{transHousewaybill,jdbcType=VARCHAR} | ||
73 | + </if> | ||
74 | + <if test="transFlightno !=null and originFltransFlightnoightno !=''"> | ||
75 | + AND ORIGIN_FLIGHTNO = #{transFlightno,jdbcType=VARCHAR} | ||
76 | + </if> | ||
77 | + <if test="transFlightdate !=null and transFlightdate !=''"> | ||
78 | + AND TRANS_FLIGHTDATE = to_date(#{transFlightdate}, 'YYYY-MM-DD') | ||
79 | + </if> | ||
80 | + <if test="userName !=null and userName !=''"> | ||
81 | + AND USER_NAME = #{userName,jdbcType=VARCHAR} | ||
82 | + </if> | ||
83 | + <if test="agentCode !=null and agentCode !=''"> | ||
84 | + AND AGENT_CODE = #{agentCode,jdbcType=VARCHAR} | ||
85 | + </if> | ||
86 | + <if test="agentName !=null and agentName !=''"> | ||
87 | + AND AGENT_NAME like CONCAT('%',#{agentName,jdbcType=VARCHAR},'%') | ||
88 | + </if> | ||
89 | + </where> | ||
90 | + </select> | ||
91 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.String" > | ||
92 | + delete from DOMTRANSIT | ||
93 | + where ID = #{id,jdbcType=VARCHAR} | ||
94 | + </delete> | ||
95 | + <insert id="insert" parameterType="com.tianbo.analysis.model.DOMTRANSIT" > | ||
96 | + insert into DOMTRANSIT (ID, TRANSIT_TYPE, PIECE, | ||
97 | + WEIGHT, ORIGIN_STATION, DESTINATION_STATION, | ||
98 | + GOODSDESEN, GOODSDESCN, PACK, | ||
99 | + ORIGIN_MASTERWAYBILL, ORIGIN_HOUSEWAYBILL, | ||
100 | + ORIGIN_FLIGHTNO, ORIGIN_FLIGHTDATE, TRANS_MASTERWAYBILL, | ||
101 | + TRANS_HOUSEWAYBILL, TRANS_FLIGHTNO, TRANS_FLIGHTDATE, | ||
102 | + CREATE_DATE, MODIFY_TIME, MODIFY_NAME, | ||
103 | + AGENT_NAME, AGENT_CODE, USER_NAME, | ||
104 | + USER_REAL_NAME, USER_TEL, STATUS, | ||
105 | + APPROVER_ACCOUNT, APPROVER_DATE, APPROVER_RESOULT | ||
106 | + ) | ||
107 | + values (#{id,jdbcType=VARCHAR}, #{transitType,jdbcType=VARCHAR}, #{piece,jdbcType=DECIMAL}, | ||
108 | + #{weight,jdbcType=DECIMAL}, #{originStation,jdbcType=VARCHAR}, #{destinationStation,jdbcType=VARCHAR}, | ||
109 | + #{goodsdesen,jdbcType=VARCHAR}, #{goodsdescn,jdbcType=VARCHAR}, #{pack,jdbcType=VARCHAR}, | ||
110 | + #{originMasterwaybill,jdbcType=VARCHAR}, #{originHousewaybill,jdbcType=VARCHAR}, | ||
111 | + #{originFlightno,jdbcType=VARCHAR}, #{originFlightdate,jdbcType=TIMESTAMP}, #{transMasterwaybill,jdbcType=VARCHAR}, | ||
112 | + #{transHousewaybill,jdbcType=VARCHAR}, #{transFlightno,jdbcType=VARCHAR}, #{transFlightdate,jdbcType=TIMESTAMP}, | ||
113 | + #{createDate,jdbcType=TIMESTAMP}, #{modifyTime,jdbcType=TIMESTAMP}, #{modifyName,jdbcType=VARCHAR}, | ||
114 | + #{agentName,jdbcType=VARCHAR}, #{agentCode,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, | ||
115 | + #{userRealName,jdbcType=VARCHAR}, #{userTel,jdbcType=VARCHAR}, #{status,jdbcType=DECIMAL}, | ||
116 | + #{approverAccount,jdbcType=VARCHAR}, #{approverDate,jdbcType=VARCHAR}, #{approverResoult,jdbcType=VARCHAR} | ||
117 | + ) | ||
118 | + </insert> | ||
119 | + <insert id="insertSelective" parameterType="com.tianbo.analysis.model.DOMTRANSIT" > | ||
120 | + insert into DOMTRANSIT | ||
121 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
122 | + <if test="id != null" > | ||
123 | + ID, | ||
124 | + </if> | ||
125 | + <if test="transitType != null" > | ||
126 | + TRANSIT_TYPE, | ||
127 | + </if> | ||
128 | + <if test="piece != null" > | ||
129 | + PIECE, | ||
130 | + </if> | ||
131 | + <if test="weight != null" > | ||
132 | + WEIGHT, | ||
133 | + </if> | ||
134 | + <if test="originStation != null" > | ||
135 | + ORIGIN_STATION, | ||
136 | + </if> | ||
137 | + <if test="destinationStation != null" > | ||
138 | + DESTINATION_STATION, | ||
139 | + </if> | ||
140 | + <if test="goodsdesen != null" > | ||
141 | + GOODSDESEN, | ||
142 | + </if> | ||
143 | + <if test="goodsdescn != null" > | ||
144 | + GOODSDESCN, | ||
145 | + </if> | ||
146 | + <if test="pack != null" > | ||
147 | + PACK, | ||
148 | + </if> | ||
149 | + <if test="originMasterwaybill != null" > | ||
150 | + ORIGIN_MASTERWAYBILL, | ||
151 | + </if> | ||
152 | + <if test="originHousewaybill != null" > | ||
153 | + ORIGIN_HOUSEWAYBILL, | ||
154 | + </if> | ||
155 | + <if test="originFlightno != null" > | ||
156 | + ORIGIN_FLIGHTNO, | ||
157 | + </if> | ||
158 | + <if test="originFlightdate != null" > | ||
159 | + ORIGIN_FLIGHTDATE, | ||
160 | + </if> | ||
161 | + <if test="transMasterwaybill != null" > | ||
162 | + TRANS_MASTERWAYBILL, | ||
163 | + </if> | ||
164 | + <if test="transHousewaybill != null" > | ||
165 | + TRANS_HOUSEWAYBILL, | ||
166 | + </if> | ||
167 | + <if test="transFlightno != null" > | ||
168 | + TRANS_FLIGHTNO, | ||
169 | + </if> | ||
170 | + <if test="transFlightdate != null" > | ||
171 | + TRANS_FLIGHTDATE, | ||
172 | + </if> | ||
173 | + <if test="createDate != null" > | ||
174 | + CREATE_DATE, | ||
175 | + </if> | ||
176 | + <if test="modifyTime != null" > | ||
177 | + MODIFY_TIME, | ||
178 | + </if> | ||
179 | + <if test="modifyName != null" > | ||
180 | + MODIFY_NAME, | ||
181 | + </if> | ||
182 | + <if test="agentName != null" > | ||
183 | + AGENT_NAME, | ||
184 | + </if> | ||
185 | + <if test="agentCode != null" > | ||
186 | + AGENT_CODE, | ||
187 | + </if> | ||
188 | + <if test="userName != null" > | ||
189 | + USER_NAME, | ||
190 | + </if> | ||
191 | + <if test="userRealName != null" > | ||
192 | + USER_REAL_NAME, | ||
193 | + </if> | ||
194 | + <if test="userTel != null" > | ||
195 | + USER_TEL, | ||
196 | + </if> | ||
197 | + <if test="status != null" > | ||
198 | + STATUS, | ||
199 | + </if> | ||
200 | + <if test="approverAccount != null" > | ||
201 | + APPROVER_ACCOUNT, | ||
202 | + </if> | ||
203 | + <if test="approverDate != null" > | ||
204 | + APPROVER_DATE, | ||
205 | + </if> | ||
206 | + <if test="approverResoult != null" > | ||
207 | + APPROVER_RESOULT, | ||
208 | + </if> | ||
209 | + </trim> | ||
210 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
211 | + <if test="id != null" > | ||
212 | + #{id,jdbcType=VARCHAR}, | ||
213 | + </if> | ||
214 | + <if test="transitType != null" > | ||
215 | + #{transitType,jdbcType=VARCHAR}, | ||
216 | + </if> | ||
217 | + <if test="piece != null" > | ||
218 | + #{piece,jdbcType=DECIMAL}, | ||
219 | + </if> | ||
220 | + <if test="weight != null" > | ||
221 | + #{weight,jdbcType=DECIMAL}, | ||
222 | + </if> | ||
223 | + <if test="originStation != null" > | ||
224 | + #{originStation,jdbcType=VARCHAR}, | ||
225 | + </if> | ||
226 | + <if test="destinationStation != null" > | ||
227 | + #{destinationStation,jdbcType=VARCHAR}, | ||
228 | + </if> | ||
229 | + <if test="goodsdesen != null" > | ||
230 | + #{goodsdesen,jdbcType=VARCHAR}, | ||
231 | + </if> | ||
232 | + <if test="goodsdescn != null" > | ||
233 | + #{goodsdescn,jdbcType=VARCHAR}, | ||
234 | + </if> | ||
235 | + <if test="pack != null" > | ||
236 | + #{pack,jdbcType=VARCHAR}, | ||
237 | + </if> | ||
238 | + <if test="originMasterwaybill != null" > | ||
239 | + #{originMasterwaybill,jdbcType=VARCHAR}, | ||
240 | + </if> | ||
241 | + <if test="originHousewaybill != null" > | ||
242 | + #{originHousewaybill,jdbcType=VARCHAR}, | ||
243 | + </if> | ||
244 | + <if test="originFlightno != null" > | ||
245 | + #{originFlightno,jdbcType=VARCHAR}, | ||
246 | + </if> | ||
247 | + <if test="originFlightdate != null" > | ||
248 | + #{originFlightdate,jdbcType=TIMESTAMP}, | ||
249 | + </if> | ||
250 | + <if test="transMasterwaybill != null" > | ||
251 | + #{transMasterwaybill,jdbcType=VARCHAR}, | ||
252 | + </if> | ||
253 | + <if test="transHousewaybill != null" > | ||
254 | + #{transHousewaybill,jdbcType=VARCHAR}, | ||
255 | + </if> | ||
256 | + <if test="transFlightno != null" > | ||
257 | + #{transFlightno,jdbcType=VARCHAR}, | ||
258 | + </if> | ||
259 | + <if test="transFlightdate != null" > | ||
260 | + #{transFlightdate,jdbcType=TIMESTAMP}, | ||
261 | + </if> | ||
262 | + <if test="createDate != null" > | ||
263 | + #{createDate,jdbcType=TIMESTAMP}, | ||
264 | + </if> | ||
265 | + <if test="modifyTime != null" > | ||
266 | + #{modifyTime,jdbcType=TIMESTAMP}, | ||
267 | + </if> | ||
268 | + <if test="modifyName != null" > | ||
269 | + #{modifyName,jdbcType=VARCHAR}, | ||
270 | + </if> | ||
271 | + <if test="agentName != null" > | ||
272 | + #{agentName,jdbcType=VARCHAR}, | ||
273 | + </if> | ||
274 | + <if test="agentCode != null" > | ||
275 | + #{agentCode,jdbcType=VARCHAR}, | ||
276 | + </if> | ||
277 | + <if test="userName != null" > | ||
278 | + #{userName,jdbcType=VARCHAR}, | ||
279 | + </if> | ||
280 | + <if test="userRealName != null" > | ||
281 | + #{userRealName,jdbcType=VARCHAR}, | ||
282 | + </if> | ||
283 | + <if test="userTel != null" > | ||
284 | + #{userTel,jdbcType=VARCHAR}, | ||
285 | + </if> | ||
286 | + <if test="status != null" > | ||
287 | + #{status,jdbcType=DECIMAL}, | ||
288 | + </if> | ||
289 | + <if test="approverAccount != null" > | ||
290 | + #{approverAccount,jdbcType=VARCHAR}, | ||
291 | + </if> | ||
292 | + <if test="approverDate != null" > | ||
293 | + #{approverDate,jdbcType=VARCHAR}, | ||
294 | + </if> | ||
295 | + <if test="approverResoult != null" > | ||
296 | + #{approverResoult,jdbcType=VARCHAR}, | ||
297 | + </if> | ||
298 | + </trim> | ||
299 | + </insert> | ||
300 | + <update id="updateByPrimaryKeySelective" parameterType="com.tianbo.analysis.model.DOMTRANSIT" > | ||
301 | + update DOMTRANSIT | ||
302 | + <set > | ||
303 | + <if test="transitType != null" > | ||
304 | + TRANSIT_TYPE = #{transitType,jdbcType=VARCHAR}, | ||
305 | + </if> | ||
306 | + <if test="piece != null" > | ||
307 | + PIECE = #{piece,jdbcType=DECIMAL}, | ||
308 | + </if> | ||
309 | + <if test="weight != null" > | ||
310 | + WEIGHT = #{weight,jdbcType=DECIMAL}, | ||
311 | + </if> | ||
312 | + <if test="originStation != null" > | ||
313 | + ORIGIN_STATION = #{originStation,jdbcType=VARCHAR}, | ||
314 | + </if> | ||
315 | + <if test="destinationStation != null" > | ||
316 | + DESTINATION_STATION = #{destinationStation,jdbcType=VARCHAR}, | ||
317 | + </if> | ||
318 | + <if test="goodsdesen != null" > | ||
319 | + GOODSDESEN = #{goodsdesen,jdbcType=VARCHAR}, | ||
320 | + </if> | ||
321 | + <if test="goodsdescn != null" > | ||
322 | + GOODSDESCN = #{goodsdescn,jdbcType=VARCHAR}, | ||
323 | + </if> | ||
324 | + <if test="pack != null" > | ||
325 | + PACK = #{pack,jdbcType=VARCHAR}, | ||
326 | + </if> | ||
327 | + <if test="originMasterwaybill != null" > | ||
328 | + ORIGIN_MASTERWAYBILL = #{originMasterwaybill,jdbcType=VARCHAR}, | ||
329 | + </if> | ||
330 | + <if test="originHousewaybill != null" > | ||
331 | + ORIGIN_HOUSEWAYBILL = #{originHousewaybill,jdbcType=VARCHAR}, | ||
332 | + </if> | ||
333 | + <if test="originFlightno != null" > | ||
334 | + ORIGIN_FLIGHTNO = #{originFlightno,jdbcType=VARCHAR}, | ||
335 | + </if> | ||
336 | + <if test="originFlightdate != null" > | ||
337 | + ORIGIN_FLIGHTDATE = #{originFlightdate,jdbcType=TIMESTAMP}, | ||
338 | + </if> | ||
339 | + <if test="transMasterwaybill != null" > | ||
340 | + TRANS_MASTERWAYBILL = #{transMasterwaybill,jdbcType=VARCHAR}, | ||
341 | + </if> | ||
342 | + <if test="transHousewaybill != null" > | ||
343 | + TRANS_HOUSEWAYBILL = #{transHousewaybill,jdbcType=VARCHAR}, | ||
344 | + </if> | ||
345 | + <if test="transFlightno != null" > | ||
346 | + TRANS_FLIGHTNO = #{transFlightno,jdbcType=VARCHAR}, | ||
347 | + </if> | ||
348 | + <if test="transFlightdate != null" > | ||
349 | + TRANS_FLIGHTDATE = #{transFlightdate,jdbcType=TIMESTAMP}, | ||
350 | + </if> | ||
351 | + <if test="createDate != null" > | ||
352 | + CREATE_DATE = #{createDate,jdbcType=TIMESTAMP}, | ||
353 | + </if> | ||
354 | + <if test="modifyTime != null" > | ||
355 | + MODIFY_TIME = #{modifyTime,jdbcType=TIMESTAMP}, | ||
356 | + </if> | ||
357 | + <if test="modifyName != null" > | ||
358 | + MODIFY_NAME = #{modifyName,jdbcType=VARCHAR}, | ||
359 | + </if> | ||
360 | + <if test="agentName != null" > | ||
361 | + AGENT_NAME = #{agentName,jdbcType=VARCHAR}, | ||
362 | + </if> | ||
363 | + <if test="agentCode != null" > | ||
364 | + AGENT_CODE = #{agentCode,jdbcType=VARCHAR}, | ||
365 | + </if> | ||
366 | + <if test="userName != null" > | ||
367 | + USER_NAME = #{userName,jdbcType=VARCHAR}, | ||
368 | + </if> | ||
369 | + <if test="userRealName != null" > | ||
370 | + USER_REAL_NAME = #{userRealName,jdbcType=VARCHAR}, | ||
371 | + </if> | ||
372 | + <if test="userTel != null" > | ||
373 | + USER_TEL = #{userTel,jdbcType=VARCHAR}, | ||
374 | + </if> | ||
375 | + <if test="status != null" > | ||
376 | + STATUS = #{status,jdbcType=DECIMAL}, | ||
377 | + </if> | ||
378 | + <if test="approverAccount != null" > | ||
379 | + APPROVER_ACCOUNT = #{approverAccount,jdbcType=VARCHAR}, | ||
380 | + </if> | ||
381 | + <if test="approverDate != null" > | ||
382 | + APPROVER_DATE = #{approverDate,jdbcType=VARCHAR}, | ||
383 | + </if> | ||
384 | + <if test="approverResoult != null" > | ||
385 | + APPROVER_RESOULT = #{approverResoult,jdbcType=VARCHAR}, | ||
386 | + </if> | ||
387 | + </set> | ||
388 | + where ID = #{id,jdbcType=VARCHAR} | ||
389 | + </update> | ||
390 | + <update id="updateByPrimaryKey" parameterType="com.tianbo.analysis.model.DOMTRANSIT" > | ||
391 | + update DOMTRANSIT | ||
392 | + set TRANSIT_TYPE = #{transitType,jdbcType=VARCHAR}, | ||
393 | + PIECE = #{piece,jdbcType=DECIMAL}, | ||
394 | + WEIGHT = #{weight,jdbcType=DECIMAL}, | ||
395 | + ORIGIN_STATION = #{originStation,jdbcType=VARCHAR}, | ||
396 | + DESTINATION_STATION = #{destinationStation,jdbcType=VARCHAR}, | ||
397 | + GOODSDESEN = #{goodsdesen,jdbcType=VARCHAR}, | ||
398 | + GOODSDESCN = #{goodsdescn,jdbcType=VARCHAR}, | ||
399 | + PACK = #{pack,jdbcType=VARCHAR}, | ||
400 | + ORIGIN_MASTERWAYBILL = #{originMasterwaybill,jdbcType=VARCHAR}, | ||
401 | + ORIGIN_HOUSEWAYBILL = #{originHousewaybill,jdbcType=VARCHAR}, | ||
402 | + ORIGIN_FLIGHTNO = #{originFlightno,jdbcType=VARCHAR}, | ||
403 | + ORIGIN_FLIGHTDATE = #{originFlightdate,jdbcType=TIMESTAMP}, | ||
404 | + TRANS_MASTERWAYBILL = #{transMasterwaybill,jdbcType=VARCHAR}, | ||
405 | + TRANS_HOUSEWAYBILL = #{transHousewaybill,jdbcType=VARCHAR}, | ||
406 | + TRANS_FLIGHTNO = #{transFlightno,jdbcType=VARCHAR}, | ||
407 | + TRANS_FLIGHTDATE = #{transFlightdate,jdbcType=TIMESTAMP}, | ||
408 | + CREATE_DATE = #{createDate,jdbcType=TIMESTAMP}, | ||
409 | + MODIFY_TIME = #{modifyTime,jdbcType=TIMESTAMP}, | ||
410 | + MODIFY_NAME = #{modifyName,jdbcType=VARCHAR}, | ||
411 | + AGENT_NAME = #{agentName,jdbcType=VARCHAR}, | ||
412 | + AGENT_CODE = #{agentCode,jdbcType=VARCHAR}, | ||
413 | + USER_NAME = #{userName,jdbcType=VARCHAR}, | ||
414 | + USER_REAL_NAME = #{userRealName,jdbcType=VARCHAR}, | ||
415 | + USER_TEL = #{userTel,jdbcType=VARCHAR}, | ||
416 | + STATUS = #{status,jdbcType=DECIMAL}, | ||
417 | + APPROVER_ACCOUNT = #{approverAccount,jdbcType=VARCHAR}, | ||
418 | + APPROVER_DATE = #{approverDate,jdbcType=VARCHAR}, | ||
419 | + APPROVER_RESOULT = #{approverResoult,jdbcType=VARCHAR} | ||
420 | + where ID = #{id,jdbcType=VARCHAR} | ||
421 | + </update> | ||
422 | +</mapper> |
-
请 注册 或 登录 后发表评论