正在显示
20 个修改的文件
包含
1994 行增加
和
7 行删除
@@ -122,3 +122,11 @@ logging: | @@ -122,3 +122,11 @@ logging: | ||
122 | #Java Web Token 时效时间,单位秒 | 122 | #Java Web Token 时效时间,单位秒 |
123 | jwt: | 123 | jwt: |
124 | max-alive: 300 | 124 | max-alive: 300 |
125 | + | ||
126 | +#自定义配置 | ||
127 | +custom: | ||
128 | + #进港放行回执读取目录 | ||
129 | + receptDirectory: /Users/mrz/Downloads/rdp_temp | ||
130 | + #回执解析成功后的备份目录 | ||
131 | + receptBakDir: ./success | ||
132 | + errBakDir: ./error |
@@ -25,7 +25,7 @@ | @@ -25,7 +25,7 @@ | ||
25 | <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> | 25 | <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> |
26 | <!--此日志appender是为开发使用,只配置最底级别,控制台输出的日志级别是大于或等于此级别的日志信息--> | 26 | <!--此日志appender是为开发使用,只配置最底级别,控制台输出的日志级别是大于或等于此级别的日志信息--> |
27 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | 27 | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
28 | - <level>trace</level> | 28 | + <level>info</level> |
29 | </filter> | 29 | </filter> |
30 | <encoder> | 30 | <encoder> |
31 | <Pattern>${CONSOLE_LOG_PATTERN}</Pattern> | 31 | <Pattern>${CONSOLE_LOG_PATTERN}</Pattern> |
@@ -186,7 +186,7 @@ | @@ -186,7 +186,7 @@ | ||
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" /> |
@@ -88,6 +88,7 @@ | @@ -88,6 +88,7 @@ | ||
88 | <version>1.0-SNAPSHOT</version> | 88 | <version>1.0-SNAPSHOT</version> |
89 | </dependency> | 89 | </dependency> |
90 | <!--util依赖--> | 90 | <!--util依赖--> |
91 | + | ||
91 | <!--<!–IMF需要的包–>--> | 92 | <!--<!–IMF需要的包–>--> |
92 | <!--<!– https://mvnrepository.com/artifact/org.apache.xmlbeans/xmlbeans –>--> | 93 | <!--<!– https://mvnrepository.com/artifact/org.apache.xmlbeans/xmlbeans –>--> |
93 | <!--<dependency>--> | 94 | <!--<dependency>--> |
1 | -# 通用IMF接收客户端框架 | 1 | +# 新舱单回执解析 |
2 | 2 | ||
3 | +* 配置文件为项目根目录下的config文件夹内,方便部署后的配置修改 | ||
4 | + * logback-dev.xml 为logback的配置文件 | ||
5 | + * application.yml 为spring boot的配置文件 | ||
6 | +* 已集成mybatis、mybatisGenerator、pageHelper | ||
3 | * 集成IMFjar包 | 7 | * 集成IMFjar包 |
4 | * 集成Spring boot 及 srping cloud | 8 | * 集成Spring boot 及 srping cloud |
9 | +* 集成定时任务框架 | ||
10 | +* 后端采用spring boot 2 ,配合前端框架使用。 | ||
11 | +* 集成Spring Cloud | ||
12 | +* 集成lombok,简化部分代码录入,比如实体类,方便实体及表结构修改,敏捷开发必用,使用方法见[lombok集成使用说明](https://jingyan.baidu.com/article/0a52e3f4e53ca1bf63ed725c.html) | ||
13 | +) | ||
5 | * 集成websocket | 14 | * 集成websocket |
6 | * 可以在线查看imf客户端运行情况 web访问路径/log/imf,可查看项目logs目录下的imf.log | 15 | * 可以在线查看imf客户端运行情况 web访问路径/log/imf,可查看项目logs目录下的imf.log |
16 | +* 打包jar散包 看这里 https://blog.csdn.net/m0_37202351/article/details/81738357 |
@@ -12,19 +12,20 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient; | @@ -12,19 +12,20 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient; | ||
12 | import org.springframework.cloud.client.loadbalancer.LoadBalanced; | 12 | import org.springframework.cloud.client.loadbalancer.LoadBalanced; |
13 | import org.springframework.context.annotation.Bean; | 13 | import org.springframework.context.annotation.Bean; |
14 | import org.springframework.context.annotation.ComponentScan; | 14 | import org.springframework.context.annotation.ComponentScan; |
15 | +import org.springframework.scheduling.annotation.EnableScheduling; | ||
15 | import org.springframework.transaction.annotation.EnableTransactionManagement; | 16 | import org.springframework.transaction.annotation.EnableTransactionManagement; |
16 | import org.springframework.web.client.RestTemplate; | 17 | import org.springframework.web.client.RestTemplate; |
17 | 18 | ||
18 | @SpringBootApplication | 19 | @SpringBootApplication |
19 | -//@EnableScheduling | 20 | +@EnableScheduling |
20 | @EnableDiscoveryClient | 21 | @EnableDiscoveryClient |
21 | @EnableTransactionManagement | 22 | @EnableTransactionManagement |
22 | @MapperScan("com.tianbo.analysis.dao") | 23 | @MapperScan("com.tianbo.analysis.dao") |
23 | @ComponentScan({"com.tianbo.analysis"}) | 24 | @ComponentScan({"com.tianbo.analysis"}) |
24 | -public class ImfClientApplication { | 25 | +public class BootApplication { |
25 | 26 | ||
26 | public static void main(String[] args) { | 27 | public static void main(String[] args) { |
27 | - SpringApplication.run(ImfClientApplication.class, args); | 28 | + SpringApplication.run(BootApplication.class, args); |
28 | } | 29 | } |
29 | 30 | ||
30 | @Bean | 31 | @Bean |
1 | +package com.tianbo.analysis.dao; | ||
2 | + | ||
3 | +import com.tianbo.analysis.model.ORIGINMANIFESTMASTER; | ||
4 | + | ||
5 | +import java.util.List; | ||
6 | + | ||
7 | +public interface ORIGINMANIFESTMASTERMapper { | ||
8 | + int insert(ORIGINMANIFESTMASTER record); | ||
9 | + | ||
10 | + int insertSelective(ORIGINMANIFESTMASTER record); | ||
11 | + | ||
12 | + int updateRECEIPTION(ORIGINMANIFESTMASTER record); | ||
13 | + | ||
14 | + List<ORIGINMANIFESTMASTER> selectAutoIdByAwb(ORIGINMANIFESTMASTER record); | ||
15 | +} |
1 | +package com.tianbo.analysis.dao; | ||
2 | + | ||
3 | +import com.tianbo.analysis.model.Originmanifestsecondary; | ||
4 | + | ||
5 | +import java.util.List; | ||
6 | + | ||
7 | +public interface OriginmanifestsecondaryMapper { | ||
8 | + int insert(Originmanifestsecondary record); | ||
9 | + | ||
10 | + int insertSelective(Originmanifestsecondary record); | ||
11 | + | ||
12 | + int updateRECEIPTION(Originmanifestsecondary record); | ||
13 | + | ||
14 | + List<Originmanifestsecondary> selectAutoIdByawbAawbH (Originmanifestsecondary record); | ||
15 | +} |
1 | +package com.tianbo.analysis.handle; | ||
2 | + | ||
3 | +import com.tianbo.analysis.model.CustomReception; | ||
4 | +import com.tianbo.analysis.service.CoustomAnalysisService; | ||
5 | +import com.tianbo.util.XML.XMLXPath; | ||
6 | +import org.apache.commons.io.FileUtils; | ||
7 | +import org.dom4j.Document; | ||
8 | +import org.dom4j.DocumentException; | ||
9 | +import org.dom4j.DocumentHelper; | ||
10 | +import org.dom4j.Element; | ||
11 | +import org.dom4j.io.SAXReader; | ||
12 | +import org.springframework.beans.factory.annotation.Autowired; | ||
13 | +import org.springframework.stereotype.Component; | ||
14 | +import org.xml.sax.SAXParseException; | ||
15 | + | ||
16 | +import javax.annotation.PostConstruct; | ||
17 | +import java.io.File; | ||
18 | +import java.io.UnsupportedEncodingException; | ||
19 | +import java.util.List; | ||
20 | + | ||
21 | +/** | ||
22 | + * @author mrz | ||
23 | + * @e | ||
24 | + * 海关新舱单回执解析xml文件 | ||
25 | + */ | ||
26 | +@Component | ||
27 | +public class CustomXmlHandle { | ||
28 | + | ||
29 | + private static CustomXmlHandle customXmlHandle; | ||
30 | + //海关新舱单回执报头 | ||
31 | + public final static String MessageID = "//Manifest/Head/MessageID"; | ||
32 | + public final static String FunctionCode = "//Manifest/Head/FunctionCode"; | ||
33 | + public final static String MessageType = "//Manifest/Head/MessageType"; | ||
34 | + public final static String SenderID = "//Manifest/Head/SenderID"; | ||
35 | + public final static String ReceiverID = "//Manifest/Head/ReceiverID"; | ||
36 | + public final static String SendTime = "//Manifest/Head/SendTime"; | ||
37 | + public final static String Version = "//Manifest/Head/Version"; | ||
38 | + | ||
39 | + //海关新舱单回执报体 | ||
40 | + public final static String JourneyID = "//Manifest/Response/BorderTransportMeans/JourneyID"; | ||
41 | + public final static String waybillMaster = "//Manifest/Response/Consignment/TransportContractDocument/ID"; | ||
42 | + public final static String waybillSecond = "//Manifest/Response/Consignment/AssociatedTransportDocument/ID"; | ||
43 | + public final static String responseCode = "//Manifest/Response/Consignment/ResponseType/Code"; | ||
44 | + public final static String responseText = "//Manifest/Response/Consignment/ResponseType/Text"; | ||
45 | + | ||
46 | + @Autowired | ||
47 | + private CoustomAnalysisService coustomAnalysisService; | ||
48 | + | ||
49 | + //通过@PostConstruct实现初始化bean之前进行的操作,解决service调用空指针问题 | ||
50 | + @PostConstruct | ||
51 | + public void init() { | ||
52 | + customXmlHandle = this; | ||
53 | + customXmlHandle.coustomAnalysisService = this.coustomAnalysisService; | ||
54 | + // 初使化时将已静态化的testService实例化 | ||
55 | + } | ||
56 | + | ||
57 | + /** | ||
58 | + * | ||
59 | + * @param file 回执目录的文件 | ||
60 | + * @return | ||
61 | + * @throws DocumentException | ||
62 | + * @throws UnsupportedEncodingException | ||
63 | + * @throws SAXParseException | ||
64 | + */ | ||
65 | + public int handelXmlDocument(File file) throws DocumentException,UnsupportedEncodingException,SAXParseException { | ||
66 | + | ||
67 | + SAXReader saxReader = new SAXReader(); | ||
68 | + Document document = saxReader.read(file); | ||
69 | + Element contentRoot = document.getRootElement(); | ||
70 | + | ||
71 | + //要解析的回执类型 | ||
72 | + String type= "MT9999"; | ||
73 | + | ||
74 | + //开始解析 | ||
75 | +// fzeFoh.setGrossweightmeasureuc(XMLXPath.getSingleValueByPath(document,GrossWeightMeasureUc)); | ||
76 | + String msgType = XMLXPath.getSingleValueByPath(document,MessageType); | ||
77 | + if (type.equals(msgType)){ | ||
78 | + String journeyid = XMLXPath.getSingleValueByPath(document,JourneyID); | ||
79 | + String[] flightList = journeyid.split("/"); | ||
80 | + String flightNo = flightList[0]; | ||
81 | + String flightDate = flightList[1]; | ||
82 | + String awbA = XMLXPath.getSingleValueByPath(document,waybillMaster); | ||
83 | + //全格式的分单 如 17212345678_ADBD | ||
84 | + String awbH = XMLXPath.getSingleValueByPath(document,waybillSecond); | ||
85 | + String resCode = XMLXPath.getSingleValueByPath(document,responseCode); | ||
86 | + String resText = XMLXPath.getSingleValueByPath(document,responseText); | ||
87 | + | ||
88 | + CustomReception customReception = new CustomReception(msgType,flightNo,flightDate,awbA,awbH,resText); | ||
89 | + | ||
90 | + int i = customXmlHandle.coustomAnalysisService.insertRecept(customReception); | ||
91 | + | ||
92 | + return i; | ||
93 | + | ||
94 | + } | ||
95 | + return 0; | ||
96 | + | ||
97 | + } | ||
98 | +} |
1 | +package com.tianbo.analysis.model; | ||
2 | + | ||
3 | +import lombok.Data; | ||
4 | + | ||
5 | +@Data | ||
6 | +public class CustomReception { | ||
7 | + private String messageID; | ||
8 | + private String functionCode; | ||
9 | + private String messageType; | ||
10 | + private String senderID; | ||
11 | + private String receiverID; | ||
12 | + private String sendTime; | ||
13 | + private String version; | ||
14 | + private String flightNo; | ||
15 | + private String flightDate; | ||
16 | + private String wayBillMaster; | ||
17 | + private String wayBillSecond; | ||
18 | + private String responseCode; | ||
19 | + private String responseText; | ||
20 | + | ||
21 | + public CustomReception(String messageType, | ||
22 | + String flightNo, | ||
23 | + String flightDate, | ||
24 | + String wayBillMaster, | ||
25 | + String wayBillSecond, | ||
26 | + String responseText | ||
27 | + ){ | ||
28 | + this.messageType = messageType; | ||
29 | + this.flightNo = flightNo; | ||
30 | + this.flightDate = flightDate; | ||
31 | + this.wayBillMaster = wayBillMaster; | ||
32 | + this.wayBillSecond = wayBillSecond; | ||
33 | + this.responseText = responseText; | ||
34 | + } | ||
35 | +} |
1 | +package com.tianbo.analysis.model; | ||
2 | + | ||
3 | +import java.util.Date; | ||
4 | + | ||
5 | +public class ORIGINMANIFESTMASTER { | ||
6 | + private String autoid; | ||
7 | + | ||
8 | + private String waybillnomaster; | ||
9 | + | ||
10 | + private String segment; | ||
11 | + | ||
12 | + private String originatingstation; | ||
13 | + | ||
14 | + private String destinationstation; | ||
15 | + | ||
16 | + private String totalweight; | ||
17 | + | ||
18 | + private String totalpiece; | ||
19 | + | ||
20 | + private String manifesttotalpiece; | ||
21 | + | ||
22 | + private String manifesttotalweight; | ||
23 | + | ||
24 | + private String flightno; | ||
25 | + | ||
26 | + private String productname; | ||
27 | + | ||
28 | + private String customsstatus; | ||
29 | + | ||
30 | + private String carrier1; | ||
31 | + | ||
32 | + private String arrivalstation1; | ||
33 | + | ||
34 | + private String carrier2; | ||
35 | + | ||
36 | + private String arrivalstation2; | ||
37 | + | ||
38 | + private String carrier3; | ||
39 | + | ||
40 | + private String arrivalstation3; | ||
41 | + | ||
42 | + private String paymode; | ||
43 | + | ||
44 | + private String specialgoodscode; | ||
45 | + | ||
46 | + private String customscode; | ||
47 | + | ||
48 | + private String shippername; | ||
49 | + | ||
50 | + private String shipperaddress; | ||
51 | + | ||
52 | + private String consigneename; | ||
53 | + | ||
54 | + private String consigneeaddress; | ||
55 | + | ||
56 | + private String receiptinformation; | ||
57 | + | ||
58 | + private Date createdate; | ||
59 | + | ||
60 | + private Date flightDate; | ||
61 | + | ||
62 | + private String status; | ||
63 | + | ||
64 | + private String isbatch; | ||
65 | + | ||
66 | + private String originatingstationBill; | ||
67 | + | ||
68 | + private String destinationstationBill; | ||
69 | + | ||
70 | + private String reportorder; | ||
71 | + | ||
72 | + private String islast; | ||
73 | + | ||
74 | + private String shipperCode; | ||
75 | + | ||
76 | + private String shipperCountrycode; | ||
77 | + | ||
78 | + private String shipperPhone; | ||
79 | + | ||
80 | + private String shipperFax; | ||
81 | + | ||
82 | + private String consigneeCode; | ||
83 | + | ||
84 | + private String consigneeCountrycode; | ||
85 | + | ||
86 | + private String consigneeFax; | ||
87 | + | ||
88 | + private String specificConsigneename; | ||
89 | + | ||
90 | + private String specificConsigneePhone; | ||
91 | + | ||
92 | + private String consigneePhone; | ||
93 | + | ||
94 | + public String getAutoid() { | ||
95 | + return autoid; | ||
96 | + } | ||
97 | + | ||
98 | + public void setAutoid(String autoid) { | ||
99 | + this.autoid = autoid == null ? null : autoid.trim(); | ||
100 | + } | ||
101 | + | ||
102 | + public String getWaybillnomaster() { | ||
103 | + return waybillnomaster; | ||
104 | + } | ||
105 | + | ||
106 | + public void setWaybillnomaster(String waybillnomaster) { | ||
107 | + this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim(); | ||
108 | + } | ||
109 | + | ||
110 | + public String getSegment() { | ||
111 | + return segment; | ||
112 | + } | ||
113 | + | ||
114 | + public void setSegment(String segment) { | ||
115 | + this.segment = segment == null ? null : segment.trim(); | ||
116 | + } | ||
117 | + | ||
118 | + public String getOriginatingstation() { | ||
119 | + return originatingstation; | ||
120 | + } | ||
121 | + | ||
122 | + public void setOriginatingstation(String originatingstation) { | ||
123 | + this.originatingstation = originatingstation == null ? null : originatingstation.trim(); | ||
124 | + } | ||
125 | + | ||
126 | + public String getDestinationstation() { | ||
127 | + return destinationstation; | ||
128 | + } | ||
129 | + | ||
130 | + public void setDestinationstation(String destinationstation) { | ||
131 | + this.destinationstation = destinationstation == null ? null : destinationstation.trim(); | ||
132 | + } | ||
133 | + | ||
134 | + public String getTotalweight() { | ||
135 | + return totalweight; | ||
136 | + } | ||
137 | + | ||
138 | + public void setTotalweight(String totalweight) { | ||
139 | + this.totalweight = totalweight == null ? null : totalweight.trim(); | ||
140 | + } | ||
141 | + | ||
142 | + public String getTotalpiece() { | ||
143 | + return totalpiece; | ||
144 | + } | ||
145 | + | ||
146 | + public void setTotalpiece(String totalpiece) { | ||
147 | + this.totalpiece = totalpiece == null ? null : totalpiece.trim(); | ||
148 | + } | ||
149 | + | ||
150 | + public String getManifesttotalpiece() { | ||
151 | + return manifesttotalpiece; | ||
152 | + } | ||
153 | + | ||
154 | + public void setManifesttotalpiece(String manifesttotalpiece) { | ||
155 | + this.manifesttotalpiece = manifesttotalpiece == null ? null : manifesttotalpiece.trim(); | ||
156 | + } | ||
157 | + | ||
158 | + public String getManifesttotalweight() { | ||
159 | + return manifesttotalweight; | ||
160 | + } | ||
161 | + | ||
162 | + public void setManifesttotalweight(String manifesttotalweight) { | ||
163 | + this.manifesttotalweight = manifesttotalweight == null ? null : manifesttotalweight.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 String getProductname() { | ||
175 | + return productname; | ||
176 | + } | ||
177 | + | ||
178 | + public void setProductname(String productname) { | ||
179 | + this.productname = productname == null ? null : productname.trim(); | ||
180 | + } | ||
181 | + | ||
182 | + public String getCustomsstatus() { | ||
183 | + return customsstatus; | ||
184 | + } | ||
185 | + | ||
186 | + public void setCustomsstatus(String customsstatus) { | ||
187 | + this.customsstatus = customsstatus == null ? null : customsstatus.trim(); | ||
188 | + } | ||
189 | + | ||
190 | + public String getCarrier1() { | ||
191 | + return carrier1; | ||
192 | + } | ||
193 | + | ||
194 | + public void setCarrier1(String carrier1) { | ||
195 | + this.carrier1 = carrier1 == null ? null : carrier1.trim(); | ||
196 | + } | ||
197 | + | ||
198 | + public String getArrivalstation1() { | ||
199 | + return arrivalstation1; | ||
200 | + } | ||
201 | + | ||
202 | + public void setArrivalstation1(String arrivalstation1) { | ||
203 | + this.arrivalstation1 = arrivalstation1 == null ? null : arrivalstation1.trim(); | ||
204 | + } | ||
205 | + | ||
206 | + public String getCarrier2() { | ||
207 | + return carrier2; | ||
208 | + } | ||
209 | + | ||
210 | + public void setCarrier2(String carrier2) { | ||
211 | + this.carrier2 = carrier2 == null ? null : carrier2.trim(); | ||
212 | + } | ||
213 | + | ||
214 | + public String getArrivalstation2() { | ||
215 | + return arrivalstation2; | ||
216 | + } | ||
217 | + | ||
218 | + public void setArrivalstation2(String arrivalstation2) { | ||
219 | + this.arrivalstation2 = arrivalstation2 == null ? null : arrivalstation2.trim(); | ||
220 | + } | ||
221 | + | ||
222 | + public String getCarrier3() { | ||
223 | + return carrier3; | ||
224 | + } | ||
225 | + | ||
226 | + public void setCarrier3(String carrier3) { | ||
227 | + this.carrier3 = carrier3 == null ? null : carrier3.trim(); | ||
228 | + } | ||
229 | + | ||
230 | + public String getArrivalstation3() { | ||
231 | + return arrivalstation3; | ||
232 | + } | ||
233 | + | ||
234 | + public void setArrivalstation3(String arrivalstation3) { | ||
235 | + this.arrivalstation3 = arrivalstation3 == null ? null : arrivalstation3.trim(); | ||
236 | + } | ||
237 | + | ||
238 | + public String getPaymode() { | ||
239 | + return paymode; | ||
240 | + } | ||
241 | + | ||
242 | + public void setPaymode(String paymode) { | ||
243 | + this.paymode = paymode == null ? null : paymode.trim(); | ||
244 | + } | ||
245 | + | ||
246 | + public String getSpecialgoodscode() { | ||
247 | + return specialgoodscode; | ||
248 | + } | ||
249 | + | ||
250 | + public void setSpecialgoodscode(String specialgoodscode) { | ||
251 | + this.specialgoodscode = specialgoodscode == null ? null : specialgoodscode.trim(); | ||
252 | + } | ||
253 | + | ||
254 | + public String getCustomscode() { | ||
255 | + return customscode; | ||
256 | + } | ||
257 | + | ||
258 | + public void setCustomscode(String customscode) { | ||
259 | + this.customscode = customscode == null ? null : customscode.trim(); | ||
260 | + } | ||
261 | + | ||
262 | + public String getShippername() { | ||
263 | + return shippername; | ||
264 | + } | ||
265 | + | ||
266 | + public void setShippername(String shippername) { | ||
267 | + this.shippername = shippername == null ? null : shippername.trim(); | ||
268 | + } | ||
269 | + | ||
270 | + public String getShipperaddress() { | ||
271 | + return shipperaddress; | ||
272 | + } | ||
273 | + | ||
274 | + public void setShipperaddress(String shipperaddress) { | ||
275 | + this.shipperaddress = shipperaddress == null ? null : shipperaddress.trim(); | ||
276 | + } | ||
277 | + | ||
278 | + public String getConsigneename() { | ||
279 | + return consigneename; | ||
280 | + } | ||
281 | + | ||
282 | + public void setConsigneename(String consigneename) { | ||
283 | + this.consigneename = consigneename == null ? null : consigneename.trim(); | ||
284 | + } | ||
285 | + | ||
286 | + public String getConsigneeaddress() { | ||
287 | + return consigneeaddress; | ||
288 | + } | ||
289 | + | ||
290 | + public void setConsigneeaddress(String consigneeaddress) { | ||
291 | + this.consigneeaddress = consigneeaddress == null ? null : consigneeaddress.trim(); | ||
292 | + } | ||
293 | + | ||
294 | + public String getReceiptinformation() { | ||
295 | + return receiptinformation; | ||
296 | + } | ||
297 | + | ||
298 | + public void setReceiptinformation(String receiptinformation) { | ||
299 | + this.receiptinformation = receiptinformation == null ? null : receiptinformation.trim(); | ||
300 | + } | ||
301 | + | ||
302 | + public Date getCreatedate() { | ||
303 | + return createdate; | ||
304 | + } | ||
305 | + | ||
306 | + public void setCreatedate(Date createdate) { | ||
307 | + this.createdate = createdate; | ||
308 | + } | ||
309 | + | ||
310 | + public Date getFlightDate() { | ||
311 | + return flightDate; | ||
312 | + } | ||
313 | + | ||
314 | + public void setFlightDate(Date flightDate) { | ||
315 | + this.flightDate = flightDate; | ||
316 | + } | ||
317 | + | ||
318 | + public String getStatus() { | ||
319 | + return status; | ||
320 | + } | ||
321 | + | ||
322 | + public void setStatus(String status) { | ||
323 | + this.status = status == null ? null : status.trim(); | ||
324 | + } | ||
325 | + | ||
326 | + public String getIsbatch() { | ||
327 | + return isbatch; | ||
328 | + } | ||
329 | + | ||
330 | + public void setIsbatch(String isbatch) { | ||
331 | + this.isbatch = isbatch == null ? null : isbatch.trim(); | ||
332 | + } | ||
333 | + | ||
334 | + public String getOriginatingstationBill() { | ||
335 | + return originatingstationBill; | ||
336 | + } | ||
337 | + | ||
338 | + public void setOriginatingstationBill(String originatingstationBill) { | ||
339 | + this.originatingstationBill = originatingstationBill == null ? null : originatingstationBill.trim(); | ||
340 | + } | ||
341 | + | ||
342 | + public String getDestinationstationBill() { | ||
343 | + return destinationstationBill; | ||
344 | + } | ||
345 | + | ||
346 | + public void setDestinationstationBill(String destinationstationBill) { | ||
347 | + this.destinationstationBill = destinationstationBill == null ? null : destinationstationBill.trim(); | ||
348 | + } | ||
349 | + | ||
350 | + public String getReportorder() { | ||
351 | + return reportorder; | ||
352 | + } | ||
353 | + | ||
354 | + public void setReportorder(String reportorder) { | ||
355 | + this.reportorder = reportorder == null ? null : reportorder.trim(); | ||
356 | + } | ||
357 | + | ||
358 | + public String getIslast() { | ||
359 | + return islast; | ||
360 | + } | ||
361 | + | ||
362 | + public void setIslast(String islast) { | ||
363 | + this.islast = islast == null ? null : islast.trim(); | ||
364 | + } | ||
365 | + | ||
366 | + public String getShipperCode() { | ||
367 | + return shipperCode; | ||
368 | + } | ||
369 | + | ||
370 | + public void setShipperCode(String shipperCode) { | ||
371 | + this.shipperCode = shipperCode == null ? null : shipperCode.trim(); | ||
372 | + } | ||
373 | + | ||
374 | + public String getShipperCountrycode() { | ||
375 | + return shipperCountrycode; | ||
376 | + } | ||
377 | + | ||
378 | + public void setShipperCountrycode(String shipperCountrycode) { | ||
379 | + this.shipperCountrycode = shipperCountrycode == null ? null : shipperCountrycode.trim(); | ||
380 | + } | ||
381 | + | ||
382 | + public String getShipperPhone() { | ||
383 | + return shipperPhone; | ||
384 | + } | ||
385 | + | ||
386 | + public void setShipperPhone(String shipperPhone) { | ||
387 | + this.shipperPhone = shipperPhone == null ? null : shipperPhone.trim(); | ||
388 | + } | ||
389 | + | ||
390 | + public String getShipperFax() { | ||
391 | + return shipperFax; | ||
392 | + } | ||
393 | + | ||
394 | + public void setShipperFax(String shipperFax) { | ||
395 | + this.shipperFax = shipperFax == null ? null : shipperFax.trim(); | ||
396 | + } | ||
397 | + | ||
398 | + public String getConsigneeCode() { | ||
399 | + return consigneeCode; | ||
400 | + } | ||
401 | + | ||
402 | + public void setConsigneeCode(String consigneeCode) { | ||
403 | + this.consigneeCode = consigneeCode == null ? null : consigneeCode.trim(); | ||
404 | + } | ||
405 | + | ||
406 | + public String getConsigneeCountrycode() { | ||
407 | + return consigneeCountrycode; | ||
408 | + } | ||
409 | + | ||
410 | + public void setConsigneeCountrycode(String consigneeCountrycode) { | ||
411 | + this.consigneeCountrycode = consigneeCountrycode == null ? null : consigneeCountrycode.trim(); | ||
412 | + } | ||
413 | + | ||
414 | + public String getConsigneeFax() { | ||
415 | + return consigneeFax; | ||
416 | + } | ||
417 | + | ||
418 | + public void setConsigneeFax(String consigneeFax) { | ||
419 | + this.consigneeFax = consigneeFax == null ? null : consigneeFax.trim(); | ||
420 | + } | ||
421 | + | ||
422 | + public String getSpecificConsigneename() { | ||
423 | + return specificConsigneename; | ||
424 | + } | ||
425 | + | ||
426 | + public void setSpecificConsigneename(String specificConsigneename) { | ||
427 | + this.specificConsigneename = specificConsigneename == null ? null : specificConsigneename.trim(); | ||
428 | + } | ||
429 | + | ||
430 | + public String getSpecificConsigneePhone() { | ||
431 | + return specificConsigneePhone; | ||
432 | + } | ||
433 | + | ||
434 | + public void setSpecificConsigneePhone(String specificConsigneePhone) { | ||
435 | + this.specificConsigneePhone = specificConsigneePhone == null ? null : specificConsigneePhone.trim(); | ||
436 | + } | ||
437 | + | ||
438 | + public String getConsigneePhone() { | ||
439 | + return consigneePhone; | ||
440 | + } | ||
441 | + | ||
442 | + public void setConsigneePhone(String consigneePhone) { | ||
443 | + this.consigneePhone = consigneePhone == null ? null : consigneePhone.trim(); | ||
444 | + } | ||
445 | +} |
1 | +package com.tianbo.analysis.model; | ||
2 | + | ||
3 | +import java.util.Date; | ||
4 | + | ||
5 | +public class Originmanifestsecondary { | ||
6 | + private String autoid; | ||
7 | + | ||
8 | + private String waybillnomaster; | ||
9 | + | ||
10 | + private String waybillnosecondary; | ||
11 | + | ||
12 | + private String weight; | ||
13 | + | ||
14 | + private String piece; | ||
15 | + | ||
16 | + private String manifestpiece; | ||
17 | + | ||
18 | + private String manifestweight; | ||
19 | + | ||
20 | + private String productname; | ||
21 | + | ||
22 | + private String paymode; | ||
23 | + | ||
24 | + private String specialgoodscode; | ||
25 | + | ||
26 | + private String customscode; | ||
27 | + | ||
28 | + private String shippername; | ||
29 | + | ||
30 | + private String shipperaddress; | ||
31 | + | ||
32 | + private String consigneename; | ||
33 | + | ||
34 | + private String consigneeaddress; | ||
35 | + | ||
36 | + private Date createdate; | ||
37 | + | ||
38 | + private String originmanifestmasterautoid; | ||
39 | + | ||
40 | + private String customsstatus; | ||
41 | + | ||
42 | + private String status; | ||
43 | + | ||
44 | + private String receiption; | ||
45 | + | ||
46 | + private String originatingstationBill; | ||
47 | + | ||
48 | + private String destinationstationBill; | ||
49 | + | ||
50 | + private String shipperCode; | ||
51 | + | ||
52 | + private String shipperCountrycode; | ||
53 | + | ||
54 | + private String shipperPhone; | ||
55 | + | ||
56 | + private String shipperFax; | ||
57 | + | ||
58 | + private String consigneeCode; | ||
59 | + | ||
60 | + private String consigneeCountrycode; | ||
61 | + | ||
62 | + private String consigneeFax; | ||
63 | + | ||
64 | + private String specificConsigneename; | ||
65 | + | ||
66 | + private String specificConsigneePhone; | ||
67 | + | ||
68 | + private String consigneePhone; | ||
69 | + | ||
70 | + public String getAutoid() { | ||
71 | + return autoid; | ||
72 | + } | ||
73 | + | ||
74 | + public void setAutoid(String autoid) { | ||
75 | + this.autoid = autoid == null ? null : autoid.trim(); | ||
76 | + } | ||
77 | + | ||
78 | + public String getWaybillnomaster() { | ||
79 | + return waybillnomaster; | ||
80 | + } | ||
81 | + | ||
82 | + public void setWaybillnomaster(String waybillnomaster) { | ||
83 | + this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim(); | ||
84 | + } | ||
85 | + | ||
86 | + public String getWaybillnosecondary() { | ||
87 | + return waybillnosecondary; | ||
88 | + } | ||
89 | + | ||
90 | + public void setWaybillnosecondary(String waybillnosecondary) { | ||
91 | + this.waybillnosecondary = waybillnosecondary == null ? null : waybillnosecondary.trim(); | ||
92 | + } | ||
93 | + | ||
94 | + public String getWeight() { | ||
95 | + return weight; | ||
96 | + } | ||
97 | + | ||
98 | + public void setWeight(String weight) { | ||
99 | + this.weight = weight == null ? null : weight.trim(); | ||
100 | + } | ||
101 | + | ||
102 | + public String getPiece() { | ||
103 | + return piece; | ||
104 | + } | ||
105 | + | ||
106 | + public void setPiece(String piece) { | ||
107 | + this.piece = piece == null ? null : piece.trim(); | ||
108 | + } | ||
109 | + | ||
110 | + public String getManifestpiece() { | ||
111 | + return manifestpiece; | ||
112 | + } | ||
113 | + | ||
114 | + public void setManifestpiece(String manifestpiece) { | ||
115 | + this.manifestpiece = manifestpiece == null ? null : manifestpiece.trim(); | ||
116 | + } | ||
117 | + | ||
118 | + public String getManifestweight() { | ||
119 | + return manifestweight; | ||
120 | + } | ||
121 | + | ||
122 | + public void setManifestweight(String manifestweight) { | ||
123 | + this.manifestweight = manifestweight == null ? null : manifestweight.trim(); | ||
124 | + } | ||
125 | + | ||
126 | + public String getProductname() { | ||
127 | + return productname; | ||
128 | + } | ||
129 | + | ||
130 | + public void setProductname(String productname) { | ||
131 | + this.productname = productname == null ? null : productname.trim(); | ||
132 | + } | ||
133 | + | ||
134 | + public String getPaymode() { | ||
135 | + return paymode; | ||
136 | + } | ||
137 | + | ||
138 | + public void setPaymode(String paymode) { | ||
139 | + this.paymode = paymode == null ? null : paymode.trim(); | ||
140 | + } | ||
141 | + | ||
142 | + public String getSpecialgoodscode() { | ||
143 | + return specialgoodscode; | ||
144 | + } | ||
145 | + | ||
146 | + public void setSpecialgoodscode(String specialgoodscode) { | ||
147 | + this.specialgoodscode = specialgoodscode == null ? null : specialgoodscode.trim(); | ||
148 | + } | ||
149 | + | ||
150 | + public String getCustomscode() { | ||
151 | + return customscode; | ||
152 | + } | ||
153 | + | ||
154 | + public void setCustomscode(String customscode) { | ||
155 | + this.customscode = customscode == null ? null : customscode.trim(); | ||
156 | + } | ||
157 | + | ||
158 | + public String getShippername() { | ||
159 | + return shippername; | ||
160 | + } | ||
161 | + | ||
162 | + public void setShippername(String shippername) { | ||
163 | + this.shippername = shippername == null ? null : shippername.trim(); | ||
164 | + } | ||
165 | + | ||
166 | + public String getShipperaddress() { | ||
167 | + return shipperaddress; | ||
168 | + } | ||
169 | + | ||
170 | + public void setShipperaddress(String shipperaddress) { | ||
171 | + this.shipperaddress = shipperaddress == null ? null : shipperaddress.trim(); | ||
172 | + } | ||
173 | + | ||
174 | + public String getConsigneename() { | ||
175 | + return consigneename; | ||
176 | + } | ||
177 | + | ||
178 | + public void setConsigneename(String consigneename) { | ||
179 | + this.consigneename = consigneename == null ? null : consigneename.trim(); | ||
180 | + } | ||
181 | + | ||
182 | + public String getConsigneeaddress() { | ||
183 | + return consigneeaddress; | ||
184 | + } | ||
185 | + | ||
186 | + public void setConsigneeaddress(String consigneeaddress) { | ||
187 | + this.consigneeaddress = consigneeaddress == null ? null : consigneeaddress.trim(); | ||
188 | + } | ||
189 | + | ||
190 | + public Date getCreatedate() { | ||
191 | + return createdate; | ||
192 | + } | ||
193 | + | ||
194 | + public void setCreatedate(Date createdate) { | ||
195 | + this.createdate = createdate; | ||
196 | + } | ||
197 | + | ||
198 | + public String getOriginmanifestmasterautoid() { | ||
199 | + return originmanifestmasterautoid; | ||
200 | + } | ||
201 | + | ||
202 | + public void setOriginmanifestmasterautoid(String originmanifestmasterautoid) { | ||
203 | + this.originmanifestmasterautoid = originmanifestmasterautoid == null ? null : originmanifestmasterautoid.trim(); | ||
204 | + } | ||
205 | + | ||
206 | + public String getCustomsstatus() { | ||
207 | + return customsstatus; | ||
208 | + } | ||
209 | + | ||
210 | + public void setCustomsstatus(String customsstatus) { | ||
211 | + this.customsstatus = customsstatus == null ? null : customsstatus.trim(); | ||
212 | + } | ||
213 | + | ||
214 | + public String getStatus() { | ||
215 | + return status; | ||
216 | + } | ||
217 | + | ||
218 | + public void setStatus(String status) { | ||
219 | + this.status = status == null ? null : status.trim(); | ||
220 | + } | ||
221 | + | ||
222 | + public String getReceiption() { | ||
223 | + return receiption; | ||
224 | + } | ||
225 | + | ||
226 | + public void setReceiption(String receiption) { | ||
227 | + this.receiption = receiption == null ? null : receiption.trim(); | ||
228 | + } | ||
229 | + | ||
230 | + public String getOriginatingstationBill() { | ||
231 | + return originatingstationBill; | ||
232 | + } | ||
233 | + | ||
234 | + public void setOriginatingstationBill(String originatingstationBill) { | ||
235 | + this.originatingstationBill = originatingstationBill == null ? null : originatingstationBill.trim(); | ||
236 | + } | ||
237 | + | ||
238 | + public String getDestinationstationBill() { | ||
239 | + return destinationstationBill; | ||
240 | + } | ||
241 | + | ||
242 | + public void setDestinationstationBill(String destinationstationBill) { | ||
243 | + this.destinationstationBill = destinationstationBill == null ? null : destinationstationBill.trim(); | ||
244 | + } | ||
245 | + | ||
246 | + public String getShipperCode() { | ||
247 | + return shipperCode; | ||
248 | + } | ||
249 | + | ||
250 | + public void setShipperCode(String shipperCode) { | ||
251 | + this.shipperCode = shipperCode == null ? null : shipperCode.trim(); | ||
252 | + } | ||
253 | + | ||
254 | + public String getShipperCountrycode() { | ||
255 | + return shipperCountrycode; | ||
256 | + } | ||
257 | + | ||
258 | + public void setShipperCountrycode(String shipperCountrycode) { | ||
259 | + this.shipperCountrycode = shipperCountrycode == null ? null : shipperCountrycode.trim(); | ||
260 | + } | ||
261 | + | ||
262 | + public String getShipperPhone() { | ||
263 | + return shipperPhone; | ||
264 | + } | ||
265 | + | ||
266 | + public void setShipperPhone(String shipperPhone) { | ||
267 | + this.shipperPhone = shipperPhone == null ? null : shipperPhone.trim(); | ||
268 | + } | ||
269 | + | ||
270 | + public String getShipperFax() { | ||
271 | + return shipperFax; | ||
272 | + } | ||
273 | + | ||
274 | + public void setShipperFax(String shipperFax) { | ||
275 | + this.shipperFax = shipperFax == null ? null : shipperFax.trim(); | ||
276 | + } | ||
277 | + | ||
278 | + public String getConsigneeCode() { | ||
279 | + return consigneeCode; | ||
280 | + } | ||
281 | + | ||
282 | + public void setConsigneeCode(String consigneeCode) { | ||
283 | + this.consigneeCode = consigneeCode == null ? null : consigneeCode.trim(); | ||
284 | + } | ||
285 | + | ||
286 | + public String getConsigneeCountrycode() { | ||
287 | + return consigneeCountrycode; | ||
288 | + } | ||
289 | + | ||
290 | + public void setConsigneeCountrycode(String consigneeCountrycode) { | ||
291 | + this.consigneeCountrycode = consigneeCountrycode == null ? null : consigneeCountrycode.trim(); | ||
292 | + } | ||
293 | + | ||
294 | + public String getConsigneeFax() { | ||
295 | + return consigneeFax; | ||
296 | + } | ||
297 | + | ||
298 | + public void setConsigneeFax(String consigneeFax) { | ||
299 | + this.consigneeFax = consigneeFax == null ? null : consigneeFax.trim(); | ||
300 | + } | ||
301 | + | ||
302 | + public String getSpecificConsigneename() { | ||
303 | + return specificConsigneename; | ||
304 | + } | ||
305 | + | ||
306 | + public void setSpecificConsigneename(String specificConsigneename) { | ||
307 | + this.specificConsigneename = specificConsigneename == null ? null : specificConsigneename.trim(); | ||
308 | + } | ||
309 | + | ||
310 | + public String getSpecificConsigneePhone() { | ||
311 | + return specificConsigneePhone; | ||
312 | + } | ||
313 | + | ||
314 | + public void setSpecificConsigneePhone(String specificConsigneePhone) { | ||
315 | + this.specificConsigneePhone = specificConsigneePhone == null ? null : specificConsigneePhone.trim(); | ||
316 | + } | ||
317 | + | ||
318 | + public String getConsigneePhone() { | ||
319 | + return consigneePhone; | ||
320 | + } | ||
321 | + | ||
322 | + public void setConsigneePhone(String consigneePhone) { | ||
323 | + this.consigneePhone = consigneePhone == null ? null : consigneePhone.trim(); | ||
324 | + } | ||
325 | +} |
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.service.imp; | ||
2 | + | ||
3 | +import com.tianbo.analysis.dao.ORIGINMANIFESTMASTERMapper; | ||
4 | +import com.tianbo.analysis.dao.OriginmanifestsecondaryMapper; | ||
5 | +import com.tianbo.analysis.dao.SENDLOGMapper; | ||
6 | +import com.tianbo.analysis.model.CustomReception; | ||
7 | +import com.tianbo.analysis.model.ORIGINMANIFESTMASTER; | ||
8 | +import com.tianbo.analysis.model.Originmanifestsecondary; | ||
9 | +import com.tianbo.analysis.model.SENDLOG; | ||
10 | +import com.tianbo.analysis.service.CoustomAnalysisService; | ||
11 | +import com.tianbo.util.Date.DateUtil; | ||
12 | +import com.tianbo.util.Helper; | ||
13 | +import lombok.extern.slf4j.Slf4j; | ||
14 | +import org.springframework.beans.factory.annotation.Autowired; | ||
15 | +import org.springframework.stereotype.Service; | ||
16 | + | ||
17 | +import java.math.BigDecimal; | ||
18 | +import java.util.Date; | ||
19 | +import java.util.List; | ||
20 | + | ||
21 | +@Service | ||
22 | +@Slf4j | ||
23 | +public class CoustomAnalysisServiceImp implements CoustomAnalysisService { | ||
24 | + | ||
25 | + @Autowired | ||
26 | + SENDLOGMapper sendlogMapper; | ||
27 | + @Autowired | ||
28 | + ORIGINMANIFESTMASTERMapper originmanifestmasterMapper; | ||
29 | + @Autowired | ||
30 | + OriginmanifestsecondaryMapper originmanifestsecondaryMapper; | ||
31 | + | ||
32 | + | ||
33 | + @Override | ||
34 | + public int insertRecept(CustomReception customReception){ | ||
35 | + | ||
36 | + String awbA = customReception.getWayBillMaster(); | ||
37 | + String awbH = customReception.getWayBillSecond(); | ||
38 | + //回执内容 | ||
39 | + String reception = customReception.getResponseText(); | ||
40 | + String flightDateStr = customReception.getFlightDate(); | ||
41 | + Date flightDate = DateUtil.formatByyyyyMMdd(flightDateStr); | ||
42 | + | ||
43 | + //设置分单回执 | ||
44 | + Originmanifestsecondary originmanifestsecondary = new Originmanifestsecondary(); | ||
45 | + originmanifestsecondary.setReceiption(reception); | ||
46 | + | ||
47 | + //设置主单回执、航班号、航班日期 | ||
48 | + ORIGINMANIFESTMASTER originmanifestmaster = new ORIGINMANIFESTMASTER(); | ||
49 | + originmanifestmaster.setReceiptinformation(reception); | ||
50 | + originmanifestmaster.setFlightno(customReception.getFlightNo()); | ||
51 | + originmanifestmaster.setFlightDate(flightDate); | ||
52 | + | ||
53 | + if (awbA!=null && awbA.length()>0){ | ||
54 | + StringBuffer stringBuffer = new StringBuffer(awbA); | ||
55 | + stringBuffer.insert(3,"-"); | ||
56 | + awbA = stringBuffer.toString(); | ||
57 | + | ||
58 | + //设置主分单的 主单号 | ||
59 | + originmanifestsecondary.setWaybillnomaster(awbA); | ||
60 | + originmanifestmaster.setWaybillnomaster(awbA); | ||
61 | + } | ||
62 | + | ||
63 | + //有分单号 更新分单 | ||
64 | + if(awbA!=null && awbA.length()>0 && awbH!=null && awbH.length()> 0){ | ||
65 | + //取分单号 | ||
66 | + String[] awbhArr = awbH.split("_"); | ||
67 | + String awbh = awbhArr[1]; | ||
68 | + originmanifestsecondary.setWaybillnosecondary(awbh); | ||
69 | + //更新分单回执 | ||
70 | + int i = originmanifestsecondaryMapper.updateRECEIPTION(originmanifestsecondary); | ||
71 | + //获取分单autoid | ||
72 | + List<Originmanifestsecondary> originmanifestsecondaryList = originmanifestsecondaryMapper.selectAutoIdByawbAawbH(originmanifestsecondary); | ||
73 | + if(!originmanifestsecondaryList.isEmpty()){ | ||
74 | + Originmanifestsecondary originSecond = originmanifestsecondaryList.get(0); | ||
75 | + String autoId = originSecond.getAutoid(); | ||
76 | + //插入sendlog记录表 | ||
77 | + log.info("即将插入日志运单号为:"+awbH+"->autoid="+autoId); | ||
78 | + int ii = insertSendlog("MT1201",reception,autoId); | ||
79 | + | ||
80 | + if (i>0 && ii>0){ | ||
81 | + return 1; | ||
82 | + } | ||
83 | + } | ||
84 | + return 0; | ||
85 | + } | ||
86 | + | ||
87 | + //处理主单格式,将海关回执的主单号58019316861,变为580-19316861 | ||
88 | + if (awbA!=null && awbA.length()>0){ | ||
89 | + //更新主单回执 | ||
90 | + int i = originmanifestmasterMapper.updateRECEIPTION(originmanifestmaster); | ||
91 | + //获取分单autoid | ||
92 | + List<ORIGINMANIFESTMASTER> originmanifestmasterList = originmanifestmasterMapper.selectAutoIdByAwb(originmanifestmaster); | ||
93 | + if(!originmanifestmasterList.isEmpty()){ | ||
94 | + ORIGINMANIFESTMASTER originMaster = originmanifestmasterList.get(0); | ||
95 | + String autoId = originMaster.getAutoid(); | ||
96 | + | ||
97 | + //插入sendlog记录表 | ||
98 | + log.info("即将插入日志运单号为:"+awbA+"->autoid="+autoId); | ||
99 | + int ii =insertSendlog("MT1201",reception,autoId); | ||
100 | + | ||
101 | + if (i>0 && ii>0){ | ||
102 | + return 1; | ||
103 | + } | ||
104 | + } | ||
105 | + return 0; | ||
106 | + } | ||
107 | + //未进入主分单解析 返回0 失败 | ||
108 | + return 0; | ||
109 | + } | ||
110 | + | ||
111 | + | ||
112 | + private int insertSendlog(String type,String reception,String autoId){ | ||
113 | + SENDLOG sendlog = new SENDLOG(); | ||
114 | + sendlog.setAutoid(Helper.getUUID()); | ||
115 | + sendlog.setCreatedate(new Date()); | ||
116 | + sendlog.setMessageautoid(autoId); | ||
117 | + sendlog.setMessagetype(type); | ||
118 | + sendlog.setReceiption(reception); | ||
119 | + sendlog.setSendpeice(new Long(0)); | ||
120 | + sendlog.setSendweight(new BigDecimal(0)); | ||
121 | + int i = sendlogMapper.insertSelective(sendlog); | ||
122 | + if (i>0){ | ||
123 | + log.info("插入日志成功,插入数据量为:"+i); | ||
124 | + } | ||
125 | + | ||
126 | + return i; | ||
127 | + } | ||
128 | +} |
1 | +package com.tianbo.analysis.task; | ||
2 | + | ||
3 | +import com.tianbo.util.Date.DateUtil; | ||
4 | +import com.tianbo.util.IO.FileTool; | ||
5 | +import com.tianbo.analysis.handle.CustomXmlHandle; | ||
6 | +import org.apache.commons.io.FileUtils; | ||
7 | +import org.springframework.beans.factory.annotation.Value; | ||
8 | +import org.springframework.scheduling.annotation.Scheduled; | ||
9 | +import org.springframework.stereotype.Component; | ||
10 | + | ||
11 | +import java.io.File; | ||
12 | +import java.util.Iterator; | ||
13 | +import java.util.List; | ||
14 | + | ||
15 | +/** | ||
16 | + * 回执解析定时任务 | ||
17 | + */ | ||
18 | +@Component | ||
19 | +public class TaskAnalysis { | ||
20 | + | ||
21 | + private String today = DateUtil.getTodayBy_yyyyMMdd(); | ||
22 | + | ||
23 | + //回执读取目录 | ||
24 | + @Value("${custom.receptDirectory}") | ||
25 | + private String receptDir; | ||
26 | + | ||
27 | + //备份目录 | ||
28 | + @Value("${custom.receptBakDir}") | ||
29 | + private String bakupDir; | ||
30 | + | ||
31 | + //解析出错转移目录 | ||
32 | + @Value("${custom.errBakDir}") | ||
33 | + private String errBakDir; | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | + @Scheduled(fixedDelay = 5000) | ||
38 | + public void startTask(){ | ||
39 | + String readDir = receptDir + "/" + today; | ||
40 | + String backdireByDay = bakupDir + "/" + today; | ||
41 | + | ||
42 | + List<File> files = FileTool.readDirectoryFiles(new File(readDir)); | ||
43 | + Iterator<File> it = files.iterator(); | ||
44 | + while(it.hasNext()){ | ||
45 | + File file = it.next(); | ||
46 | + try { | ||
47 | + //解析 | ||
48 | + int i = new CustomXmlHandle().handelXmlDocument(file); | ||
49 | + //操作成功,则转移剪切解析文件到备份目录,否则转移到error目录备份 | ||
50 | + if(i>0){ | ||
51 | + File bakupDirectory = new File(backdireByDay); | ||
52 | + FileUtils.moveFileToDirectory(file,bakupDirectory,true); | ||
53 | + }else { | ||
54 | + errBak(file); | ||
55 | + } | ||
56 | + }catch (Exception e){ | ||
57 | + e.printStackTrace(); | ||
58 | + errBak(file); | ||
59 | + } | ||
60 | + } | ||
61 | + } | ||
62 | + | ||
63 | + public void errBak(File file){ | ||
64 | + try { | ||
65 | + String errDirByDay = errBakDir + "/" + today; | ||
66 | + File berrDirectory = new File(errDirByDay); | ||
67 | + FileUtils.moveFileToDirectory(file,berrDirectory,true); | ||
68 | + }catch (Exception e){ | ||
69 | + e.printStackTrace(); | ||
70 | + } | ||
71 | + } | ||
72 | +} |
@@ -45,6 +45,6 @@ | @@ -45,6 +45,6 @@ | ||
45 | <property name="enableSubPackages" value="true"/> | 45 | <property name="enableSubPackages" value="true"/> |
46 | </javaClientGenerator> | 46 | </javaClientGenerator> |
47 | <!-- 要生成的表 tableName是数据库中的表名或视图名 domainObjectName是实体类名--> | 47 | <!-- 要生成的表 tableName是数据库中的表名或视图名 domainObjectName是实体类名--> |
48 | - <table tableName="CUSTOMSMESSAGE" domainObjectName="CUSTOMSMESSAGE" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table> | 48 | + <table tableName="originmanifestsecondary" domainObjectName="originmanifestsecondary" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table> |
49 | </context> | 49 | </context> |
50 | </generatorConfiguration> | 50 | </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.ORIGINMANIFESTMASTERMapper" > | ||
4 | + <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.ORIGINMANIFESTMASTER" > | ||
5 | + <result column="AUTOID" property="autoid" jdbcType="VARCHAR" /> | ||
6 | + <result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" /> | ||
7 | + <result column="SEGMENT" property="segment" jdbcType="VARCHAR" /> | ||
8 | + <result column="ORIGINATINGSTATION" property="originatingstation" jdbcType="VARCHAR" /> | ||
9 | + <result column="DESTINATIONSTATION" property="destinationstation" jdbcType="VARCHAR" /> | ||
10 | + <result column="TOTALWEIGHT" property="totalweight" jdbcType="VARCHAR" /> | ||
11 | + <result column="TOTALPIECE" property="totalpiece" jdbcType="VARCHAR" /> | ||
12 | + <result column="MANIFESTTOTALPIECE" property="manifesttotalpiece" jdbcType="VARCHAR" /> | ||
13 | + <result column="MANIFESTTOTALWEIGHT" property="manifesttotalweight" jdbcType="VARCHAR" /> | ||
14 | + <result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" /> | ||
15 | + <result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" /> | ||
16 | + <result column="CUSTOMSSTATUS" property="customsstatus" jdbcType="VARCHAR" /> | ||
17 | + <result column="CARRIER1" property="carrier1" jdbcType="VARCHAR" /> | ||
18 | + <result column="ARRIVALSTATION1" property="arrivalstation1" jdbcType="VARCHAR" /> | ||
19 | + <result column="CARRIER2" property="carrier2" jdbcType="VARCHAR" /> | ||
20 | + <result column="ARRIVALSTATION2" property="arrivalstation2" jdbcType="VARCHAR" /> | ||
21 | + <result column="CARRIER3" property="carrier3" jdbcType="VARCHAR" /> | ||
22 | + <result column="ARRIVALSTATION3" property="arrivalstation3" jdbcType="VARCHAR" /> | ||
23 | + <result column="PAYMODE" property="paymode" jdbcType="VARCHAR" /> | ||
24 | + <result column="SPECIALGOODSCODE" property="specialgoodscode" jdbcType="VARCHAR" /> | ||
25 | + <result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" /> | ||
26 | + <result column="SHIPPERNAME" property="shippername" jdbcType="VARCHAR" /> | ||
27 | + <result column="SHIPPERADDRESS" property="shipperaddress" jdbcType="VARCHAR" /> | ||
28 | + <result column="CONSIGNEENAME" property="consigneename" jdbcType="VARCHAR" /> | ||
29 | + <result column="CONSIGNEEADDRESS" property="consigneeaddress" jdbcType="VARCHAR" /> | ||
30 | + <result column="RECEIPTINFORMATION" property="receiptinformation" jdbcType="VARCHAR" /> | ||
31 | + <result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" /> | ||
32 | + <result column="FLIGHT_DATE" property="flightDate" jdbcType="TIMESTAMP" /> | ||
33 | + <result column="STATUS" property="status" jdbcType="VARCHAR" /> | ||
34 | + <result column="ISBATCH" property="isbatch" jdbcType="VARCHAR" /> | ||
35 | + <result column="ORIGINATINGSTATION_BILL" property="originatingstationBill" jdbcType="VARCHAR" /> | ||
36 | + <result column="DESTINATIONSTATION_BILL" property="destinationstationBill" jdbcType="VARCHAR" /> | ||
37 | + <result column="REPORTORDER" property="reportorder" jdbcType="VARCHAR" /> | ||
38 | + <result column="ISLAST" property="islast" jdbcType="VARCHAR" /> | ||
39 | + <result column="SHIPPER_CODE" property="shipperCode" jdbcType="VARCHAR" /> | ||
40 | + <result column="SHIPPER_COUNTRYCODE" property="shipperCountrycode" jdbcType="VARCHAR" /> | ||
41 | + <result column="SHIPPER_PHONE" property="shipperPhone" jdbcType="VARCHAR" /> | ||
42 | + <result column="SHIPPER_FAX" property="shipperFax" jdbcType="VARCHAR" /> | ||
43 | + <result column="CONSIGNEE_CODE" property="consigneeCode" jdbcType="VARCHAR" /> | ||
44 | + <result column="CONSIGNEE_COUNTRYCODE" property="consigneeCountrycode" jdbcType="VARCHAR" /> | ||
45 | + <result column="CONSIGNEE_FAX" property="consigneeFax" jdbcType="VARCHAR" /> | ||
46 | + <result column="SPECIFIC_CONSIGNEENAME" property="specificConsigneename" jdbcType="VARCHAR" /> | ||
47 | + <result column="SPECIFIC_CONSIGNEE_PHONE" property="specificConsigneePhone" jdbcType="VARCHAR" /> | ||
48 | + <result column="CONSIGNEE_PHONE" property="consigneePhone" jdbcType="VARCHAR" /> | ||
49 | + </resultMap> | ||
50 | + <insert id="insert" parameterType="com.tianbo.analysis.model.ORIGINMANIFESTMASTER" > | ||
51 | + insert into ORIGINMANIFESTMASTER (AUTOID, WAYBILLNOMASTER, SEGMENT, | ||
52 | + ORIGINATINGSTATION, DESTINATIONSTATION, | ||
53 | + TOTALWEIGHT, TOTALPIECE, MANIFESTTOTALPIECE, | ||
54 | + MANIFESTTOTALWEIGHT, FLIGHTNO, PRODUCTNAME, | ||
55 | + CUSTOMSSTATUS, CARRIER1, ARRIVALSTATION1, | ||
56 | + CARRIER2, ARRIVALSTATION2, CARRIER3, | ||
57 | + ARRIVALSTATION3, PAYMODE, SPECIALGOODSCODE, | ||
58 | + CUSTOMSCODE, SHIPPERNAME, SHIPPERADDRESS, | ||
59 | + CONSIGNEENAME, CONSIGNEEADDRESS, RECEIPTINFORMATION, | ||
60 | + CREATEDATE, FLIGHT_DATE, STATUS, | ||
61 | + ISBATCH, ORIGINATINGSTATION_BILL, DESTINATIONSTATION_BILL, | ||
62 | + REPORTORDER, ISLAST, SHIPPER_CODE, | ||
63 | + SHIPPER_COUNTRYCODE, SHIPPER_PHONE, SHIPPER_FAX, | ||
64 | + CONSIGNEE_CODE, CONSIGNEE_COUNTRYCODE, CONSIGNEE_FAX, | ||
65 | + SPECIFIC_CONSIGNEENAME, SPECIFIC_CONSIGNEE_PHONE, | ||
66 | + CONSIGNEE_PHONE) | ||
67 | + values (#{autoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{segment,jdbcType=VARCHAR}, | ||
68 | + #{originatingstation,jdbcType=VARCHAR}, #{destinationstation,jdbcType=VARCHAR}, | ||
69 | + #{totalweight,jdbcType=VARCHAR}, #{totalpiece,jdbcType=VARCHAR}, #{manifesttotalpiece,jdbcType=VARCHAR}, | ||
70 | + #{manifesttotalweight,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{productname,jdbcType=VARCHAR}, | ||
71 | + #{customsstatus,jdbcType=VARCHAR}, #{carrier1,jdbcType=VARCHAR}, #{arrivalstation1,jdbcType=VARCHAR}, | ||
72 | + #{carrier2,jdbcType=VARCHAR}, #{arrivalstation2,jdbcType=VARCHAR}, #{carrier3,jdbcType=VARCHAR}, | ||
73 | + #{arrivalstation3,jdbcType=VARCHAR}, #{paymode,jdbcType=VARCHAR}, #{specialgoodscode,jdbcType=VARCHAR}, | ||
74 | + #{customscode,jdbcType=VARCHAR}, #{shippername,jdbcType=VARCHAR}, #{shipperaddress,jdbcType=VARCHAR}, | ||
75 | + #{consigneename,jdbcType=VARCHAR}, #{consigneeaddress,jdbcType=VARCHAR}, #{receiptinformation,jdbcType=VARCHAR}, | ||
76 | + #{createdate,jdbcType=TIMESTAMP}, #{flightDate,jdbcType=TIMESTAMP}, #{status,jdbcType=VARCHAR}, | ||
77 | + #{isbatch,jdbcType=VARCHAR}, #{originatingstationBill,jdbcType=VARCHAR}, #{destinationstationBill,jdbcType=VARCHAR}, | ||
78 | + #{reportorder,jdbcType=VARCHAR}, #{islast,jdbcType=VARCHAR}, #{shipperCode,jdbcType=VARCHAR}, | ||
79 | + #{shipperCountrycode,jdbcType=VARCHAR}, #{shipperPhone,jdbcType=VARCHAR}, #{shipperFax,jdbcType=VARCHAR}, | ||
80 | + #{consigneeCode,jdbcType=VARCHAR}, #{consigneeCountrycode,jdbcType=VARCHAR}, #{consigneeFax,jdbcType=VARCHAR}, | ||
81 | + #{specificConsigneename,jdbcType=VARCHAR}, #{specificConsigneePhone,jdbcType=VARCHAR}, | ||
82 | + #{consigneePhone,jdbcType=VARCHAR}) | ||
83 | + </insert> | ||
84 | + <insert id="insertSelective" parameterType="com.tianbo.analysis.model.ORIGINMANIFESTMASTER" > | ||
85 | + insert into ORIGINMANIFESTMASTER | ||
86 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
87 | + <if test="autoid != null" > | ||
88 | + AUTOID, | ||
89 | + </if> | ||
90 | + <if test="waybillnomaster != null" > | ||
91 | + WAYBILLNOMASTER, | ||
92 | + </if> | ||
93 | + <if test="segment != null" > | ||
94 | + SEGMENT, | ||
95 | + </if> | ||
96 | + <if test="originatingstation != null" > | ||
97 | + ORIGINATINGSTATION, | ||
98 | + </if> | ||
99 | + <if test="destinationstation != null" > | ||
100 | + DESTINATIONSTATION, | ||
101 | + </if> | ||
102 | + <if test="totalweight != null" > | ||
103 | + TOTALWEIGHT, | ||
104 | + </if> | ||
105 | + <if test="totalpiece != null" > | ||
106 | + TOTALPIECE, | ||
107 | + </if> | ||
108 | + <if test="manifesttotalpiece != null" > | ||
109 | + MANIFESTTOTALPIECE, | ||
110 | + </if> | ||
111 | + <if test="manifesttotalweight != null" > | ||
112 | + MANIFESTTOTALWEIGHT, | ||
113 | + </if> | ||
114 | + <if test="flightno != null" > | ||
115 | + FLIGHTNO, | ||
116 | + </if> | ||
117 | + <if test="productname != null" > | ||
118 | + PRODUCTNAME, | ||
119 | + </if> | ||
120 | + <if test="customsstatus != null" > | ||
121 | + CUSTOMSSTATUS, | ||
122 | + </if> | ||
123 | + <if test="carrier1 != null" > | ||
124 | + CARRIER1, | ||
125 | + </if> | ||
126 | + <if test="arrivalstation1 != null" > | ||
127 | + ARRIVALSTATION1, | ||
128 | + </if> | ||
129 | + <if test="carrier2 != null" > | ||
130 | + CARRIER2, | ||
131 | + </if> | ||
132 | + <if test="arrivalstation2 != null" > | ||
133 | + ARRIVALSTATION2, | ||
134 | + </if> | ||
135 | + <if test="carrier3 != null" > | ||
136 | + CARRIER3, | ||
137 | + </if> | ||
138 | + <if test="arrivalstation3 != null" > | ||
139 | + ARRIVALSTATION3, | ||
140 | + </if> | ||
141 | + <if test="paymode != null" > | ||
142 | + PAYMODE, | ||
143 | + </if> | ||
144 | + <if test="specialgoodscode != null" > | ||
145 | + SPECIALGOODSCODE, | ||
146 | + </if> | ||
147 | + <if test="customscode != null" > | ||
148 | + CUSTOMSCODE, | ||
149 | + </if> | ||
150 | + <if test="shippername != null" > | ||
151 | + SHIPPERNAME, | ||
152 | + </if> | ||
153 | + <if test="shipperaddress != null" > | ||
154 | + SHIPPERADDRESS, | ||
155 | + </if> | ||
156 | + <if test="consigneename != null" > | ||
157 | + CONSIGNEENAME, | ||
158 | + </if> | ||
159 | + <if test="consigneeaddress != null" > | ||
160 | + CONSIGNEEADDRESS, | ||
161 | + </if> | ||
162 | + <if test="receiptinformation != null" > | ||
163 | + RECEIPTINFORMATION, | ||
164 | + </if> | ||
165 | + <if test="createdate != null" > | ||
166 | + CREATEDATE, | ||
167 | + </if> | ||
168 | + <if test="flightDate != null" > | ||
169 | + FLIGHT_DATE, | ||
170 | + </if> | ||
171 | + <if test="status != null" > | ||
172 | + STATUS, | ||
173 | + </if> | ||
174 | + <if test="isbatch != null" > | ||
175 | + ISBATCH, | ||
176 | + </if> | ||
177 | + <if test="originatingstationBill != null" > | ||
178 | + ORIGINATINGSTATION_BILL, | ||
179 | + </if> | ||
180 | + <if test="destinationstationBill != null" > | ||
181 | + DESTINATIONSTATION_BILL, | ||
182 | + </if> | ||
183 | + <if test="reportorder != null" > | ||
184 | + REPORTORDER, | ||
185 | + </if> | ||
186 | + <if test="islast != null" > | ||
187 | + ISLAST, | ||
188 | + </if> | ||
189 | + <if test="shipperCode != null" > | ||
190 | + SHIPPER_CODE, | ||
191 | + </if> | ||
192 | + <if test="shipperCountrycode != null" > | ||
193 | + SHIPPER_COUNTRYCODE, | ||
194 | + </if> | ||
195 | + <if test="shipperPhone != null" > | ||
196 | + SHIPPER_PHONE, | ||
197 | + </if> | ||
198 | + <if test="shipperFax != null" > | ||
199 | + SHIPPER_FAX, | ||
200 | + </if> | ||
201 | + <if test="consigneeCode != null" > | ||
202 | + CONSIGNEE_CODE, | ||
203 | + </if> | ||
204 | + <if test="consigneeCountrycode != null" > | ||
205 | + CONSIGNEE_COUNTRYCODE, | ||
206 | + </if> | ||
207 | + <if test="consigneeFax != null" > | ||
208 | + CONSIGNEE_FAX, | ||
209 | + </if> | ||
210 | + <if test="specificConsigneename != null" > | ||
211 | + SPECIFIC_CONSIGNEENAME, | ||
212 | + </if> | ||
213 | + <if test="specificConsigneePhone != null" > | ||
214 | + SPECIFIC_CONSIGNEE_PHONE, | ||
215 | + </if> | ||
216 | + <if test="consigneePhone != null" > | ||
217 | + CONSIGNEE_PHONE, | ||
218 | + </if> | ||
219 | + </trim> | ||
220 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
221 | + <if test="autoid != null" > | ||
222 | + #{autoid,jdbcType=VARCHAR}, | ||
223 | + </if> | ||
224 | + <if test="waybillnomaster != null" > | ||
225 | + #{waybillnomaster,jdbcType=VARCHAR}, | ||
226 | + </if> | ||
227 | + <if test="segment != null" > | ||
228 | + #{segment,jdbcType=VARCHAR}, | ||
229 | + </if> | ||
230 | + <if test="originatingstation != null" > | ||
231 | + #{originatingstation,jdbcType=VARCHAR}, | ||
232 | + </if> | ||
233 | + <if test="destinationstation != null" > | ||
234 | + #{destinationstation,jdbcType=VARCHAR}, | ||
235 | + </if> | ||
236 | + <if test="totalweight != null" > | ||
237 | + #{totalweight,jdbcType=VARCHAR}, | ||
238 | + </if> | ||
239 | + <if test="totalpiece != null" > | ||
240 | + #{totalpiece,jdbcType=VARCHAR}, | ||
241 | + </if> | ||
242 | + <if test="manifesttotalpiece != null" > | ||
243 | + #{manifesttotalpiece,jdbcType=VARCHAR}, | ||
244 | + </if> | ||
245 | + <if test="manifesttotalweight != null" > | ||
246 | + #{manifesttotalweight,jdbcType=VARCHAR}, | ||
247 | + </if> | ||
248 | + <if test="flightno != null" > | ||
249 | + #{flightno,jdbcType=VARCHAR}, | ||
250 | + </if> | ||
251 | + <if test="productname != null" > | ||
252 | + #{productname,jdbcType=VARCHAR}, | ||
253 | + </if> | ||
254 | + <if test="customsstatus != null" > | ||
255 | + #{customsstatus,jdbcType=VARCHAR}, | ||
256 | + </if> | ||
257 | + <if test="carrier1 != null" > | ||
258 | + #{carrier1,jdbcType=VARCHAR}, | ||
259 | + </if> | ||
260 | + <if test="arrivalstation1 != null" > | ||
261 | + #{arrivalstation1,jdbcType=VARCHAR}, | ||
262 | + </if> | ||
263 | + <if test="carrier2 != null" > | ||
264 | + #{carrier2,jdbcType=VARCHAR}, | ||
265 | + </if> | ||
266 | + <if test="arrivalstation2 != null" > | ||
267 | + #{arrivalstation2,jdbcType=VARCHAR}, | ||
268 | + </if> | ||
269 | + <if test="carrier3 != null" > | ||
270 | + #{carrier3,jdbcType=VARCHAR}, | ||
271 | + </if> | ||
272 | + <if test="arrivalstation3 != null" > | ||
273 | + #{arrivalstation3,jdbcType=VARCHAR}, | ||
274 | + </if> | ||
275 | + <if test="paymode != null" > | ||
276 | + #{paymode,jdbcType=VARCHAR}, | ||
277 | + </if> | ||
278 | + <if test="specialgoodscode != null" > | ||
279 | + #{specialgoodscode,jdbcType=VARCHAR}, | ||
280 | + </if> | ||
281 | + <if test="customscode != null" > | ||
282 | + #{customscode,jdbcType=VARCHAR}, | ||
283 | + </if> | ||
284 | + <if test="shippername != null" > | ||
285 | + #{shippername,jdbcType=VARCHAR}, | ||
286 | + </if> | ||
287 | + <if test="shipperaddress != null" > | ||
288 | + #{shipperaddress,jdbcType=VARCHAR}, | ||
289 | + </if> | ||
290 | + <if test="consigneename != null" > | ||
291 | + #{consigneename,jdbcType=VARCHAR}, | ||
292 | + </if> | ||
293 | + <if test="consigneeaddress != null" > | ||
294 | + #{consigneeaddress,jdbcType=VARCHAR}, | ||
295 | + </if> | ||
296 | + <if test="receiptinformation != null" > | ||
297 | + #{receiptinformation,jdbcType=VARCHAR}, | ||
298 | + </if> | ||
299 | + <if test="createdate != null" > | ||
300 | + #{createdate,jdbcType=TIMESTAMP}, | ||
301 | + </if> | ||
302 | + <if test="flightDate != null" > | ||
303 | + #{flightDate,jdbcType=TIMESTAMP}, | ||
304 | + </if> | ||
305 | + <if test="status != null" > | ||
306 | + #{status,jdbcType=VARCHAR}, | ||
307 | + </if> | ||
308 | + <if test="isbatch != null" > | ||
309 | + #{isbatch,jdbcType=VARCHAR}, | ||
310 | + </if> | ||
311 | + <if test="originatingstationBill != null" > | ||
312 | + #{originatingstationBill,jdbcType=VARCHAR}, | ||
313 | + </if> | ||
314 | + <if test="destinationstationBill != null" > | ||
315 | + #{destinationstationBill,jdbcType=VARCHAR}, | ||
316 | + </if> | ||
317 | + <if test="reportorder != null" > | ||
318 | + #{reportorder,jdbcType=VARCHAR}, | ||
319 | + </if> | ||
320 | + <if test="islast != null" > | ||
321 | + #{islast,jdbcType=VARCHAR}, | ||
322 | + </if> | ||
323 | + <if test="shipperCode != null" > | ||
324 | + #{shipperCode,jdbcType=VARCHAR}, | ||
325 | + </if> | ||
326 | + <if test="shipperCountrycode != null" > | ||
327 | + #{shipperCountrycode,jdbcType=VARCHAR}, | ||
328 | + </if> | ||
329 | + <if test="shipperPhone != null" > | ||
330 | + #{shipperPhone,jdbcType=VARCHAR}, | ||
331 | + </if> | ||
332 | + <if test="shipperFax != null" > | ||
333 | + #{shipperFax,jdbcType=VARCHAR}, | ||
334 | + </if> | ||
335 | + <if test="consigneeCode != null" > | ||
336 | + #{consigneeCode,jdbcType=VARCHAR}, | ||
337 | + </if> | ||
338 | + <if test="consigneeCountrycode != null" > | ||
339 | + #{consigneeCountrycode,jdbcType=VARCHAR}, | ||
340 | + </if> | ||
341 | + <if test="consigneeFax != null" > | ||
342 | + #{consigneeFax,jdbcType=VARCHAR}, | ||
343 | + </if> | ||
344 | + <if test="specificConsigneename != null" > | ||
345 | + #{specificConsigneename,jdbcType=VARCHAR}, | ||
346 | + </if> | ||
347 | + <if test="specificConsigneePhone != null" > | ||
348 | + #{specificConsigneePhone,jdbcType=VARCHAR}, | ||
349 | + </if> | ||
350 | + <if test="consigneePhone != null" > | ||
351 | + #{consigneePhone,jdbcType=VARCHAR}, | ||
352 | + </if> | ||
353 | + </trim> | ||
354 | + </insert> | ||
355 | + | ||
356 | + <update id="updateRECEIPTION" parameterType="com.tianbo.analysis.model.ORIGINMANIFESTMASTER" > | ||
357 | + UPDATE ORIGINMANIFESTMASTER | ||
358 | + SET RECEIPTINFORMATION= #{receiptinformation,jdbcType=VARCHAR} | ||
359 | + WHERE WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR} | ||
360 | + AND | ||
361 | + FLIGHT_DATE= #{flightDate,jdbcType=TIMESTAMP} | ||
362 | + AND | ||
363 | + WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR} | ||
364 | + </update> | ||
365 | + | ||
366 | + <select id="selectAutoIdByAwb" parameterType="com.tianbo.analysis.model.ORIGINMANIFESTMASTER" resultType="com.tianbo.analysis.model.ORIGINMANIFESTMASTER"> | ||
367 | + SELECT AUTOID | ||
368 | + FROM ORIGINMANIFESTMASTER | ||
369 | + WHERE | ||
370 | + FLIGHTNO= #{flightno,jdbcType=VARCHAR} | ||
371 | + AND | ||
372 | + FLIGHT_DATE= #{flightDate,jdbcType=TIMESTAMP} | ||
373 | + AND | ||
374 | + WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR} | ||
375 | + </select> | ||
376 | +</mapper> |
src/main/resources/mapping/SENDLOGMapper.xml
0 → 100644
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.SENDLOGMapper" > | ||
4 | + <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.SENDLOG" > | ||
5 | + <result column="AUTOID" property="autoid" jdbcType="VARCHAR" /> | ||
6 | + <result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" /> | ||
7 | + <result column="OPAUTHOR" property="opauthor" jdbcType="VARCHAR" /> | ||
8 | + <result column="SENDPEICE" property="sendpeice" jdbcType="DECIMAL" /> | ||
9 | + <result column="SENDWEIGHT" property="sendweight" jdbcType="DECIMAL" /> | ||
10 | + <result column="RECEIPTION" property="receiption" jdbcType="VARCHAR" /> | ||
11 | + <result column="MESSAGETYPE" property="messagetype" jdbcType="VARCHAR" /> | ||
12 | + <result column="MESSAGEAUTOID" property="messageautoid" jdbcType="VARCHAR" /> | ||
13 | + </resultMap> | ||
14 | + <insert id="insert" parameterType="com.tianbo.analysis.model.SENDLOG" > | ||
15 | + insert into SENDLOG (AUTOID, CREATEDATE, OPAUTHOR, | ||
16 | + SENDPEICE, SENDWEIGHT, RECEIPTION, | ||
17 | + MESSAGETYPE, MESSAGEAUTOID) | ||
18 | + values (#{autoid,jdbcType=VARCHAR}, #{createdate,jdbcType=TIMESTAMP}, #{opauthor,jdbcType=VARCHAR}, | ||
19 | + #{sendpeice,jdbcType=DECIMAL}, #{sendweight,jdbcType=DECIMAL}, #{receiption,jdbcType=VARCHAR}, | ||
20 | + #{messagetype,jdbcType=VARCHAR}, #{messageautoid,jdbcType=VARCHAR}) | ||
21 | + </insert> | ||
22 | + <insert id="insertSelective" parameterType="com.tianbo.analysis.model.SENDLOG" > | ||
23 | + insert into SENDLOG | ||
24 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
25 | + <if test="autoid != null" > | ||
26 | + AUTOID, | ||
27 | + </if> | ||
28 | + <if test="createdate != null" > | ||
29 | + CREATEDATE, | ||
30 | + </if> | ||
31 | + <if test="opauthor != null" > | ||
32 | + OPAUTHOR, | ||
33 | + </if> | ||
34 | + <if test="sendpeice != null" > | ||
35 | + SENDPEICE, | ||
36 | + </if> | ||
37 | + <if test="sendweight != null" > | ||
38 | + SENDWEIGHT, | ||
39 | + </if> | ||
40 | + <if test="receiption != null" > | ||
41 | + RECEIPTION, | ||
42 | + </if> | ||
43 | + <if test="messagetype != null" > | ||
44 | + MESSAGETYPE, | ||
45 | + </if> | ||
46 | + <if test="messageautoid != null" > | ||
47 | + MESSAGEAUTOID, | ||
48 | + </if> | ||
49 | + </trim> | ||
50 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
51 | + <if test="autoid != null" > | ||
52 | + #{autoid,jdbcType=VARCHAR}, | ||
53 | + </if> | ||
54 | + <if test="createdate != null" > | ||
55 | + #{createdate,jdbcType=TIMESTAMP}, | ||
56 | + </if> | ||
57 | + <if test="opauthor != null" > | ||
58 | + #{opauthor,jdbcType=VARCHAR}, | ||
59 | + </if> | ||
60 | + <if test="sendpeice != null" > | ||
61 | + #{sendpeice,jdbcType=DECIMAL}, | ||
62 | + </if> | ||
63 | + <if test="sendweight != null" > | ||
64 | + #{sendweight,jdbcType=DECIMAL}, | ||
65 | + </if> | ||
66 | + <if test="receiption != null" > | ||
67 | + #{receiption,jdbcType=VARCHAR}, | ||
68 | + </if> | ||
69 | + <if test="messagetype != null" > | ||
70 | + #{messagetype,jdbcType=VARCHAR}, | ||
71 | + </if> | ||
72 | + <if test="messageautoid != null" > | ||
73 | + #{messageautoid,jdbcType=VARCHAR}, | ||
74 | + </if> | ||
75 | + </trim> | ||
76 | + </insert> | ||
77 | +</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.OriginmanifestsecondaryMapper" > | ||
4 | + <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.Originmanifestsecondary" > | ||
5 | + <result column="AUTOID" property="autoid" jdbcType="VARCHAR" /> | ||
6 | + <result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" /> | ||
7 | + <result column="WAYBILLNOSECONDARY" property="waybillnosecondary" jdbcType="VARCHAR" /> | ||
8 | + <result column="WEIGHT" property="weight" jdbcType="VARCHAR" /> | ||
9 | + <result column="PIECE" property="piece" jdbcType="VARCHAR" /> | ||
10 | + <result column="MANIFESTPIECE" property="manifestpiece" jdbcType="VARCHAR" /> | ||
11 | + <result column="MANIFESTWEIGHT" property="manifestweight" jdbcType="VARCHAR" /> | ||
12 | + <result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" /> | ||
13 | + <result column="PAYMODE" property="paymode" jdbcType="VARCHAR" /> | ||
14 | + <result column="SPECIALGOODSCODE" property="specialgoodscode" jdbcType="VARCHAR" /> | ||
15 | + <result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" /> | ||
16 | + <result column="SHIPPERNAME" property="shippername" jdbcType="VARCHAR" /> | ||
17 | + <result column="SHIPPERADDRESS" property="shipperaddress" jdbcType="VARCHAR" /> | ||
18 | + <result column="CONSIGNEENAME" property="consigneename" jdbcType="VARCHAR" /> | ||
19 | + <result column="CONSIGNEEADDRESS" property="consigneeaddress" jdbcType="VARCHAR" /> | ||
20 | + <result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" /> | ||
21 | + <result column="ORIGINMANIFESTMASTERAUTOID" property="originmanifestmasterautoid" jdbcType="VARCHAR" /> | ||
22 | + <result column="CUSTOMSSTATUS" property="customsstatus" jdbcType="VARCHAR" /> | ||
23 | + <result column="STATUS" property="status" jdbcType="VARCHAR" /> | ||
24 | + <result column="RECEIPTION" property="receiption" jdbcType="VARCHAR" /> | ||
25 | + <result column="ORIGINATINGSTATION_BILL" property="originatingstationBill" jdbcType="VARCHAR" /> | ||
26 | + <result column="DESTINATIONSTATION_BILL" property="destinationstationBill" jdbcType="VARCHAR" /> | ||
27 | + <result column="SHIPPER_CODE" property="shipperCode" jdbcType="VARCHAR" /> | ||
28 | + <result column="SHIPPER_COUNTRYCODE" property="shipperCountrycode" jdbcType="VARCHAR" /> | ||
29 | + <result column="SHIPPER_PHONE" property="shipperPhone" jdbcType="VARCHAR" /> | ||
30 | + <result column="SHIPPER_FAX" property="shipperFax" jdbcType="VARCHAR" /> | ||
31 | + <result column="CONSIGNEE_CODE" property="consigneeCode" jdbcType="VARCHAR" /> | ||
32 | + <result column="CONSIGNEE_COUNTRYCODE" property="consigneeCountrycode" jdbcType="VARCHAR" /> | ||
33 | + <result column="CONSIGNEE_FAX" property="consigneeFax" jdbcType="VARCHAR" /> | ||
34 | + <result column="SPECIFIC_CONSIGNEENAME" property="specificConsigneename" jdbcType="VARCHAR" /> | ||
35 | + <result column="SPECIFIC_CONSIGNEE_PHONE" property="specificConsigneePhone" jdbcType="VARCHAR" /> | ||
36 | + <result column="CONSIGNEE_PHONE" property="consigneePhone" jdbcType="VARCHAR" /> | ||
37 | + </resultMap> | ||
38 | + <insert id="insert" parameterType="com.tianbo.analysis.model.Originmanifestsecondary" > | ||
39 | + insert into ORIGINMANIFESTSECONDARY (AUTOID, WAYBILLNOMASTER, WAYBILLNOSECONDARY, | ||
40 | + WEIGHT, PIECE, MANIFESTPIECE, | ||
41 | + MANIFESTWEIGHT, PRODUCTNAME, PAYMODE, | ||
42 | + SPECIALGOODSCODE, CUSTOMSCODE, SHIPPERNAME, | ||
43 | + SHIPPERADDRESS, CONSIGNEENAME, CONSIGNEEADDRESS, | ||
44 | + CREATEDATE, ORIGINMANIFESTMASTERAUTOID, | ||
45 | + CUSTOMSSTATUS, STATUS, RECEIPTION, | ||
46 | + ORIGINATINGSTATION_BILL, DESTINATIONSTATION_BILL, | ||
47 | + SHIPPER_CODE, SHIPPER_COUNTRYCODE, SHIPPER_PHONE, | ||
48 | + SHIPPER_FAX, CONSIGNEE_CODE, CONSIGNEE_COUNTRYCODE, | ||
49 | + CONSIGNEE_FAX, SPECIFIC_CONSIGNEENAME, SPECIFIC_CONSIGNEE_PHONE, | ||
50 | + CONSIGNEE_PHONE) | ||
51 | + values (#{autoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{waybillnosecondary,jdbcType=VARCHAR}, | ||
52 | + #{weight,jdbcType=VARCHAR}, #{piece,jdbcType=VARCHAR}, #{manifestpiece,jdbcType=VARCHAR}, | ||
53 | + #{manifestweight,jdbcType=VARCHAR}, #{productname,jdbcType=VARCHAR}, #{paymode,jdbcType=VARCHAR}, | ||
54 | + #{specialgoodscode,jdbcType=VARCHAR}, #{customscode,jdbcType=VARCHAR}, #{shippername,jdbcType=VARCHAR}, | ||
55 | + #{shipperaddress,jdbcType=VARCHAR}, #{consigneename,jdbcType=VARCHAR}, #{consigneeaddress,jdbcType=VARCHAR}, | ||
56 | + #{createdate,jdbcType=TIMESTAMP}, #{originmanifestmasterautoid,jdbcType=VARCHAR}, | ||
57 | + #{customsstatus,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{receiption,jdbcType=VARCHAR}, | ||
58 | + #{originatingstationBill,jdbcType=VARCHAR}, #{destinationstationBill,jdbcType=VARCHAR}, | ||
59 | + #{shipperCode,jdbcType=VARCHAR}, #{shipperCountrycode,jdbcType=VARCHAR}, #{shipperPhone,jdbcType=VARCHAR}, | ||
60 | + #{shipperFax,jdbcType=VARCHAR}, #{consigneeCode,jdbcType=VARCHAR}, #{consigneeCountrycode,jdbcType=VARCHAR}, | ||
61 | + #{consigneeFax,jdbcType=VARCHAR}, #{specificConsigneename,jdbcType=VARCHAR}, #{specificConsigneePhone,jdbcType=VARCHAR}, | ||
62 | + #{consigneePhone,jdbcType=VARCHAR}) | ||
63 | + </insert> | ||
64 | + <insert id="insertSelective" parameterType="com.tianbo.analysis.model.Originmanifestsecondary" > | ||
65 | + insert into ORIGINMANIFESTSECONDARY | ||
66 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
67 | + <if test="autoid != null" > | ||
68 | + AUTOID, | ||
69 | + </if> | ||
70 | + <if test="waybillnomaster != null" > | ||
71 | + WAYBILLNOMASTER, | ||
72 | + </if> | ||
73 | + <if test="waybillnosecondary != null" > | ||
74 | + WAYBILLNOSECONDARY, | ||
75 | + </if> | ||
76 | + <if test="weight != null" > | ||
77 | + WEIGHT, | ||
78 | + </if> | ||
79 | + <if test="piece != null" > | ||
80 | + PIECE, | ||
81 | + </if> | ||
82 | + <if test="manifestpiece != null" > | ||
83 | + MANIFESTPIECE, | ||
84 | + </if> | ||
85 | + <if test="manifestweight != null" > | ||
86 | + MANIFESTWEIGHT, | ||
87 | + </if> | ||
88 | + <if test="productname != null" > | ||
89 | + PRODUCTNAME, | ||
90 | + </if> | ||
91 | + <if test="paymode != null" > | ||
92 | + PAYMODE, | ||
93 | + </if> | ||
94 | + <if test="specialgoodscode != null" > | ||
95 | + SPECIALGOODSCODE, | ||
96 | + </if> | ||
97 | + <if test="customscode != null" > | ||
98 | + CUSTOMSCODE, | ||
99 | + </if> | ||
100 | + <if test="shippername != null" > | ||
101 | + SHIPPERNAME, | ||
102 | + </if> | ||
103 | + <if test="shipperaddress != null" > | ||
104 | + SHIPPERADDRESS, | ||
105 | + </if> | ||
106 | + <if test="consigneename != null" > | ||
107 | + CONSIGNEENAME, | ||
108 | + </if> | ||
109 | + <if test="consigneeaddress != null" > | ||
110 | + CONSIGNEEADDRESS, | ||
111 | + </if> | ||
112 | + <if test="createdate != null" > | ||
113 | + CREATEDATE, | ||
114 | + </if> | ||
115 | + <if test="originmanifestmasterautoid != null" > | ||
116 | + ORIGINMANIFESTMASTERAUTOID, | ||
117 | + </if> | ||
118 | + <if test="customsstatus != null" > | ||
119 | + CUSTOMSSTATUS, | ||
120 | + </if> | ||
121 | + <if test="status != null" > | ||
122 | + STATUS, | ||
123 | + </if> | ||
124 | + <if test="receiption != null" > | ||
125 | + RECEIPTION, | ||
126 | + </if> | ||
127 | + <if test="originatingstationBill != null" > | ||
128 | + ORIGINATINGSTATION_BILL, | ||
129 | + </if> | ||
130 | + <if test="destinationstationBill != null" > | ||
131 | + DESTINATIONSTATION_BILL, | ||
132 | + </if> | ||
133 | + <if test="shipperCode != null" > | ||
134 | + SHIPPER_CODE, | ||
135 | + </if> | ||
136 | + <if test="shipperCountrycode != null" > | ||
137 | + SHIPPER_COUNTRYCODE, | ||
138 | + </if> | ||
139 | + <if test="shipperPhone != null" > | ||
140 | + SHIPPER_PHONE, | ||
141 | + </if> | ||
142 | + <if test="shipperFax != null" > | ||
143 | + SHIPPER_FAX, | ||
144 | + </if> | ||
145 | + <if test="consigneeCode != null" > | ||
146 | + CONSIGNEE_CODE, | ||
147 | + </if> | ||
148 | + <if test="consigneeCountrycode != null" > | ||
149 | + CONSIGNEE_COUNTRYCODE, | ||
150 | + </if> | ||
151 | + <if test="consigneeFax != null" > | ||
152 | + CONSIGNEE_FAX, | ||
153 | + </if> | ||
154 | + <if test="specificConsigneename != null" > | ||
155 | + SPECIFIC_CONSIGNEENAME, | ||
156 | + </if> | ||
157 | + <if test="specificConsigneePhone != null" > | ||
158 | + SPECIFIC_CONSIGNEE_PHONE, | ||
159 | + </if> | ||
160 | + <if test="consigneePhone != null" > | ||
161 | + CONSIGNEE_PHONE, | ||
162 | + </if> | ||
163 | + </trim> | ||
164 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
165 | + <if test="autoid != null" > | ||
166 | + #{autoid,jdbcType=VARCHAR}, | ||
167 | + </if> | ||
168 | + <if test="waybillnomaster != null" > | ||
169 | + #{waybillnomaster,jdbcType=VARCHAR}, | ||
170 | + </if> | ||
171 | + <if test="waybillnosecondary != null" > | ||
172 | + #{waybillnosecondary,jdbcType=VARCHAR}, | ||
173 | + </if> | ||
174 | + <if test="weight != null" > | ||
175 | + #{weight,jdbcType=VARCHAR}, | ||
176 | + </if> | ||
177 | + <if test="piece != null" > | ||
178 | + #{piece,jdbcType=VARCHAR}, | ||
179 | + </if> | ||
180 | + <if test="manifestpiece != null" > | ||
181 | + #{manifestpiece,jdbcType=VARCHAR}, | ||
182 | + </if> | ||
183 | + <if test="manifestweight != null" > | ||
184 | + #{manifestweight,jdbcType=VARCHAR}, | ||
185 | + </if> | ||
186 | + <if test="productname != null" > | ||
187 | + #{productname,jdbcType=VARCHAR}, | ||
188 | + </if> | ||
189 | + <if test="paymode != null" > | ||
190 | + #{paymode,jdbcType=VARCHAR}, | ||
191 | + </if> | ||
192 | + <if test="specialgoodscode != null" > | ||
193 | + #{specialgoodscode,jdbcType=VARCHAR}, | ||
194 | + </if> | ||
195 | + <if test="customscode != null" > | ||
196 | + #{customscode,jdbcType=VARCHAR}, | ||
197 | + </if> | ||
198 | + <if test="shippername != null" > | ||
199 | + #{shippername,jdbcType=VARCHAR}, | ||
200 | + </if> | ||
201 | + <if test="shipperaddress != null" > | ||
202 | + #{shipperaddress,jdbcType=VARCHAR}, | ||
203 | + </if> | ||
204 | + <if test="consigneename != null" > | ||
205 | + #{consigneename,jdbcType=VARCHAR}, | ||
206 | + </if> | ||
207 | + <if test="consigneeaddress != null" > | ||
208 | + #{consigneeaddress,jdbcType=VARCHAR}, | ||
209 | + </if> | ||
210 | + <if test="createdate != null" > | ||
211 | + #{createdate,jdbcType=TIMESTAMP}, | ||
212 | + </if> | ||
213 | + <if test="originmanifestmasterautoid != null" > | ||
214 | + #{originmanifestmasterautoid,jdbcType=VARCHAR}, | ||
215 | + </if> | ||
216 | + <if test="customsstatus != null" > | ||
217 | + #{customsstatus,jdbcType=VARCHAR}, | ||
218 | + </if> | ||
219 | + <if test="status != null" > | ||
220 | + #{status,jdbcType=VARCHAR}, | ||
221 | + </if> | ||
222 | + <if test="receiption != null" > | ||
223 | + #{receiption,jdbcType=VARCHAR}, | ||
224 | + </if> | ||
225 | + <if test="originatingstationBill != null" > | ||
226 | + #{originatingstationBill,jdbcType=VARCHAR}, | ||
227 | + </if> | ||
228 | + <if test="destinationstationBill != null" > | ||
229 | + #{destinationstationBill,jdbcType=VARCHAR}, | ||
230 | + </if> | ||
231 | + <if test="shipperCode != null" > | ||
232 | + #{shipperCode,jdbcType=VARCHAR}, | ||
233 | + </if> | ||
234 | + <if test="shipperCountrycode != null" > | ||
235 | + #{shipperCountrycode,jdbcType=VARCHAR}, | ||
236 | + </if> | ||
237 | + <if test="shipperPhone != null" > | ||
238 | + #{shipperPhone,jdbcType=VARCHAR}, | ||
239 | + </if> | ||
240 | + <if test="shipperFax != null" > | ||
241 | + #{shipperFax,jdbcType=VARCHAR}, | ||
242 | + </if> | ||
243 | + <if test="consigneeCode != null" > | ||
244 | + #{consigneeCode,jdbcType=VARCHAR}, | ||
245 | + </if> | ||
246 | + <if test="consigneeCountrycode != null" > | ||
247 | + #{consigneeCountrycode,jdbcType=VARCHAR}, | ||
248 | + </if> | ||
249 | + <if test="consigneeFax != null" > | ||
250 | + #{consigneeFax,jdbcType=VARCHAR}, | ||
251 | + </if> | ||
252 | + <if test="specificConsigneename != null" > | ||
253 | + #{specificConsigneename,jdbcType=VARCHAR}, | ||
254 | + </if> | ||
255 | + <if test="specificConsigneePhone != null" > | ||
256 | + #{specificConsigneePhone,jdbcType=VARCHAR}, | ||
257 | + </if> | ||
258 | + <if test="consigneePhone != null" > | ||
259 | + #{consigneePhone,jdbcType=VARCHAR}, | ||
260 | + </if> | ||
261 | + </trim> | ||
262 | + </insert> | ||
263 | + | ||
264 | + <update id="updateRECEIPTION" parameterType="com.tianbo.analysis.model.Originmanifestsecondary" > | ||
265 | + UPDATE ORIGINMANIFESTSECONDARY | ||
266 | + SET RECEIPTION= #{receiption,jdbcType=VARCHAR} | ||
267 | + WHERE WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR} | ||
268 | + AND WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR} | ||
269 | + </update> | ||
270 | + | ||
271 | + <select id="selectAutoIdByawbAawbH" parameterType="com.tianbo.analysis.model.Originmanifestsecondary" resultType="com.tianbo.analysis.model.Originmanifestsecondary"> | ||
272 | + SELECT AUTOID | ||
273 | + FROM ORIGINMANIFESTSECONDARY | ||
274 | + WHERE | ||
275 | + WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR} AND WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR} | ||
276 | + </select> | ||
277 | +</mapper> |
-
请 注册 或 登录 后发表评论