正在显示
17 个修改的文件
包含
3 行增加
和
1983 行删除
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | web: | 2 | web: |
3 | upload-path: upload/ | 3 | upload-path: upload/ |
4 | server: | 4 | server: |
5 | - port: 10001 | 5 | + port: 10002 |
6 | servlet: | 6 | servlet: |
7 | context-path: ${SERVER_CONTEXTPATH:} | 7 | context-path: ${SERVER_CONTEXTPATH:} |
8 | spring: | 8 | spring: |
@@ -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: customAnalysisReception |
20 | 20 | ||
21 | jackson: | 21 | jackson: |
22 | serialization: | 22 | serialization: |
1 | -package com.tianbo.analysis.controller; | ||
2 | - | ||
3 | -import com.tianbo.analysis.dao.CUSTOMSMESSAGEMapper; | ||
4 | -import com.tianbo.analysis.dao.ORIGINMANIFESTMASTERMapper; | ||
5 | -import com.tianbo.analysis.model.CUSTOMSMESSAGE; | ||
6 | -import com.tianbo.analysis.model.ResultJson; | ||
7 | -import org.springframework.beans.factory.annotation.Autowired; | ||
8 | -import org.springframework.web.bind.annotation.PostMapping; | ||
9 | -import org.springframework.web.bind.annotation.RequestMapping; | ||
10 | -import org.springframework.web.bind.annotation.RequestParam; | ||
11 | -import org.springframework.web.bind.annotation.RestController; | ||
12 | - | ||
13 | -import java.util.HashMap; | ||
14 | -import java.util.List; | ||
15 | - | ||
16 | -@RestController | ||
17 | -@RequestMapping("/flight") | ||
18 | -public class FlightController { | ||
19 | - | ||
20 | - @Autowired | ||
21 | - ORIGINMANIFESTMASTERMapper originmanifestmasterMapper; | ||
22 | - | ||
23 | - @Autowired | ||
24 | - CUSTOMSMESSAGEMapper customsmessageMapper; | ||
25 | - | ||
26 | - /** | ||
27 | - * 修改航班日期 | ||
28 | - * @param currDate 修改前日期 | ||
29 | - * @param flightNo 航班号 | ||
30 | - * @param setDate 修改后日期 | ||
31 | - */ | ||
32 | - @PostMapping("/changeDate") | ||
33 | - public ResultJson changeFlightDate(@RequestParam(value = "currDate",required = true) String currDate, | ||
34 | - @RequestParam(value = "flightNo",required = true) String flightNo, | ||
35 | - @RequestParam(value = "setDate", required = true) String setDate | ||
36 | - ){ | ||
37 | - HashMap<String ,String> map = new HashMap(); | ||
38 | - map.put("currDate",currDate); | ||
39 | - map.put("flightNo",flightNo); | ||
40 | - map.put("setDate",setDate); | ||
41 | - int i = originmanifestmasterMapper.changeFlightDate(map); | ||
42 | - if (i>0) | ||
43 | - { | ||
44 | - return new ResultJson("200","更新成功",i); | ||
45 | -// return "航班日期更新成功"+i; | ||
46 | - } | ||
47 | - return new ResultJson("500","更新失败或航班信息不正确",i); | ||
48 | - } | ||
49 | - | ||
50 | - | ||
51 | - /** | ||
52 | - * 查询运单的回执状态,目前能查到出港运单的所有回执状态,进港不行 | ||
53 | - * @param waybillno | ||
54 | - * @return 返回 业务类型、主单号、分单号、回执内容 | ||
55 | - */ | ||
56 | - @PostMapping("/customres") | ||
57 | - public ResultJson getCustomResponse(@RequestParam(value = "waybillno",required = true) String waybillno){ | ||
58 | - waybillno = waybillno.replace("-",""); | ||
59 | - List<CUSTOMSMESSAGE> customsmessageList = customsmessageMapper.selectCustomResponse(waybillno); | ||
60 | - return new ResultJson(customsmessageList); | ||
61 | - } | ||
62 | - | ||
63 | - /** | ||
64 | - * 查询运单的回执状态,目前能查到出港运单 发送海关生成报文的messageId | ||
65 | - * @param waybillno | ||
66 | - * @return 返回 messageId,业务类型、主单号、分单号、回执内容 | ||
67 | - */ | ||
68 | - @PostMapping("/getmessageid") | ||
69 | - public ResultJson getCustomMessageId(@RequestParam(value = "waybillno",required = true) String waybillno){ | ||
70 | - List<CUSTOMSMESSAGE> customsmessageList = customsmessageMapper.selectCustomId(waybillno); | ||
71 | - return new ResultJson(customsmessageList); | ||
72 | - } | ||
73 | -} |
1 | -package com.tianbo.analysis.dao; | ||
2 | - | ||
3 | -import com.tianbo.analysis.model.CUSTOMSMESSAGE; | ||
4 | -import com.tianbo.analysis.model.CUSTOMSMESSAGEWithBLOBs; | ||
5 | - | ||
6 | -import java.util.List; | ||
7 | - | ||
8 | -public interface CUSTOMSMESSAGEMapper { | ||
9 | - int insert(CUSTOMSMESSAGEWithBLOBs record); | ||
10 | - | ||
11 | - int insertSelective(CUSTOMSMESSAGEWithBLOBs record); | ||
12 | - | ||
13 | - List<CUSTOMSMESSAGE> selectCustomResponse(String waybillMasterNo); | ||
14 | - | ||
15 | - List<CUSTOMSMESSAGE> selectCustomId(String waybillMasterNo); | ||
16 | -} |
1 | -package com.tianbo.analysis.dao; | ||
2 | - | ||
3 | -import com.tianbo.analysis.model.ORIGINMANIFESTMASTER; | ||
4 | - | ||
5 | -import java.util.HashMap; | ||
6 | - | ||
7 | -public interface ORIGINMANIFESTMASTERMapper { | ||
8 | - int insert(ORIGINMANIFESTMASTER record); | ||
9 | - | ||
10 | - int insertSelective(ORIGINMANIFESTMASTER record); | ||
11 | - | ||
12 | - int changeFlightDate(HashMap map); | ||
13 | -} |
1 | -package com.tianbo.analysis.dao; | ||
2 | - | ||
3 | -import com.tianbo.analysis.model.T_ETL_MESSAGE; | ||
4 | - | ||
5 | -import java.math.BigDecimal; | ||
6 | - | ||
7 | -public interface T_ETL_MESSAGEMapper { | ||
8 | - int deleteByPrimaryKey(BigDecimal fid); | ||
9 | - | ||
10 | - int insert(T_ETL_MESSAGE record); | ||
11 | - | ||
12 | - int insertSelective(T_ETL_MESSAGE record); | ||
13 | - | ||
14 | - T_ETL_MESSAGE selectByPrimaryKey(BigDecimal fid); | ||
15 | - | ||
16 | - int updateByPrimaryKeySelective(T_ETL_MESSAGE record); | ||
17 | - | ||
18 | - int updateByPrimaryKeyWithBLOBs(T_ETL_MESSAGE record); | ||
19 | - | ||
20 | - int updateByPrimaryKey(T_ETL_MESSAGE record); | ||
21 | -} |
1 | -package com.tianbo.analysis.handle; | ||
2 | - | ||
3 | -import com.tianbo.analysis.model.T_ETL_MESSAGE; | ||
4 | -import com.tianbo.analysis.service.T_ETL_MESSAGEService; | ||
5 | -import com.tianbo.util.Date.DateUtil; | ||
6 | -import com.tianbo.util.IO.FileTool; | ||
7 | -import com.tianbo.util.XML.XML2ENTITY; | ||
8 | -import org.dom4j.Document; | ||
9 | -import org.dom4j.DocumentHelper; | ||
10 | -import org.springframework.beans.factory.annotation.Autowired; | ||
11 | -import org.springframework.stereotype.Component; | ||
12 | - | ||
13 | -import javax.annotation.PostConstruct; | ||
14 | -import java.util.Date; | ||
15 | -import java.util.Map; | ||
16 | - | ||
17 | -/** | ||
18 | - * 存储IMF过来的原始报文到数据仓库T_ELT_MESSAGE原始报文表中 | ||
19 | - */ | ||
20 | -@Component | ||
21 | -public class IMFSaveHandle { | ||
22 | - | ||
23 | - @Autowired | ||
24 | - protected T_ETL_MESSAGEService messageService; | ||
25 | - | ||
26 | - private static IMFSaveHandle saveHandle; | ||
27 | - | ||
28 | - | ||
29 | - @PostConstruct | ||
30 | - public void init(){ | ||
31 | - saveHandle = this; | ||
32 | - saveHandle.messageService = this.messageService; | ||
33 | - } | ||
34 | - | ||
35 | - public void handle(String xmlmessage){ | ||
36 | - try { | ||
37 | - //有人发报文头部不按规范发 | ||
38 | -// xmlmessage = xmlmessage.replace("<Msg>","<MSG>") | ||
39 | -// .replace("<msg>","<MSG>") | ||
40 | -// .replace("</Msg>","</MSG>") | ||
41 | -// .replace("</msg>","</MSG>"); | ||
42 | - | ||
43 | - | ||
44 | - Document document = DocumentHelper.parseText(xmlmessage); | ||
45 | - XML2ENTITY xml2ENTITY =new XML2ENTITY(); | ||
46 | - Map xmlMap = xml2ENTITY.Dom2Map(document); | ||
47 | - | ||
48 | - Map meta = (Map) xmlMap.get("META"); | ||
49 | - | ||
50 | - T_ETL_MESSAGE message = new T_ETL_MESSAGE(); | ||
51 | - | ||
52 | - String sndrm = meta.get("SNDR").toString(); | ||
53 | - String stypm = meta.get("STYP").toString(); | ||
54 | - | ||
55 | - | ||
56 | - | ||
57 | - if ("TXD".equals(sndrm)){ | ||
58 | - //读取配置文件的需要本地存储报文的节点 | ||
59 | - String saveStyp= FileTool.readProperties("saveStyp"); | ||
60 | - String[] styps = saveStyp.split(","); | ||
61 | - for (String item: styps) { | ||
62 | - if (item.equals(stypm)){ | ||
63 | - //存储至备份目录 | ||
64 | - FileTool.writeFileToBak(xmlmessage); | ||
65 | - } | ||
66 | - } | ||
67 | - } | ||
68 | - | ||
69 | - String typem = meta.get("TYPE").toString(); | ||
70 | - String rcvr = XML2ENTITY.getMap(meta,"RCVR").toString(); | ||
71 | - String ddtm = meta.get("DDTM").toString(); | ||
72 | - String seqn = meta.get("SEQN").toString(); | ||
73 | - | ||
74 | - | ||
75 | - | ||
76 | - | ||
77 | - message.setSndr(sndrm); | ||
78 | - message.setRcvr(rcvr); | ||
79 | - message.setType(typem); | ||
80 | - message.setStyp(stypm); | ||
81 | - message.setSeqn(seqn); | ||
82 | - | ||
83 | - | ||
84 | - Date ddtmDate = DateUtil.formatByyyyyMMddHHmmss(ddtm); | ||
85 | - message.setDdtm(ddtmDate); | ||
86 | - message.setSntm(ddtmDate); | ||
87 | - message.setOper("ALL"); | ||
88 | - message.setAppid("W"); | ||
89 | - message.setEtltim(new Date()); | ||
90 | - | ||
91 | - | ||
92 | - | ||
93 | - message.setContent(xmlmessage); | ||
94 | - | ||
95 | - int i = saveHandle.messageService.insertSelective(message); | ||
96 | - }catch (Exception e){ | ||
97 | - FileTool.writeFile("err",e.toString()+"\n"+xmlmessage,false); | ||
98 | - FileTool.writeFile("errxml",xmlmessage,false); | ||
99 | - } | ||
100 | - | ||
101 | - | ||
102 | - | ||
103 | - } | ||
104 | -} |
1 | -package com.tianbo.analysis.model; | ||
2 | - | ||
3 | -import java.math.BigDecimal; | ||
4 | -import java.util.Date; | ||
5 | - | ||
6 | -public class CUSTOMSMESSAGE { | ||
7 | - private String autoid; | ||
8 | - | ||
9 | - private String messageid; | ||
10 | - | ||
11 | - private String messagetype; | ||
12 | - | ||
13 | - private String messagestatus; | ||
14 | - | ||
15 | - private Date sendtime; | ||
16 | - | ||
17 | - private Date receivetime; | ||
18 | - | ||
19 | - private String objectid; | ||
20 | - | ||
21 | - private String flightno; | ||
22 | - | ||
23 | - private Date flightdate; | ||
24 | - | ||
25 | - private String masterautoid; | ||
26 | - | ||
27 | - private String waybillnomaster; | ||
28 | - | ||
29 | - private String secondaryautoid; | ||
30 | - | ||
31 | - private String waybillnosecondary; | ||
32 | - | ||
33 | - private BigDecimal pcs; | ||
34 | - | ||
35 | - private BigDecimal wt; | ||
36 | - | ||
37 | - private String responsecode; | ||
38 | - | ||
39 | - private String responsetext; | ||
40 | - | ||
41 | - private Date createtime; | ||
42 | - | ||
43 | - public String getAutoid() { | ||
44 | - return autoid; | ||
45 | - } | ||
46 | - | ||
47 | - public void setAutoid(String autoid) { | ||
48 | - this.autoid = autoid == null ? null : autoid.trim(); | ||
49 | - } | ||
50 | - | ||
51 | - public String getMessageid() { | ||
52 | - return messageid; | ||
53 | - } | ||
54 | - | ||
55 | - public void setMessageid(String messageid) { | ||
56 | - this.messageid = messageid == null ? null : messageid.trim(); | ||
57 | - } | ||
58 | - | ||
59 | - public String getMessagetype() { | ||
60 | - return messagetype; | ||
61 | - } | ||
62 | - | ||
63 | - public void setMessagetype(String messagetype) { | ||
64 | - this.messagetype = messagetype == null ? null : messagetype.trim(); | ||
65 | - } | ||
66 | - | ||
67 | - public String getMessagestatus() { | ||
68 | - return messagestatus; | ||
69 | - } | ||
70 | - | ||
71 | - public void setMessagestatus(String messagestatus) { | ||
72 | - this.messagestatus = messagestatus == null ? null : messagestatus.trim(); | ||
73 | - } | ||
74 | - | ||
75 | - public Date getSendtime() { | ||
76 | - return sendtime; | ||
77 | - } | ||
78 | - | ||
79 | - public void setSendtime(Date sendtime) { | ||
80 | - this.sendtime = sendtime; | ||
81 | - } | ||
82 | - | ||
83 | - public Date getReceivetime() { | ||
84 | - return receivetime; | ||
85 | - } | ||
86 | - | ||
87 | - public void setReceivetime(Date receivetime) { | ||
88 | - this.receivetime = receivetime; | ||
89 | - } | ||
90 | - | ||
91 | - public String getObjectid() { | ||
92 | - return objectid; | ||
93 | - } | ||
94 | - | ||
95 | - public void setObjectid(String objectid) { | ||
96 | - this.objectid = objectid == null ? null : objectid.trim(); | ||
97 | - } | ||
98 | - | ||
99 | - public String getFlightno() { | ||
100 | - return flightno; | ||
101 | - } | ||
102 | - | ||
103 | - public void setFlightno(String flightno) { | ||
104 | - this.flightno = flightno == null ? null : flightno.trim(); | ||
105 | - } | ||
106 | - | ||
107 | - public Date getFlightdate() { | ||
108 | - return flightdate; | ||
109 | - } | ||
110 | - | ||
111 | - public void setFlightdate(Date flightdate) { | ||
112 | - this.flightdate = flightdate; | ||
113 | - } | ||
114 | - | ||
115 | - public String getMasterautoid() { | ||
116 | - return masterautoid; | ||
117 | - } | ||
118 | - | ||
119 | - public void setMasterautoid(String masterautoid) { | ||
120 | - this.masterautoid = masterautoid == null ? null : masterautoid.trim(); | ||
121 | - } | ||
122 | - | ||
123 | - public String getWaybillnomaster() { | ||
124 | - return waybillnomaster; | ||
125 | - } | ||
126 | - | ||
127 | - public void setWaybillnomaster(String waybillnomaster) { | ||
128 | - this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim(); | ||
129 | - } | ||
130 | - | ||
131 | - public String getSecondaryautoid() { | ||
132 | - return secondaryautoid; | ||
133 | - } | ||
134 | - | ||
135 | - public void setSecondaryautoid(String secondaryautoid) { | ||
136 | - this.secondaryautoid = secondaryautoid == null ? null : secondaryautoid.trim(); | ||
137 | - } | ||
138 | - | ||
139 | - public String getWaybillnosecondary() { | ||
140 | - return waybillnosecondary; | ||
141 | - } | ||
142 | - | ||
143 | - public void setWaybillnosecondary(String waybillnosecondary) { | ||
144 | - this.waybillnosecondary = waybillnosecondary == null ? null : waybillnosecondary.trim(); | ||
145 | - } | ||
146 | - | ||
147 | - public BigDecimal getPcs() { | ||
148 | - return pcs; | ||
149 | - } | ||
150 | - | ||
151 | - public void setPcs(BigDecimal pcs) { | ||
152 | - this.pcs = pcs; | ||
153 | - } | ||
154 | - | ||
155 | - public BigDecimal getWt() { | ||
156 | - return wt; | ||
157 | - } | ||
158 | - | ||
159 | - public void setWt(BigDecimal wt) { | ||
160 | - this.wt = wt; | ||
161 | - } | ||
162 | - | ||
163 | - public String getResponsecode() { | ||
164 | - return responsecode; | ||
165 | - } | ||
166 | - | ||
167 | - public void setResponsecode(String responsecode) { | ||
168 | - this.responsecode = responsecode == null ? null : responsecode.trim(); | ||
169 | - } | ||
170 | - | ||
171 | - public String getResponsetext() { | ||
172 | - return responsetext; | ||
173 | - } | ||
174 | - | ||
175 | - public void setResponsetext(String responsetext) { | ||
176 | - this.responsetext = responsetext == null ? null : responsetext.trim(); | ||
177 | - } | ||
178 | - | ||
179 | - public Date getCreatetime() { | ||
180 | - return createtime; | ||
181 | - } | ||
182 | - | ||
183 | - public void setCreatetime(Date createtime) { | ||
184 | - this.createtime = createtime; | ||
185 | - } | ||
186 | -} |
1 | -package com.tianbo.analysis.model; | ||
2 | - | ||
3 | -public class CUSTOMSMESSAGEWithBLOBs extends CUSTOMSMESSAGE { | ||
4 | - private String messagecontent; | ||
5 | - | ||
6 | - private String receivecontent; | ||
7 | - | ||
8 | - public String getMessagecontent() { | ||
9 | - return messagecontent; | ||
10 | - } | ||
11 | - | ||
12 | - public void setMessagecontent(String messagecontent) { | ||
13 | - this.messagecontent = messagecontent == null ? null : messagecontent.trim(); | ||
14 | - } | ||
15 | - | ||
16 | - public String getReceivecontent() { | ||
17 | - return receivecontent; | ||
18 | - } | ||
19 | - | ||
20 | - public void setReceivecontent(String receivecontent) { | ||
21 | - this.receivecontent = receivecontent == null ? null : receivecontent.trim(); | ||
22 | - } | ||
23 | -} |
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.math.BigDecimal; | ||
4 | -import java.util.Date; | ||
5 | - | ||
6 | -public class T_ETL_MESSAGE { | ||
7 | - private BigDecimal fid; | ||
8 | - | ||
9 | - private String oper; | ||
10 | - | ||
11 | - private Date sntm; | ||
12 | - | ||
13 | - private String sndr; | ||
14 | - | ||
15 | - private String rcvr; | ||
16 | - | ||
17 | - private String seqn; | ||
18 | - | ||
19 | - private Date ddtm; | ||
20 | - | ||
21 | - private String type; | ||
22 | - | ||
23 | - private String styp; | ||
24 | - | ||
25 | - private String transid; | ||
26 | - | ||
27 | - private String remark; | ||
28 | - | ||
29 | - private Date outtm; | ||
30 | - | ||
31 | - private BigDecimal outflag; | ||
32 | - | ||
33 | - private Date etltim; | ||
34 | - | ||
35 | - private BigDecimal etlflag; | ||
36 | - | ||
37 | - private Date errtm; | ||
38 | - | ||
39 | - private BigDecimal errflag; | ||
40 | - | ||
41 | - private String errlog; | ||
42 | - | ||
43 | - private String appid; | ||
44 | - | ||
45 | - private String content; | ||
46 | - | ||
47 | - public BigDecimal getFid() { | ||
48 | - return fid; | ||
49 | - } | ||
50 | - | ||
51 | - public void setFid(BigDecimal fid) { | ||
52 | - this.fid = fid; | ||
53 | - } | ||
54 | - | ||
55 | - public String getOper() { | ||
56 | - return oper; | ||
57 | - } | ||
58 | - | ||
59 | - public void setOper(String oper) { | ||
60 | - this.oper = oper == null ? null : oper.trim(); | ||
61 | - } | ||
62 | - | ||
63 | - public Date getSntm() { | ||
64 | - return sntm; | ||
65 | - } | ||
66 | - | ||
67 | - public void setSntm(Date sntm) { | ||
68 | - this.sntm = sntm; | ||
69 | - } | ||
70 | - | ||
71 | - public String getSndr() { | ||
72 | - return sndr; | ||
73 | - } | ||
74 | - | ||
75 | - public void setSndr(String sndr) { | ||
76 | - this.sndr = sndr == null ? null : sndr.trim(); | ||
77 | - } | ||
78 | - | ||
79 | - public String getRcvr() { | ||
80 | - return rcvr; | ||
81 | - } | ||
82 | - | ||
83 | - public void setRcvr(String rcvr) { | ||
84 | - this.rcvr = rcvr == null ? null : rcvr.trim(); | ||
85 | - } | ||
86 | - | ||
87 | - public String getSeqn() { | ||
88 | - return seqn; | ||
89 | - } | ||
90 | - | ||
91 | - public void setSeqn(String seqn) { | ||
92 | - this.seqn = seqn == null ? null : seqn.trim(); | ||
93 | - } | ||
94 | - | ||
95 | - public Date getDdtm() { | ||
96 | - return ddtm; | ||
97 | - } | ||
98 | - | ||
99 | - public void setDdtm(Date ddtm) { | ||
100 | - this.ddtm = ddtm; | ||
101 | - } | ||
102 | - | ||
103 | - public String getType() { | ||
104 | - return type; | ||
105 | - } | ||
106 | - | ||
107 | - public void setType(String type) { | ||
108 | - this.type = type == null ? null : type.trim(); | ||
109 | - } | ||
110 | - | ||
111 | - public String getStyp() { | ||
112 | - return styp; | ||
113 | - } | ||
114 | - | ||
115 | - public void setStyp(String styp) { | ||
116 | - this.styp = styp == null ? null : styp.trim(); | ||
117 | - } | ||
118 | - | ||
119 | - public String getTransid() { | ||
120 | - return transid; | ||
121 | - } | ||
122 | - | ||
123 | - public void setTransid(String transid) { | ||
124 | - this.transid = transid == null ? null : transid.trim(); | ||
125 | - } | ||
126 | - | ||
127 | - public String getRemark() { | ||
128 | - return remark; | ||
129 | - } | ||
130 | - | ||
131 | - public void setRemark(String remark) { | ||
132 | - this.remark = remark; | ||
133 | - } | ||
134 | - | ||
135 | - public Date getOuttm() { | ||
136 | - return outtm; | ||
137 | - } | ||
138 | - | ||
139 | - public void setOuttm(Date outtm) { | ||
140 | - this.outtm = outtm; | ||
141 | - } | ||
142 | - | ||
143 | - public BigDecimal getOutflag() { | ||
144 | - return outflag; | ||
145 | - } | ||
146 | - | ||
147 | - public void setOutflag(BigDecimal outflag) { | ||
148 | - this.outflag = outflag; | ||
149 | - } | ||
150 | - | ||
151 | - public Date getEtltim() { | ||
152 | - return etltim; | ||
153 | - } | ||
154 | - | ||
155 | - public void setEtltim(Date etltim) { | ||
156 | - this.etltim = etltim; | ||
157 | - } | ||
158 | - | ||
159 | - public BigDecimal getEtlflag() { | ||
160 | - return etlflag; | ||
161 | - } | ||
162 | - | ||
163 | - public void setEtlflag(BigDecimal etlflag) { | ||
164 | - this.etlflag = etlflag; | ||
165 | - } | ||
166 | - | ||
167 | - public Date getErrtm() { | ||
168 | - return errtm; | ||
169 | - } | ||
170 | - | ||
171 | - public void setErrtm(Date errtm) { | ||
172 | - this.errtm = errtm; | ||
173 | - } | ||
174 | - | ||
175 | - public BigDecimal getErrflag() { | ||
176 | - return errflag; | ||
177 | - } | ||
178 | - | ||
179 | - public void setErrflag(BigDecimal errflag) { | ||
180 | - this.errflag = errflag; | ||
181 | - } | ||
182 | - | ||
183 | - public String getErrlog() { | ||
184 | - return errlog; | ||
185 | - } | ||
186 | - | ||
187 | - public void setErrlog(String errlog) { | ||
188 | - this.errlog = errlog; | ||
189 | - } | ||
190 | - | ||
191 | - public String getAppid() { | ||
192 | - return appid; | ||
193 | - } | ||
194 | - | ||
195 | - public void setAppid(String appid) { | ||
196 | - this.appid = appid == null ? null : appid.trim(); | ||
197 | - } | ||
198 | - | ||
199 | - public String getContent() { | ||
200 | - return content; | ||
201 | - } | ||
202 | - | ||
203 | - public void setContent(String content) { | ||
204 | - this.content = content == null ? null : content.trim(); | ||
205 | - } | ||
206 | -} |
1 | -package com.tianbo.analysis.service.imp; | ||
2 | - | ||
3 | -import com.tianbo.analysis.dao.T_ETL_MESSAGEMapper; | ||
4 | -import com.tianbo.analysis.model.T_ETL_MESSAGE; | ||
5 | -import com.tianbo.analysis.service.T_ETL_MESSAGEService; | ||
6 | -import org.springframework.beans.factory.annotation.Autowired; | ||
7 | -import org.springframework.stereotype.Service; | ||
8 | - | ||
9 | -@Service("messageService") | ||
10 | -public class T_ETL_MESSAGEServiceImp implements T_ETL_MESSAGEService{ | ||
11 | - | ||
12 | - @Autowired | ||
13 | - private T_ETL_MESSAGEMapper messageMapper; | ||
14 | - | ||
15 | - @Override | ||
16 | - public int insert(T_ETL_MESSAGE record){ | ||
17 | - return messageMapper.insert(record); | ||
18 | - } | ||
19 | - | ||
20 | - @Override | ||
21 | - public int insertSelective(T_ETL_MESSAGE record){ | ||
22 | - return messageMapper.insertSelective(record); | ||
23 | - } | ||
24 | -} |
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.CUSTOMSMESSAGEMapper" > | ||
4 | - <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.CUSTOMSMESSAGE" > | ||
5 | - <result column="AUTOID" property="autoid" jdbcType="VARCHAR" /> | ||
6 | - <result column="MESSAGEID" property="messageid" jdbcType="VARCHAR" /> | ||
7 | - <result column="MESSAGETYPE" property="messagetype" jdbcType="VARCHAR" /> | ||
8 | - <result column="MESSAGESTATUS" property="messagestatus" jdbcType="VARCHAR" /> | ||
9 | - <result column="SENDTIME" property="sendtime" jdbcType="TIMESTAMP" /> | ||
10 | - <result column="RECEIVETIME" property="receivetime" jdbcType="TIMESTAMP" /> | ||
11 | - <result column="OBJECTID" property="objectid" jdbcType="VARCHAR" /> | ||
12 | - <result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" /> | ||
13 | - <result column="FLIGHTDATE" property="flightdate" jdbcType="TIMESTAMP" /> | ||
14 | - <result column="MASTERAUTOID" property="masterautoid" jdbcType="VARCHAR" /> | ||
15 | - <result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" /> | ||
16 | - <result column="SECONDARYAUTOID" property="secondaryautoid" jdbcType="VARCHAR" /> | ||
17 | - <result column="WAYBILLNOSECONDARY" property="waybillnosecondary" jdbcType="VARCHAR" /> | ||
18 | - <result column="PCS" property="pcs" jdbcType="DECIMAL" /> | ||
19 | - <result column="WT" property="wt" jdbcType="DECIMAL" /> | ||
20 | - <result column="RESPONSECODE" property="responsecode" jdbcType="VARCHAR" /> | ||
21 | - <result column="RESPONSETEXT" property="responsetext" jdbcType="VARCHAR" /> | ||
22 | - <result column="CREATETIME" property="createtime" jdbcType="TIMESTAMP" /> | ||
23 | - </resultMap> | ||
24 | - <resultMap id="ResultMapWithBLOBs" type="com.tianbo.analysis.model.CUSTOMSMESSAGEWithBLOBs" extends="BaseResultMap" > | ||
25 | - <result column="MESSAGECONTENT" property="messagecontent" jdbcType="CLOB" /> | ||
26 | - <result column="RECEIVECONTENT" property="receivecontent" jdbcType="CLOB" /> | ||
27 | - </resultMap> | ||
28 | - <sql id="Blob_Column_List" > | ||
29 | - MESSAGECONTENT, RECEIVECONTENT | ||
30 | - </sql> | ||
31 | - <sql id="Response_Base"> | ||
32 | - MESSAGETYPE, WAYBILLNOMASTER, WAYBILLNOSECONDARY, RESPONSETEXT | ||
33 | - </sql> | ||
34 | - <select id="selectCustomResponse" parameterType="java.lang.String" resultType="com.tianbo.analysis.model.CUSTOMSMESSAGE"> | ||
35 | - SELECT | ||
36 | - <include refid="Response_Base" /> | ||
37 | - FROM | ||
38 | - CUSTOMSMESSAGE | ||
39 | - WHERE | ||
40 | - WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR} | ||
41 | - ORDER BY MESSAGETYPE | ||
42 | - </select> | ||
43 | - <select id="selectCustomId" parameterType="java.lang.String" resultType="com.tianbo.analysis.model.CUSTOMSMESSAGE"> | ||
44 | - SELECT | ||
45 | - MESSAGEID, | ||
46 | - <include refid="Response_Base" /> | ||
47 | - FROM | ||
48 | - CUSTOMSMESSAGE | ||
49 | - WHERE | ||
50 | - WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR} | ||
51 | - ORDER BY MESSAGETYPE | ||
52 | - </select> | ||
53 | - <insert id="insert" parameterType="com.tianbo.analysis.model.CUSTOMSMESSAGEWithBLOBs" > | ||
54 | - insert into CUSTOMSMESSAGE (AUTOID, MESSAGEID, MESSAGETYPE, | ||
55 | - MESSAGESTATUS, SENDTIME, RECEIVETIME, | ||
56 | - OBJECTID, FLIGHTNO, FLIGHTDATE, | ||
57 | - MASTERAUTOID, WAYBILLNOMASTER, SECONDARYAUTOID, | ||
58 | - WAYBILLNOSECONDARY, PCS, WT, | ||
59 | - RESPONSECODE, RESPONSETEXT, CREATETIME, | ||
60 | - MESSAGECONTENT, RECEIVECONTENT) | ||
61 | - values (#{autoid,jdbcType=VARCHAR}, #{messageid,jdbcType=VARCHAR}, #{messagetype,jdbcType=VARCHAR}, | ||
62 | - #{messagestatus,jdbcType=VARCHAR}, #{sendtime,jdbcType=TIMESTAMP}, #{receivetime,jdbcType=TIMESTAMP}, | ||
63 | - #{objectid,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=TIMESTAMP}, | ||
64 | - #{masterautoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{secondaryautoid,jdbcType=VARCHAR}, | ||
65 | - #{waybillnosecondary,jdbcType=VARCHAR}, #{pcs,jdbcType=DECIMAL}, #{wt,jdbcType=DECIMAL}, | ||
66 | - #{responsecode,jdbcType=VARCHAR}, #{responsetext,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP}, | ||
67 | - #{messagecontent,jdbcType=CLOB}, #{receivecontent,jdbcType=CLOB}) | ||
68 | - </insert> | ||
69 | - <insert id="insertSelective" parameterType="com.tianbo.analysis.model.CUSTOMSMESSAGEWithBLOBs" > | ||
70 | - insert into CUSTOMSMESSAGE | ||
71 | - <trim prefix="(" suffix=")" suffixOverrides="," > | ||
72 | - <if test="autoid != null" > | ||
73 | - AUTOID, | ||
74 | - </if> | ||
75 | - <if test="messageid != null" > | ||
76 | - MESSAGEID, | ||
77 | - </if> | ||
78 | - <if test="messagetype != null" > | ||
79 | - MESSAGETYPE, | ||
80 | - </if> | ||
81 | - <if test="messagestatus != null" > | ||
82 | - MESSAGESTATUS, | ||
83 | - </if> | ||
84 | - <if test="sendtime != null" > | ||
85 | - SENDTIME, | ||
86 | - </if> | ||
87 | - <if test="receivetime != null" > | ||
88 | - RECEIVETIME, | ||
89 | - </if> | ||
90 | - <if test="objectid != null" > | ||
91 | - OBJECTID, | ||
92 | - </if> | ||
93 | - <if test="flightno != null" > | ||
94 | - FLIGHTNO, | ||
95 | - </if> | ||
96 | - <if test="flightdate != null" > | ||
97 | - FLIGHTDATE, | ||
98 | - </if> | ||
99 | - <if test="masterautoid != null" > | ||
100 | - MASTERAUTOID, | ||
101 | - </if> | ||
102 | - <if test="waybillnomaster != null" > | ||
103 | - WAYBILLNOMASTER, | ||
104 | - </if> | ||
105 | - <if test="secondaryautoid != null" > | ||
106 | - SECONDARYAUTOID, | ||
107 | - </if> | ||
108 | - <if test="waybillnosecondary != null" > | ||
109 | - WAYBILLNOSECONDARY, | ||
110 | - </if> | ||
111 | - <if test="pcs != null" > | ||
112 | - PCS, | ||
113 | - </if> | ||
114 | - <if test="wt != null" > | ||
115 | - WT, | ||
116 | - </if> | ||
117 | - <if test="responsecode != null" > | ||
118 | - RESPONSECODE, | ||
119 | - </if> | ||
120 | - <if test="responsetext != null" > | ||
121 | - RESPONSETEXT, | ||
122 | - </if> | ||
123 | - <if test="createtime != null" > | ||
124 | - CREATETIME, | ||
125 | - </if> | ||
126 | - <if test="messagecontent != null" > | ||
127 | - MESSAGECONTENT, | ||
128 | - </if> | ||
129 | - <if test="receivecontent != null" > | ||
130 | - RECEIVECONTENT, | ||
131 | - </if> | ||
132 | - </trim> | ||
133 | - <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
134 | - <if test="autoid != null" > | ||
135 | - #{autoid,jdbcType=VARCHAR}, | ||
136 | - </if> | ||
137 | - <if test="messageid != null" > | ||
138 | - #{messageid,jdbcType=VARCHAR}, | ||
139 | - </if> | ||
140 | - <if test="messagetype != null" > | ||
141 | - #{messagetype,jdbcType=VARCHAR}, | ||
142 | - </if> | ||
143 | - <if test="messagestatus != null" > | ||
144 | - #{messagestatus,jdbcType=VARCHAR}, | ||
145 | - </if> | ||
146 | - <if test="sendtime != null" > | ||
147 | - #{sendtime,jdbcType=TIMESTAMP}, | ||
148 | - </if> | ||
149 | - <if test="receivetime != null" > | ||
150 | - #{receivetime,jdbcType=TIMESTAMP}, | ||
151 | - </if> | ||
152 | - <if test="objectid != null" > | ||
153 | - #{objectid,jdbcType=VARCHAR}, | ||
154 | - </if> | ||
155 | - <if test="flightno != null" > | ||
156 | - #{flightno,jdbcType=VARCHAR}, | ||
157 | - </if> | ||
158 | - <if test="flightdate != null" > | ||
159 | - #{flightdate,jdbcType=TIMESTAMP}, | ||
160 | - </if> | ||
161 | - <if test="masterautoid != null" > | ||
162 | - #{masterautoid,jdbcType=VARCHAR}, | ||
163 | - </if> | ||
164 | - <if test="waybillnomaster != null" > | ||
165 | - #{waybillnomaster,jdbcType=VARCHAR}, | ||
166 | - </if> | ||
167 | - <if test="secondaryautoid != null" > | ||
168 | - #{secondaryautoid,jdbcType=VARCHAR}, | ||
169 | - </if> | ||
170 | - <if test="waybillnosecondary != null" > | ||
171 | - #{waybillnosecondary,jdbcType=VARCHAR}, | ||
172 | - </if> | ||
173 | - <if test="pcs != null" > | ||
174 | - #{pcs,jdbcType=DECIMAL}, | ||
175 | - </if> | ||
176 | - <if test="wt != null" > | ||
177 | - #{wt,jdbcType=DECIMAL}, | ||
178 | - </if> | ||
179 | - <if test="responsecode != null" > | ||
180 | - #{responsecode,jdbcType=VARCHAR}, | ||
181 | - </if> | ||
182 | - <if test="responsetext != null" > | ||
183 | - #{responsetext,jdbcType=VARCHAR}, | ||
184 | - </if> | ||
185 | - <if test="createtime != null" > | ||
186 | - #{createtime,jdbcType=TIMESTAMP}, | ||
187 | - </if> | ||
188 | - <if test="messagecontent != null" > | ||
189 | - #{messagecontent,jdbcType=CLOB}, | ||
190 | - </if> | ||
191 | - <if test="receivecontent != null" > | ||
192 | - #{receivecontent,jdbcType=CLOB}, | ||
193 | - </if> | ||
194 | - </trim> | ||
195 | - </insert> | ||
196 | -</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.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 | - <update id="changeFlightDate" parameterType="hashmap"> | ||
356 | - UPDATE ORIGINMANIFESTMASTER | ||
357 | - set FLIGHT_DATE = "TO_DATE"(#{setDate},'yyyy-mm-dd') | ||
358 | - WHERE | ||
359 | - FLIGHT_DATE = "TO_DATE"(#{currDate},'yyyy-mm-dd') | ||
360 | - AND FLIGHTNO=#{flightNo} | ||
361 | - </update> | ||
362 | -</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.T_ETL_MESSAGEMapper"> | ||
4 | - <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.T_ETL_MESSAGE"> | ||
5 | - <id column="FID" jdbcType="DECIMAL" property="fid" /> | ||
6 | - <result column="OPER" jdbcType="VARCHAR" property="oper" /> | ||
7 | - <result column="SNTM" jdbcType="TIMESTAMP" property="sntm" /> | ||
8 | - <result column="SNDR" jdbcType="VARCHAR" property="sndr" /> | ||
9 | - <result column="RCVR" jdbcType="VARCHAR" property="rcvr" /> | ||
10 | - <result column="SEQN" jdbcType="VARCHAR" property="seqn" /> | ||
11 | - <result column="DDTM" jdbcType="TIMESTAMP" property="ddtm" /> | ||
12 | - <result column="TYPE" jdbcType="VARCHAR" property="type" /> | ||
13 | - <result column="STYP" jdbcType="VARCHAR" property="styp" /> | ||
14 | - <result column="TRANSID" jdbcType="VARCHAR" property="transid" /> | ||
15 | - <result column="REMARK" jdbcType="NVARCHAR" property="remark" /> | ||
16 | - <result column="OUTTM" jdbcType="TIMESTAMP" property="outtm" /> | ||
17 | - <result column="OUTFLAG" jdbcType="DECIMAL" property="outflag" /> | ||
18 | - <result column="ETLTIM" jdbcType="TIMESTAMP" property="etltim" /> | ||
19 | - <result column="ETLFLAG" jdbcType="DECIMAL" property="etlflag" /> | ||
20 | - <result column="ERRTM" jdbcType="TIMESTAMP" property="errtm" /> | ||
21 | - <result column="ERRFLAG" jdbcType="DECIMAL" property="errflag" /> | ||
22 | - <result column="ERRLOG" jdbcType="NVARCHAR" property="errlog" /> | ||
23 | - <result column="APPID" jdbcType="VARCHAR" property="appid" /> | ||
24 | - </resultMap> | ||
25 | - <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.tianbo.analysis.model.T_ETL_MESSAGE"> | ||
26 | - <result column="CONTENT" jdbcType="CLOB" property="content" /> | ||
27 | - </resultMap> | ||
28 | - <sql id="Base_Column_List"> | ||
29 | - FID, OPER, SNTM, SNDR, RCVR, SEQN, DDTM, TYPE, STYP, TRANSID, REMARK, OUTTM, OUTFLAG, | ||
30 | - ETLTIM, ETLFLAG, ERRTM, ERRFLAG, ERRLOG, APPID | ||
31 | - </sql> | ||
32 | - <sql id="Blob_Column_List"> | ||
33 | - CONTENT | ||
34 | - </sql> | ||
35 | - <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="ResultMapWithBLOBs"> | ||
36 | - select | ||
37 | - <include refid="Base_Column_List" /> | ||
38 | - , | ||
39 | - <include refid="Blob_Column_List" /> | ||
40 | - from T_ETL_MESSAGE | ||
41 | - where FID = #{fid,jdbcType=DECIMAL} | ||
42 | - </select> | ||
43 | - <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal"> | ||
44 | - delete from T_ETL_MESSAGE | ||
45 | - where FID = #{fid,jdbcType=DECIMAL} | ||
46 | - </delete> | ||
47 | - <insert id="insert" parameterType="com.tianbo.analysis.model.T_ETL_MESSAGE"> | ||
48 | - insert into T_ETL_MESSAGE (FID, OPER, SNTM, | ||
49 | - SNDR, RCVR, SEQN, DDTM, | ||
50 | - TYPE, STYP, TRANSID, | ||
51 | - REMARK, OUTTM, OUTFLAG, | ||
52 | - ETLTIM, ETLFLAG, ERRTM, | ||
53 | - ERRFLAG, ERRLOG, APPID, | ||
54 | - CONTENT) | ||
55 | - values (#{fid,jdbcType=DECIMAL}, #{oper,jdbcType=VARCHAR}, #{sntm,jdbcType=TIMESTAMP}, | ||
56 | - #{sndr,jdbcType=VARCHAR}, #{rcvr,jdbcType=VARCHAR}, #{seqn,jdbcType=VARCHAR}, #{ddtm,jdbcType=TIMESTAMP}, | ||
57 | - #{type,jdbcType=VARCHAR}, #{styp,jdbcType=VARCHAR}, #{transid,jdbcType=VARCHAR}, | ||
58 | - #{remark,jdbcType=NVARCHAR}, #{outtm,jdbcType=TIMESTAMP}, #{outflag,jdbcType=DECIMAL}, | ||
59 | - #{etltim,jdbcType=TIMESTAMP}, #{etlflag,jdbcType=DECIMAL}, #{errtm,jdbcType=TIMESTAMP}, | ||
60 | - #{errflag,jdbcType=DECIMAL}, #{errlog,jdbcType=NVARCHAR}, #{appid,jdbcType=VARCHAR}, | ||
61 | - #{content,jdbcType=CLOB}) | ||
62 | - </insert> | ||
63 | - <insert id="insertSelective" parameterType="com.tianbo.analysis.model.T_ETL_MESSAGE"> | ||
64 | - insert into T_ETL_MESSAGE | ||
65 | - <trim prefix="(" suffix=")" suffixOverrides=","> | ||
66 | - <if test="fid != null"> | ||
67 | - FID, | ||
68 | - </if> | ||
69 | - <if test="oper != null"> | ||
70 | - OPER, | ||
71 | - </if> | ||
72 | - <if test="sntm != null"> | ||
73 | - SNTM, | ||
74 | - </if> | ||
75 | - <if test="sndr != null"> | ||
76 | - SNDR, | ||
77 | - </if> | ||
78 | - <if test="rcvr != null"> | ||
79 | - RCVR, | ||
80 | - </if> | ||
81 | - <if test="seqn != null"> | ||
82 | - SEQN, | ||
83 | - </if> | ||
84 | - <if test="ddtm != null"> | ||
85 | - DDTM, | ||
86 | - </if> | ||
87 | - <if test="type != null"> | ||
88 | - TYPE, | ||
89 | - </if> | ||
90 | - <if test="styp != null"> | ||
91 | - STYP, | ||
92 | - </if> | ||
93 | - <if test="transid != null"> | ||
94 | - TRANSID, | ||
95 | - </if> | ||
96 | - <if test="remark != null"> | ||
97 | - REMARK, | ||
98 | - </if> | ||
99 | - <if test="outtm != null"> | ||
100 | - OUTTM, | ||
101 | - </if> | ||
102 | - <if test="outflag != null"> | ||
103 | - OUTFLAG, | ||
104 | - </if> | ||
105 | - <if test="etltim != null"> | ||
106 | - ETLTIM, | ||
107 | - </if> | ||
108 | - <if test="etlflag != null"> | ||
109 | - ETLFLAG, | ||
110 | - </if> | ||
111 | - <if test="errtm != null"> | ||
112 | - ERRTM, | ||
113 | - </if> | ||
114 | - <if test="errflag != null"> | ||
115 | - ERRFLAG, | ||
116 | - </if> | ||
117 | - <if test="errlog != null"> | ||
118 | - ERRLOG, | ||
119 | - </if> | ||
120 | - <if test="appid != null"> | ||
121 | - APPID, | ||
122 | - </if> | ||
123 | - <if test="content != null"> | ||
124 | - CONTENT, | ||
125 | - </if> | ||
126 | - </trim> | ||
127 | - <trim prefix="values (" suffix=")" suffixOverrides=","> | ||
128 | - <if test="fid != null"> | ||
129 | - #{fid,jdbcType=DECIMAL}, | ||
130 | - </if> | ||
131 | - <if test="oper != null"> | ||
132 | - #{oper,jdbcType=VARCHAR}, | ||
133 | - </if> | ||
134 | - <if test="sntm != null"> | ||
135 | - #{sntm,jdbcType=TIMESTAMP}, | ||
136 | - </if> | ||
137 | - <if test="sndr != null"> | ||
138 | - #{sndr,jdbcType=VARCHAR}, | ||
139 | - </if> | ||
140 | - <if test="rcvr != null"> | ||
141 | - #{rcvr,jdbcType=VARCHAR}, | ||
142 | - </if> | ||
143 | - <if test="seqn != null"> | ||
144 | - #{seqn,jdbcType=VARCHAR}, | ||
145 | - </if> | ||
146 | - <if test="ddtm != null"> | ||
147 | - #{ddtm,jdbcType=TIMESTAMP}, | ||
148 | - </if> | ||
149 | - <if test="type != null"> | ||
150 | - #{type,jdbcType=VARCHAR}, | ||
151 | - </if> | ||
152 | - <if test="styp != null"> | ||
153 | - #{styp,jdbcType=VARCHAR}, | ||
154 | - </if> | ||
155 | - <if test="transid != null"> | ||
156 | - #{transid,jdbcType=VARCHAR}, | ||
157 | - </if> | ||
158 | - <if test="remark != null"> | ||
159 | - #{remark,jdbcType=OTHER}, | ||
160 | - </if> | ||
161 | - <if test="outtm != null"> | ||
162 | - #{outtm,jdbcType=TIMESTAMP}, | ||
163 | - </if> | ||
164 | - <if test="outflag != null"> | ||
165 | - #{outflag,jdbcType=DECIMAL}, | ||
166 | - </if> | ||
167 | - <if test="etltim != null"> | ||
168 | - #{etltim,jdbcType=TIMESTAMP}, | ||
169 | - </if> | ||
170 | - <if test="etlflag != null"> | ||
171 | - #{etlflag,jdbcType=DECIMAL}, | ||
172 | - </if> | ||
173 | - <if test="errtm != null"> | ||
174 | - #{errtm,jdbcType=TIMESTAMP}, | ||
175 | - </if> | ||
176 | - <if test="errflag != null"> | ||
177 | - #{errflag,jdbcType=DECIMAL}, | ||
178 | - </if> | ||
179 | - <if test="errlog != null"> | ||
180 | - #{errlog,jdbcType=OTHER}, | ||
181 | - </if> | ||
182 | - <if test="appid != null"> | ||
183 | - #{appid,jdbcType=VARCHAR}, | ||
184 | - </if> | ||
185 | - <if test="content != null"> | ||
186 | - #{content,jdbcType=CLOB}, | ||
187 | - </if> | ||
188 | - </trim> | ||
189 | - </insert> | ||
190 | - <update id="updateByPrimaryKeySelective" parameterType="com.tianbo.analysis.model.T_ETL_MESSAGE"> | ||
191 | - update T_ETL_MESSAGE | ||
192 | - <set> | ||
193 | - <if test="oper != null"> | ||
194 | - OPER = #{oper,jdbcType=VARCHAR}, | ||
195 | - </if> | ||
196 | - <if test="sntm != null"> | ||
197 | - SNTM = #{sntm,jdbcType=TIMESTAMP}, | ||
198 | - </if> | ||
199 | - <if test="sndr != null"> | ||
200 | - SNDR = #{sndr,jdbcType=VARCHAR}, | ||
201 | - </if> | ||
202 | - <if test="rcvr != null"> | ||
203 | - RCVR = #{rcvr,jdbcType=VARCHAR}, | ||
204 | - </if> | ||
205 | - <if test="seqn != null"> | ||
206 | - SEQN = #{seqn,jdbcType=VARCHAR}, | ||
207 | - </if> | ||
208 | - <if test="ddtm != null"> | ||
209 | - DDTM = #{ddtm,jdbcType=TIMESTAMP}, | ||
210 | - </if> | ||
211 | - <if test="type != null"> | ||
212 | - TYPE = #{type,jdbcType=VARCHAR}, | ||
213 | - </if> | ||
214 | - <if test="styp != null"> | ||
215 | - STYP = #{styp,jdbcType=VARCHAR}, | ||
216 | - </if> | ||
217 | - <if test="transid != null"> | ||
218 | - TRANSID = #{transid,jdbcType=VARCHAR}, | ||
219 | - </if> | ||
220 | - <if test="remark != null"> | ||
221 | - REMARK = #{remark,jdbcType=OTHER}, | ||
222 | - </if> | ||
223 | - <if test="outtm != null"> | ||
224 | - OUTTM = #{outtm,jdbcType=TIMESTAMP}, | ||
225 | - </if> | ||
226 | - <if test="outflag != null"> | ||
227 | - OUTFLAG = #{outflag,jdbcType=DECIMAL}, | ||
228 | - </if> | ||
229 | - <if test="etltim != null"> | ||
230 | - ETLTIM = #{etltim,jdbcType=TIMESTAMP}, | ||
231 | - </if> | ||
232 | - <if test="etlflag != null"> | ||
233 | - ETLFLAG = #{etlflag,jdbcType=DECIMAL}, | ||
234 | - </if> | ||
235 | - <if test="errtm != null"> | ||
236 | - ERRTM = #{errtm,jdbcType=TIMESTAMP}, | ||
237 | - </if> | ||
238 | - <if test="errflag != null"> | ||
239 | - ERRFLAG = #{errflag,jdbcType=DECIMAL}, | ||
240 | - </if> | ||
241 | - <if test="errlog != null"> | ||
242 | - ERRLOG = #{errlog,jdbcType=OTHER}, | ||
243 | - </if> | ||
244 | - <if test="appid != null"> | ||
245 | - APPID = #{appid,jdbcType=VARCHAR}, | ||
246 | - </if> | ||
247 | - <if test="content != null"> | ||
248 | - CONTENT = #{content,jdbcType=CLOB}, | ||
249 | - </if> | ||
250 | - </set> | ||
251 | - where FID = #{fid,jdbcType=DECIMAL} | ||
252 | - </update> | ||
253 | - <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.tianbo.analysis.model.T_ETL_MESSAGE"> | ||
254 | - update T_ETL_MESSAGE | ||
255 | - set OPER = #{oper,jdbcType=VARCHAR}, | ||
256 | - SNTM = #{sntm,jdbcType=TIMESTAMP}, | ||
257 | - SNDR = #{sndr,jdbcType=VARCHAR}, | ||
258 | - RCVR = #{rcvr,jdbcType=VARCHAR}, | ||
259 | - SEQN = #{seqn,jdbcType=VARCHAR}, | ||
260 | - DDTM = #{ddtm,jdbcType=TIMESTAMP}, | ||
261 | - TYPE = #{type,jdbcType=VARCHAR}, | ||
262 | - STYP = #{styp,jdbcType=VARCHAR}, | ||
263 | - TRANSID = #{transid,jdbcType=VARCHAR}, | ||
264 | - REMARK = #{remark,jdbcType=OTHER}, | ||
265 | - OUTTM = #{outtm,jdbcType=TIMESTAMP}, | ||
266 | - OUTFLAG = #{outflag,jdbcType=DECIMAL}, | ||
267 | - ETLTIM = #{etltim,jdbcType=TIMESTAMP}, | ||
268 | - ETLFLAG = #{etlflag,jdbcType=DECIMAL}, | ||
269 | - ERRTM = #{errtm,jdbcType=TIMESTAMP}, | ||
270 | - ERRFLAG = #{errflag,jdbcType=DECIMAL}, | ||
271 | - ERRLOG = #{errlog,jdbcType=OTHER}, | ||
272 | - APPID = #{appid,jdbcType=VARCHAR}, | ||
273 | - CONTENT = #{content,jdbcType=CLOB} | ||
274 | - where FID = #{fid,jdbcType=DECIMAL} | ||
275 | - </update> | ||
276 | - <update id="updateByPrimaryKey" parameterType="com.tianbo.analysis.model.T_ETL_MESSAGE"> | ||
277 | - update T_ETL_MESSAGE | ||
278 | - set OPER = #{oper,jdbcType=VARCHAR}, | ||
279 | - SNTM = #{sntm,jdbcType=TIMESTAMP}, | ||
280 | - SNDR = #{sndr,jdbcType=VARCHAR}, | ||
281 | - RCVR = #{rcvr,jdbcType=VARCHAR}, | ||
282 | - SEQN = #{seqn,jdbcType=VARCHAR}, | ||
283 | - DDTM = #{ddtm,jdbcType=TIMESTAMP}, | ||
284 | - TYPE = #{type,jdbcType=VARCHAR}, | ||
285 | - STYP = #{styp,jdbcType=VARCHAR}, | ||
286 | - TRANSID = #{transid,jdbcType=VARCHAR}, | ||
287 | - REMARK = #{remark,jdbcType=OTHER}, | ||
288 | - OUTTM = #{outtm,jdbcType=TIMESTAMP}, | ||
289 | - OUTFLAG = #{outflag,jdbcType=DECIMAL}, | ||
290 | - ETLTIM = #{etltim,jdbcType=TIMESTAMP}, | ||
291 | - ETLFLAG = #{etlflag,jdbcType=DECIMAL}, | ||
292 | - ERRTM = #{errtm,jdbcType=TIMESTAMP}, | ||
293 | - ERRFLAG = #{errflag,jdbcType=DECIMAL}, | ||
294 | - ERRLOG = #{errlog,jdbcType=OTHER}, | ||
295 | - APPID = #{appid,jdbcType=VARCHAR} | ||
296 | - where FID = #{fid,jdbcType=DECIMAL} | ||
297 | - </update> | ||
298 | - | ||
299 | -</mapper> |
-
请 注册 或 登录 后发表评论