作者 申海龙

大部分回执解析

正在显示 35 个修改的文件 包含 4551 行增加18 行删除

要显示太多修改。

为保证性能只显示 35 of 35+ 个文件。

  1 +package com.tianbo.analysis.dao;
  2 +
  3 +import com.tianbo.analysis.model.ARRIVEDMASTER;
  4 +import com.tianbo.analysis.model.ORIGINMANIFESTMASTER;
  5 +
  6 +import java.util.List;
  7 +
  8 +public interface ARRIVEDMASTERMapper {
  9 + int deleteByPrimaryKey(String autoid);
  10 +
  11 + int insert(ARRIVEDMASTER record);
  12 +
  13 + int insertSelective(ARRIVEDMASTER record);
  14 +
  15 + ARRIVEDMASTER selectByPrimaryKey(String autoid);
  16 +
  17 + int updateByPrimaryKeySelective(ARRIVEDMASTER record);
  18 +
  19 + int updateByPrimaryKey(ARRIVEDMASTER record);
  20 +
  21 + int insertRecept(ARRIVEDMASTER arrivedmaster);
  22 +
  23 + int updateRECEIPTION(ARRIVEDMASTER record);
  24 +
  25 + List<ARRIVEDMASTER> selectAutoIdByAwb(ARRIVEDMASTER record);
  26 +}
  1 +package com.tianbo.analysis.dao;
  2 +
  3 +import com.tianbo.analysis.model.ARRIVEDSECONDARY;
  4 +
  5 +import java.util.List;
  6 +
  7 +public interface ARRIVEDSECONDARYMapper {
  8 + int insert(ARRIVEDSECONDARY record);
  9 +
  10 + int insertSelective(ARRIVEDSECONDARY record);
  11 +
  12 + int updateRECEIPTION(ARRIVEDSECONDARY record);
  13 +
  14 + List<ARRIVEDSECONDARY> selectAutoIdByawbAawbH(ARRIVEDSECONDARY record);
  15 +}
  1 +package com.tianbo.analysis.dao;
  2 +
  3 +import com.tianbo.analysis.model.CUSTOMSMESSAGEWithBLOBs;
  4 +
  5 +public interface CUSTOMSMESSAGEMapper {
  6 + int insert(CUSTOMSMESSAGEWithBLOBs record);
  7 +
  8 + int insertSelective(CUSTOMSMESSAGEWithBLOBs record);
  9 +
  10 + CUSTOMSMESSAGEWithBLOBs selectMessage(String messageId);
  11 +}
  1 +package com.tianbo.analysis.dao;
  2 +
  3 +import com.tianbo.analysis.model.DEPARTURESLOADING;
  4 +
  5 +import java.util.List;
  6 +
  7 +public interface DEPARTURESLOADINGMapper {
  8 + int insert(DEPARTURESLOADING record);
  9 +
  10 + int insertSelective(DEPARTURESLOADING record);
  11 +
  12 + int updateRECEIPTION(DEPARTURESLOADING record);
  13 +
  14 + List<DEPARTURESLOADING> selectAutoIdByAwb(DEPARTURESLOADING record);
  15 +}
@@ -11,5 +11,5 @@ public interface OriginmanifestsecondaryMapper { @@ -11,5 +11,5 @@ public interface OriginmanifestsecondaryMapper {
11 11
12 int updateRECEIPTION(Originmanifestsecondary record); 12 int updateRECEIPTION(Originmanifestsecondary record);
13 13
14 - List<Originmanifestsecondary> selectAutoIdByawbAawbH (Originmanifestsecondary record); 14 + List<Originmanifestsecondary> selectAutoIdByawbAawbH(Originmanifestsecondary record);
15 } 15 }
  1 +package com.tianbo.analysis.dao;
  2 +
  3 +import com.tianbo.analysis.model.ARRIVEDMASTER;
  4 +import com.tianbo.analysis.model.PREPAREMASTER;
  5 +
  6 +import java.util.List;
  7 +
  8 +public interface PREPAREMASTERMapper {
  9 + int insert(PREPAREMASTER record);
  10 +
  11 + int insertSelective(PREPAREMASTER record);
  12 +
  13 + int updateRECEIPTION(PREPAREMASTER record);
  14 +
  15 + List<PREPAREMASTER> selectAutoIdByAwb(PREPAREMASTER record);
  16 +}
  1 +package com.tianbo.analysis.dao;
  2 +
  3 +import com.tianbo.analysis.model.ARRIVEDSECONDARY;
  4 +import com.tianbo.analysis.model.PREPARESECONDARY;
  5 +
  6 +import java.util.List;
  7 +
  8 +public interface PREPARESECONDARYMapper {
  9 + int deleteByPrimaryKey(Short id);
  10 +
  11 + int insert(PREPARESECONDARY record);
  12 +
  13 + int insertSelective(PREPARESECONDARY record);
  14 +
  15 + PREPARESECONDARY selectByPrimaryKey(Short id);
  16 +
  17 + int updateByPrimaryKeySelective(PREPARESECONDARY record);
  18 +
  19 + int updateByPrimaryKey(PREPARESECONDARY record);
  20 +
  21 + int updateRECEIPTION(PREPARESECONDARY record);
  22 +
  23 + List<PREPARESECONDARY> selectAutoIdByawbAawbH(PREPARESECONDARY record);
  24 +}
  1 +package com.tianbo.analysis.dao;
  2 +
  3 +import com.tianbo.analysis.model.TALLYMASTER;
  4 +
  5 +import java.util.List;
  6 +
  7 +public interface TALLYMASTERMapper {
  8 + int insert(TALLYMASTER record);
  9 +
  10 + int insertSelective(TALLYMASTER record);
  11 +
  12 + int updateRECEIPTION(TALLYMASTER record);
  13 +
  14 + List<TALLYMASTER> selectAutoIdByAwb(TALLYMASTER record);
  15 +}
  1 +package com.tianbo.analysis.dao;
  2 +
  3 +import com.tianbo.analysis.model.TALLYSECONDARY;
  4 +
  5 +import java.util.List;
  6 +
  7 +public interface TALLYSECONDARYMapper {
  8 + int insert(TALLYSECONDARY record);
  9 +
  10 + int insertSelective(TALLYSECONDARY record);
  11 +
  12 + int updateRECEIPTION(TALLYSECONDARY record);
  13 +
  14 + List<TALLYSECONDARY> selectAutoIdByawbAawbH(TALLYSECONDARY record);
  15 +}
1 package com.tianbo.analysis.handle; 1 package com.tianbo.analysis.handle;
2 2
  3 +import com.fasterxml.jackson.databind.annotation.JsonAppend;
  4 +import com.sun.xml.internal.ws.util.xml.XmlUtil;
3 import com.tianbo.analysis.model.CustomReception; 5 import com.tianbo.analysis.model.CustomReception;
4 -import com.tianbo.analysis.service.CoustomAnalysisService; 6 +import com.tianbo.analysis.service.*;
5 import com.tianbo.util.XML.XMLXPath; 7 import com.tianbo.util.XML.XMLXPath;
6 import org.apache.commons.io.FileUtils; 8 import org.apache.commons.io.FileUtils;
7 import org.dom4j.Document; 9 import org.dom4j.Document;
@@ -24,7 +26,7 @@ import java.util.List; @@ -24,7 +26,7 @@ import java.util.List;
24 * 海关新舱单回执解析xml文件 26 * 海关新舱单回执解析xml文件
25 */ 27 */
26 @Component 28 @Component
27 -public class CustomXmlHandle { 29 +public class CustomXmlHandle{
28 30
29 private static CustomXmlHandle customXmlHandle; 31 private static CustomXmlHandle customXmlHandle;
30 //海关新舱单回执报头 32 //海关新舱单回执报头
@@ -46,11 +48,31 @@ public class CustomXmlHandle { @@ -46,11 +48,31 @@ public class CustomXmlHandle {
46 @Autowired 48 @Autowired
47 private CoustomAnalysisService coustomAnalysisService; 49 private CoustomAnalysisService coustomAnalysisService;
48 50
  51 + @Autowired
  52 + private ARRIVEDMASTERService arrivedmasterService;
  53 +
  54 + @Autowired
  55 + private TALLYMASTERService tallymasterService;
  56 +
  57 + @Autowired
  58 + private DEPARTURESLOADINGService departuresloadingService;
  59 +
  60 + @Autowired
  61 + private PREPAREMASTERService preparemasterService;
  62 +
49 //通过@PostConstruct实现初始化bean之前进行的操作,解决service调用空指针问题 63 //通过@PostConstruct实现初始化bean之前进行的操作,解决service调用空指针问题
50 @PostConstruct 64 @PostConstruct
51 public void init() { 65 public void init() {
52 customXmlHandle = this; 66 customXmlHandle = this;
53 customXmlHandle.coustomAnalysisService = this.coustomAnalysisService; 67 customXmlHandle.coustomAnalysisService = this.coustomAnalysisService;
  68 +
  69 + customXmlHandle.arrivedmasterService = this.arrivedmasterService;
  70 +
  71 + customXmlHandle.tallymasterService = this.tallymasterService;
  72 +
  73 + customXmlHandle.departuresloadingService = this.departuresloadingService;
  74 +
  75 + customXmlHandle.preparemasterService = this.preparemasterService;
54 // 初使化时将已静态化的testService实例化 76 // 初使化时将已静态化的testService实例化
55 } 77 }
56 78
@@ -64,6 +86,8 @@ public class CustomXmlHandle { @@ -64,6 +86,8 @@ public class CustomXmlHandle {
64 */ 86 */
65 public int handelXmlDocument(File file) throws DocumentException,UnsupportedEncodingException,SAXParseException { 87 public int handelXmlDocument(File file) throws DocumentException,UnsupportedEncodingException,SAXParseException {
66 88
  89 + int i = 0;
  90 +
67 SAXReader saxReader = new SAXReader(); 91 SAXReader saxReader = new SAXReader();
68 Document document = saxReader.read(file); 92 Document document = saxReader.read(file);
69 Element contentRoot = document.getRootElement(); 93 Element contentRoot = document.getRootElement();
@@ -74,8 +98,8 @@ public class CustomXmlHandle { @@ -74,8 +98,8 @@ public class CustomXmlHandle {
74 //开始解析 98 //开始解析
75 // fzeFoh.setGrossweightmeasureuc(XMLXPath.getSingleValueByPath(document,GrossWeightMeasureUc)); 99 // fzeFoh.setGrossweightmeasureuc(XMLXPath.getSingleValueByPath(document,GrossWeightMeasureUc));
76 String msgType = XMLXPath.getSingleValueByPath(document,MessageType); 100 String msgType = XMLXPath.getSingleValueByPath(document,MessageType);
77 - if (type.equals(msgType)){  
78 String journeyid = XMLXPath.getSingleValueByPath(document,JourneyID); 101 String journeyid = XMLXPath.getSingleValueByPath(document,JourneyID);
  102 +// XMLXPath.getSingleValueByPath(document, )
79 String[] flightList = journeyid.split("/"); 103 String[] flightList = journeyid.split("/");
80 String flightNo = flightList[0]; 104 String flightNo = flightList[0];
81 String flightDate = flightList[1]; 105 String flightDate = flightList[1];
@@ -84,15 +108,26 @@ public class CustomXmlHandle { @@ -84,15 +108,26 @@ public class CustomXmlHandle {
84 String awbH = XMLXPath.getSingleValueByPath(document,waybillSecond); 108 String awbH = XMLXPath.getSingleValueByPath(document,waybillSecond);
85 String resCode = XMLXPath.getSingleValueByPath(document,responseCode); 109 String resCode = XMLXPath.getSingleValueByPath(document,responseCode);
86 String resText = XMLXPath.getSingleValueByPath(document,responseText); 110 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; 111 + String messageId = XMLXPath.getSingleValueByPath(document, MessageID);
  112 + CustomReception customReception = new CustomReception(msgType,flightNo,flightDate,awbA,awbH,resText, messageId);
  113 + switch (msgType){
  114 + case "MT9999":
  115 + i = customXmlHandle.coustomAnalysisService.insertRecept(customReception);
  116 + case "MT3201":
  117 + i= customXmlHandle.arrivedmasterService.insertRecept(customReception);
  118 + case "MT5202":
  119 + i = customXmlHandle.tallymasterService.insertRecept(customReception, "MT5202");
  120 + case "MT5201":
  121 + i = customXmlHandle.tallymasterService.insertRecept(customReception, "MT5201");
  122 + case "MT4201":
  123 + i = customXmlHandle.departuresloadingService.insertRecept(customReception);
  124 + case "MT1201":
  125 + i = customXmlHandle.coustomAnalysisService.insertRecept(customReception);
  126 + case "MT2201":
  127 + i = customXmlHandle.preparemasterService.insertRecept(customReception);
93 128
94 } 129 }
95 - return 0;  
96 130
  131 + return i;
97 } 132 }
98 } 133 }
  1 +package com.tianbo.analysis.model;
  2 +
  3 +import java.util.Date;
  4 +
  5 +public class ARRIVEDMASTER {
  6 + private String autoid;
  7 +
  8 + private String waybillnomaster;
  9 +
  10 + private String tcdName;
  11 +
  12 + private String tcdTypecode;
  13 +
  14 + private String flightno;
  15 +
  16 + private Date flightdate;
  17 +
  18 + private String carrier;
  19 +
  20 + private String originatingstation;
  21 +
  22 + private String oName;
  23 +
  24 + private String destinationstation;
  25 +
  26 + private String fdName;
  27 +
  28 + private String arrivedtotalpiece;
  29 +
  30 + private String totalpiecequantity;
  31 +
  32 + private String arrivedtotalweight;
  33 +
  34 + private String grossweightmeasureuc;
  35 +
  36 + private String totalgrossweightmeasure;
  37 +
  38 + private String totalgrossweightmeasureuc;
  39 +
  40 + private String chargeableweightmeasure;
  41 +
  42 + private String chargeableweightmeasureuc;
  43 +
  44 + private Date arriveddate;
  45 +
  46 + private String transportsplitdescription;
  47 +
  48 + private String customscode;
  49 +
  50 + private String productname;
  51 +
  52 + private String status;
  53 +
  54 + private String receiptinformation;
  55 +
  56 + private Date createdate;
  57 +
  58 + public String getAutoid() {
  59 + return autoid;
  60 + }
  61 +
  62 + public void setAutoid(String autoid) {
  63 + this.autoid = autoid == null ? null : autoid.trim();
  64 + }
  65 +
  66 + public String getWaybillnomaster() {
  67 + return waybillnomaster;
  68 + }
  69 +
  70 + public void setWaybillnomaster(String waybillnomaster) {
  71 + this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim();
  72 + }
  73 +
  74 + public String getTcdName() {
  75 + return tcdName;
  76 + }
  77 +
  78 + public void setTcdName(String tcdName) {
  79 + this.tcdName = tcdName == null ? null : tcdName.trim();
  80 + }
  81 +
  82 + public String getTcdTypecode() {
  83 + return tcdTypecode;
  84 + }
  85 +
  86 + public void setTcdTypecode(String tcdTypecode) {
  87 + this.tcdTypecode = tcdTypecode == null ? null : tcdTypecode.trim();
  88 + }
  89 +
  90 + public String getFlightno() {
  91 + return flightno;
  92 + }
  93 +
  94 + public void setFlightno(String flightno) {
  95 + this.flightno = flightno == null ? null : flightno.trim();
  96 + }
  97 +
  98 + public Date getFlightdate() {
  99 + return flightdate;
  100 + }
  101 +
  102 + public void setFlightdate(Date flightdate) {
  103 + this.flightdate = flightdate;
  104 + }
  105 +
  106 + public String getCarrier() {
  107 + return carrier;
  108 + }
  109 +
  110 + public void setCarrier(String carrier) {
  111 + this.carrier = carrier == null ? null : carrier.trim();
  112 + }
  113 +
  114 + public String getOriginatingstation() {
  115 + return originatingstation;
  116 + }
  117 +
  118 + public void setOriginatingstation(String originatingstation) {
  119 + this.originatingstation = originatingstation == null ? null : originatingstation.trim();
  120 + }
  121 +
  122 + public String getoName() {
  123 + return oName;
  124 + }
  125 +
  126 + public void setoName(String oName) {
  127 + this.oName = oName == null ? null : oName.trim();
  128 + }
  129 +
  130 + public String getDestinationstation() {
  131 + return destinationstation;
  132 + }
  133 +
  134 + public void setDestinationstation(String destinationstation) {
  135 + this.destinationstation = destinationstation == null ? null : destinationstation.trim();
  136 + }
  137 +
  138 + public String getFdName() {
  139 + return fdName;
  140 + }
  141 +
  142 + public void setFdName(String fdName) {
  143 + this.fdName = fdName == null ? null : fdName.trim();
  144 + }
  145 +
  146 + public String getArrivedtotalpiece() {
  147 + return arrivedtotalpiece;
  148 + }
  149 +
  150 + public void setArrivedtotalpiece(String arrivedtotalpiece) {
  151 + this.arrivedtotalpiece = arrivedtotalpiece == null ? null : arrivedtotalpiece.trim();
  152 + }
  153 +
  154 + public String getTotalpiecequantity() {
  155 + return totalpiecequantity;
  156 + }
  157 +
  158 + public void setTotalpiecequantity(String totalpiecequantity) {
  159 + this.totalpiecequantity = totalpiecequantity == null ? null : totalpiecequantity.trim();
  160 + }
  161 +
  162 + public String getArrivedtotalweight() {
  163 + return arrivedtotalweight;
  164 + }
  165 +
  166 + public void setArrivedtotalweight(String arrivedtotalweight) {
  167 + this.arrivedtotalweight = arrivedtotalweight == null ? null : arrivedtotalweight.trim();
  168 + }
  169 +
  170 + public String getGrossweightmeasureuc() {
  171 + return grossweightmeasureuc;
  172 + }
  173 +
  174 + public void setGrossweightmeasureuc(String grossweightmeasureuc) {
  175 + this.grossweightmeasureuc = grossweightmeasureuc == null ? null : grossweightmeasureuc.trim();
  176 + }
  177 +
  178 + public String getTotalgrossweightmeasure() {
  179 + return totalgrossweightmeasure;
  180 + }
  181 +
  182 + public void setTotalgrossweightmeasure(String totalgrossweightmeasure) {
  183 + this.totalgrossweightmeasure = totalgrossweightmeasure == null ? null : totalgrossweightmeasure.trim();
  184 + }
  185 +
  186 + public String getTotalgrossweightmeasureuc() {
  187 + return totalgrossweightmeasureuc;
  188 + }
  189 +
  190 + public void setTotalgrossweightmeasureuc(String totalgrossweightmeasureuc) {
  191 + this.totalgrossweightmeasureuc = totalgrossweightmeasureuc == null ? null : totalgrossweightmeasureuc.trim();
  192 + }
  193 +
  194 + public String getChargeableweightmeasure() {
  195 + return chargeableweightmeasure;
  196 + }
  197 +
  198 + public void setChargeableweightmeasure(String chargeableweightmeasure) {
  199 + this.chargeableweightmeasure = chargeableweightmeasure == null ? null : chargeableweightmeasure.trim();
  200 + }
  201 +
  202 + public String getChargeableweightmeasureuc() {
  203 + return chargeableweightmeasureuc;
  204 + }
  205 +
  206 + public void setChargeableweightmeasureuc(String chargeableweightmeasureuc) {
  207 + this.chargeableweightmeasureuc = chargeableweightmeasureuc == null ? null : chargeableweightmeasureuc.trim();
  208 + }
  209 +
  210 + public Date getArriveddate() {
  211 + return arriveddate;
  212 + }
  213 +
  214 + public void setArriveddate(Date arriveddate) {
  215 + this.arriveddate = arriveddate;
  216 + }
  217 +
  218 + public String getTransportsplitdescription() {
  219 + return transportsplitdescription;
  220 + }
  221 +
  222 + public void setTransportsplitdescription(String transportsplitdescription) {
  223 + this.transportsplitdescription = transportsplitdescription == null ? null : transportsplitdescription.trim();
  224 + }
  225 +
  226 + public String getCustomscode() {
  227 + return customscode;
  228 + }
  229 +
  230 + public void setCustomscode(String customscode) {
  231 + this.customscode = customscode == null ? null : customscode.trim();
  232 + }
  233 +
  234 + public String getProductname() {
  235 + return productname;
  236 + }
  237 +
  238 + public void setProductname(String productname) {
  239 + this.productname = productname == null ? null : productname.trim();
  240 + }
  241 +
  242 + public String getStatus() {
  243 + return status;
  244 + }
  245 +
  246 + public void setStatus(String status) {
  247 + this.status = status == null ? null : status.trim();
  248 + }
  249 +
  250 + public String getReceiptinformation() {
  251 + return receiptinformation;
  252 + }
  253 +
  254 + public void setReceiptinformation(String receiptinformation) {
  255 + this.receiptinformation = receiptinformation == null ? null : receiptinformation.trim();
  256 + }
  257 +
  258 + public Date getCreatedate() {
  259 + return createdate;
  260 + }
  261 +
  262 + public void setCreatedate(Date createdate) {
  263 + this.createdate = createdate;
  264 + }
  265 +}
  1 +package com.tianbo.analysis.model;
  2 +
  3 +import java.util.Date;
  4 +
  5 +public class ARRIVEDSECONDARY {
  6 + private String autoid;
  7 +
  8 + private String waybillnomaster;
  9 +
  10 + private String tcdName;
  11 +
  12 + private String tcdTypecode;
  13 +
  14 + private String waybillnosecondary;
  15 +
  16 + private String carrier;
  17 +
  18 + private String oId;
  19 +
  20 + private String oName;
  21 +
  22 + private String fdId;
  23 +
  24 + private String fdName;
  25 +
  26 + private String flightno;
  27 +
  28 + private Date flightdate;
  29 +
  30 + private String arrivedtotalpiece;
  31 +
  32 + private String totalpiecequantity;
  33 +
  34 + private String arrivedtotalweight;
  35 +
  36 + private String grossweightmeasureuc;
  37 +
  38 + private String totalgrossweightmeasure;
  39 +
  40 + private String totalgrossweightmeasureuc;
  41 +
  42 + private String chargeableweightmeasure;
  43 +
  44 + private String chargeableweightmeasureuc;
  45 +
  46 + private Date arriveddate;
  47 +
  48 + private String customscode;
  49 +
  50 + private String productname;
  51 +
  52 + private Date createdate;
  53 +
  54 + private String arrivedmasterid;
  55 +
  56 + private String transportsplitdescription;
  57 +
  58 + private String receiption;
  59 +
  60 + private String status;
  61 +
  62 + public String getAutoid() {
  63 + return autoid;
  64 + }
  65 +
  66 + public void setAutoid(String autoid) {
  67 + this.autoid = autoid == null ? null : autoid.trim();
  68 + }
  69 +
  70 + public String getWaybillnomaster() {
  71 + return waybillnomaster;
  72 + }
  73 +
  74 + public void setWaybillnomaster(String waybillnomaster) {
  75 + this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim();
  76 + }
  77 +
  78 + public String getTcdName() {
  79 + return tcdName;
  80 + }
  81 +
  82 + public void setTcdName(String tcdName) {
  83 + this.tcdName = tcdName == null ? null : tcdName.trim();
  84 + }
  85 +
  86 + public String getTcdTypecode() {
  87 + return tcdTypecode;
  88 + }
  89 +
  90 + public void setTcdTypecode(String tcdTypecode) {
  91 + this.tcdTypecode = tcdTypecode == null ? null : tcdTypecode.trim();
  92 + }
  93 +
  94 + public String getWaybillnosecondary() {
  95 + return waybillnosecondary;
  96 + }
  97 +
  98 + public void setWaybillnosecondary(String waybillnosecondary) {
  99 + this.waybillnosecondary = waybillnosecondary == null ? null : waybillnosecondary.trim();
  100 + }
  101 +
  102 + public String getCarrier() {
  103 + return carrier;
  104 + }
  105 +
  106 + public void setCarrier(String carrier) {
  107 + this.carrier = carrier == null ? null : carrier.trim();
  108 + }
  109 +
  110 + public String getoId() {
  111 + return oId;
  112 + }
  113 +
  114 + public void setoId(String oId) {
  115 + this.oId = oId == null ? null : oId.trim();
  116 + }
  117 +
  118 + public String getoName() {
  119 + return oName;
  120 + }
  121 +
  122 + public void setoName(String oName) {
  123 + this.oName = oName == null ? null : oName.trim();
  124 + }
  125 +
  126 + public String getFdId() {
  127 + return fdId;
  128 + }
  129 +
  130 + public void setFdId(String fdId) {
  131 + this.fdId = fdId == null ? null : fdId.trim();
  132 + }
  133 +
  134 + public String getFdName() {
  135 + return fdName;
  136 + }
  137 +
  138 + public void setFdName(String fdName) {
  139 + this.fdName = fdName == null ? null : fdName.trim();
  140 + }
  141 +
  142 + public String getFlightno() {
  143 + return flightno;
  144 + }
  145 +
  146 + public void setFlightno(String flightno) {
  147 + this.flightno = flightno == null ? null : flightno.trim();
  148 + }
  149 +
  150 + public Date getFlightdate() {
  151 + return flightdate;
  152 + }
  153 +
  154 + public void setFlightdate(Date flightdate) {
  155 + this.flightdate = flightdate;
  156 + }
  157 +
  158 + public String getArrivedtotalpiece() {
  159 + return arrivedtotalpiece;
  160 + }
  161 +
  162 + public void setArrivedtotalpiece(String arrivedtotalpiece) {
  163 + this.arrivedtotalpiece = arrivedtotalpiece == null ? null : arrivedtotalpiece.trim();
  164 + }
  165 +
  166 + public String getTotalpiecequantity() {
  167 + return totalpiecequantity;
  168 + }
  169 +
  170 + public void setTotalpiecequantity(String totalpiecequantity) {
  171 + this.totalpiecequantity = totalpiecequantity == null ? null : totalpiecequantity.trim();
  172 + }
  173 +
  174 + public String getArrivedtotalweight() {
  175 + return arrivedtotalweight;
  176 + }
  177 +
  178 + public void setArrivedtotalweight(String arrivedtotalweight) {
  179 + this.arrivedtotalweight = arrivedtotalweight == null ? null : arrivedtotalweight.trim();
  180 + }
  181 +
  182 + public String getGrossweightmeasureuc() {
  183 + return grossweightmeasureuc;
  184 + }
  185 +
  186 + public void setGrossweightmeasureuc(String grossweightmeasureuc) {
  187 + this.grossweightmeasureuc = grossweightmeasureuc == null ? null : grossweightmeasureuc.trim();
  188 + }
  189 +
  190 + public String getTotalgrossweightmeasure() {
  191 + return totalgrossweightmeasure;
  192 + }
  193 +
  194 + public void setTotalgrossweightmeasure(String totalgrossweightmeasure) {
  195 + this.totalgrossweightmeasure = totalgrossweightmeasure == null ? null : totalgrossweightmeasure.trim();
  196 + }
  197 +
  198 + public String getTotalgrossweightmeasureuc() {
  199 + return totalgrossweightmeasureuc;
  200 + }
  201 +
  202 + public void setTotalgrossweightmeasureuc(String totalgrossweightmeasureuc) {
  203 + this.totalgrossweightmeasureuc = totalgrossweightmeasureuc == null ? null : totalgrossweightmeasureuc.trim();
  204 + }
  205 +
  206 + public String getChargeableweightmeasure() {
  207 + return chargeableweightmeasure;
  208 + }
  209 +
  210 + public void setChargeableweightmeasure(String chargeableweightmeasure) {
  211 + this.chargeableweightmeasure = chargeableweightmeasure == null ? null : chargeableweightmeasure.trim();
  212 + }
  213 +
  214 + public String getChargeableweightmeasureuc() {
  215 + return chargeableweightmeasureuc;
  216 + }
  217 +
  218 + public void setChargeableweightmeasureuc(String chargeableweightmeasureuc) {
  219 + this.chargeableweightmeasureuc = chargeableweightmeasureuc == null ? null : chargeableweightmeasureuc.trim();
  220 + }
  221 +
  222 + public Date getArriveddate() {
  223 + return arriveddate;
  224 + }
  225 +
  226 + public void setArriveddate(Date arriveddate) {
  227 + this.arriveddate = arriveddate;
  228 + }
  229 +
  230 + public String getCustomscode() {
  231 + return customscode;
  232 + }
  233 +
  234 + public void setCustomscode(String customscode) {
  235 + this.customscode = customscode == null ? null : customscode.trim();
  236 + }
  237 +
  238 + public String getProductname() {
  239 + return productname;
  240 + }
  241 +
  242 + public void setProductname(String productname) {
  243 + this.productname = productname == null ? null : productname.trim();
  244 + }
  245 +
  246 + public Date getCreatedate() {
  247 + return createdate;
  248 + }
  249 +
  250 + public void setCreatedate(Date createdate) {
  251 + this.createdate = createdate;
  252 + }
  253 +
  254 + public String getArrivedmasterid() {
  255 + return arrivedmasterid;
  256 + }
  257 +
  258 + public void setArrivedmasterid(String arrivedmasterid) {
  259 + this.arrivedmasterid = arrivedmasterid == null ? null : arrivedmasterid.trim();
  260 + }
  261 +
  262 + public String getTransportsplitdescription() {
  263 + return transportsplitdescription;
  264 + }
  265 +
  266 + public void setTransportsplitdescription(String transportsplitdescription) {
  267 + this.transportsplitdescription = transportsplitdescription == null ? null : transportsplitdescription.trim();
  268 + }
  269 +
  270 + public String getReceiption() {
  271 + return receiption;
  272 + }
  273 +
  274 + public void setReceiption(String receiption) {
  275 + this.receiption = receiption == null ? null : receiption.trim();
  276 + }
  277 +
  278 + public String getStatus() {
  279 + return status;
  280 + }
  281 +
  282 + public void setStatus(String status) {
  283 + this.status = status == null ? null : status.trim();
  284 + }
  285 +}
  1 +package com.tianbo.analysis.model;
  2 +
  3 +import java.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 +}
@@ -23,13 +23,14 @@ public class CustomReception { @@ -23,13 +23,14 @@ public class CustomReception {
23 String flightDate, 23 String flightDate,
24 String wayBillMaster, 24 String wayBillMaster,
25 String wayBillSecond, 25 String wayBillSecond,
26 - String responseText  
27 - ){ 26 + String responseText,
  27 + String messageID){
28 this.messageType = messageType; 28 this.messageType = messageType;
29 this.flightNo = flightNo; 29 this.flightNo = flightNo;
30 this.flightDate = flightDate; 30 this.flightDate = flightDate;
31 this.wayBillMaster = wayBillMaster; 31 this.wayBillMaster = wayBillMaster;
32 this.wayBillSecond = wayBillSecond; 32 this.wayBillSecond = wayBillSecond;
33 this.responseText = responseText; 33 this.responseText = responseText;
  34 + this.messageID = messageID;
34 } 35 }
35 } 36 }
  1 +package com.tianbo.analysis.model;
  2 +
  3 +import java.util.Date;
  4 +
  5 +public class DEPARTURESLOADING {
  6 + private String id;
  7 +
  8 + private Date createdate;
  9 +
  10 + private String waybillno;
  11 +
  12 + private String flightno;
  13 +
  14 + private Date flightdate;
  15 +
  16 + private String originatingstation;
  17 +
  18 + private String destinationstation;
  19 +
  20 + private String stowagepieces;
  21 +
  22 + private String stowageweight;
  23 +
  24 + private String waybillpieces;
  25 +
  26 + private String waybillweight;
  27 +
  28 + private Date stowagedate;
  29 +
  30 + private String productname;
  31 +
  32 + private String specialcode;
  33 +
  34 + private String customs;
  35 +
  36 + private String receiption;
  37 +
  38 + private String status;
  39 +
  40 + public String getId() {
  41 + return id;
  42 + }
  43 +
  44 + public void setId(String id) {
  45 + this.id = id == null ? null : id.trim();
  46 + }
  47 +
  48 + public Date getCreatedate() {
  49 + return createdate;
  50 + }
  51 +
  52 + public void setCreatedate(Date createdate) {
  53 + this.createdate = createdate;
  54 + }
  55 +
  56 + public String getWaybillno() {
  57 + return waybillno;
  58 + }
  59 +
  60 + public void setWaybillno(String waybillno) {
  61 + this.waybillno = waybillno == null ? null : waybillno.trim();
  62 + }
  63 +
  64 + public String getFlightno() {
  65 + return flightno;
  66 + }
  67 +
  68 + public void setFlightno(String flightno) {
  69 + this.flightno = flightno == null ? null : flightno.trim();
  70 + }
  71 +
  72 + public Date getFlightdate() {
  73 + return flightdate;
  74 + }
  75 +
  76 + public void setFlightdate(Date flightdate) {
  77 + this.flightdate = flightdate;
  78 + }
  79 +
  80 + public String getOriginatingstation() {
  81 + return originatingstation;
  82 + }
  83 +
  84 + public void setOriginatingstation(String originatingstation) {
  85 + this.originatingstation = originatingstation == null ? null : originatingstation.trim();
  86 + }
  87 +
  88 + public String getDestinationstation() {
  89 + return destinationstation;
  90 + }
  91 +
  92 + public void setDestinationstation(String destinationstation) {
  93 + this.destinationstation = destinationstation == null ? null : destinationstation.trim();
  94 + }
  95 +
  96 + public String getStowagepieces() {
  97 + return stowagepieces;
  98 + }
  99 +
  100 + public void setStowagepieces(String stowagepieces) {
  101 + this.stowagepieces = stowagepieces == null ? null : stowagepieces.trim();
  102 + }
  103 +
  104 + public String getStowageweight() {
  105 + return stowageweight;
  106 + }
  107 +
  108 + public void setStowageweight(String stowageweight) {
  109 + this.stowageweight = stowageweight == null ? null : stowageweight.trim();
  110 + }
  111 +
  112 + public String getWaybillpieces() {
  113 + return waybillpieces;
  114 + }
  115 +
  116 + public void setWaybillpieces(String waybillpieces) {
  117 + this.waybillpieces = waybillpieces == null ? null : waybillpieces.trim();
  118 + }
  119 +
  120 + public String getWaybillweight() {
  121 + return waybillweight;
  122 + }
  123 +
  124 + public void setWaybillweight(String waybillweight) {
  125 + this.waybillweight = waybillweight == null ? null : waybillweight.trim();
  126 + }
  127 +
  128 + public Date getStowagedate() {
  129 + return stowagedate;
  130 + }
  131 +
  132 + public void setStowagedate(Date stowagedate) {
  133 + this.stowagedate = stowagedate;
  134 + }
  135 +
  136 + public String getProductname() {
  137 + return productname;
  138 + }
  139 +
  140 + public void setProductname(String productname) {
  141 + this.productname = productname == null ? null : productname.trim();
  142 + }
  143 +
  144 + public String getSpecialcode() {
  145 + return specialcode;
  146 + }
  147 +
  148 + public void setSpecialcode(String specialcode) {
  149 + this.specialcode = specialcode == null ? null : specialcode.trim();
  150 + }
  151 +
  152 + public String getCustoms() {
  153 + return customs;
  154 + }
  155 +
  156 + public void setCustoms(String customs) {
  157 + this.customs = customs == null ? null : customs.trim();
  158 + }
  159 +
  160 + public String getReceiption() {
  161 + return receiption;
  162 + }
  163 +
  164 + public void setReceiption(String receiption) {
  165 + this.receiption = receiption == null ? null : receiption.trim();
  166 + }
  167 +
  168 + public String getStatus() {
  169 + return status;
  170 + }
  171 +
  172 + public void setStatus(String status) {
  173 + this.status = status == null ? null : status.trim();
  174 + }
  175 +}
  1 +package com.tianbo.analysis.model;
  2 +
  3 +import java.util.Date;
  4 +
  5 +public class PREPAREMASTER {
  6 + private String autoid;
  7 +
  8 + private String flightno;
  9 +
  10 + private Date flightdate;
  11 +
  12 + private String originatingstation;
  13 +
  14 + private String destinationstation;
  15 +
  16 + private String waybillnomaster;
  17 +
  18 + private String totalweight;
  19 +
  20 + private String totalpiece;
  21 +
  22 + private String preparetotalpiece;
  23 +
  24 + private String preparetotalweight;
  25 +
  26 + private Date stowagedate;
  27 +
  28 + private String status;
  29 +
  30 + private String carrier;
  31 +
  32 + private String customsstatus;
  33 +
  34 + private String paymode;
  35 +
  36 + private String customscode;
  37 +
  38 + private String agentcode;
  39 +
  40 + private String agentname;
  41 +
  42 + private String shippername;
  43 +
  44 + private String shippercity;
  45 +
  46 + private String shipperaddress;
  47 +
  48 + private String consigneename;
  49 +
  50 + private String consigneecity;
  51 +
  52 + private String consigneeaddress;
  53 +
  54 + private String receiptinformation;
  55 +
  56 + private Date createdate;
  57 +
  58 + private String productname;
  59 +
  60 + private String shipperCode;
  61 +
  62 + private String shipperCountrycode;
  63 +
  64 + private String shipperPhone;
  65 +
  66 + private String shipperFax;
  67 +
  68 + private String consigneeCode;
  69 +
  70 + private String consigneeCountrycode;
  71 +
  72 + private String consigneeFax;
  73 +
  74 + private String consigneePhone;
  75 +
  76 + private String shipperAeo;
  77 +
  78 + private String consigneeAeo;
  79 +
  80 + private String unloadingstation;
  81 +
  82 + public String getAutoid() {
  83 + return autoid;
  84 + }
  85 +
  86 + public void setAutoid(String autoid) {
  87 + this.autoid = autoid == null ? null : autoid.trim();
  88 + }
  89 +
  90 + public String getFlightno() {
  91 + return flightno;
  92 + }
  93 +
  94 + public void setFlightno(String flightno) {
  95 + this.flightno = flightno == null ? null : flightno.trim();
  96 + }
  97 +
  98 + public Date getFlightdate() {
  99 + return flightdate;
  100 + }
  101 +
  102 + public void setFlightdate(Date flightdate) {
  103 + this.flightdate = flightdate;
  104 + }
  105 +
  106 + public String getOriginatingstation() {
  107 + return originatingstation;
  108 + }
  109 +
  110 + public void setOriginatingstation(String originatingstation) {
  111 + this.originatingstation = originatingstation == null ? null : originatingstation.trim();
  112 + }
  113 +
  114 + public String getDestinationstation() {
  115 + return destinationstation;
  116 + }
  117 +
  118 + public void setDestinationstation(String destinationstation) {
  119 + this.destinationstation = destinationstation == null ? null : destinationstation.trim();
  120 + }
  121 +
  122 + public String getWaybillnomaster() {
  123 + return waybillnomaster;
  124 + }
  125 +
  126 + public void setWaybillnomaster(String waybillnomaster) {
  127 + this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim();
  128 + }
  129 +
  130 + public String getTotalweight() {
  131 + return totalweight;
  132 + }
  133 +
  134 + public void setTotalweight(String totalweight) {
  135 + this.totalweight = totalweight == null ? null : totalweight.trim();
  136 + }
  137 +
  138 + public String getTotalpiece() {
  139 + return totalpiece;
  140 + }
  141 +
  142 + public void setTotalpiece(String totalpiece) {
  143 + this.totalpiece = totalpiece == null ? null : totalpiece.trim();
  144 + }
  145 +
  146 + public String getPreparetotalpiece() {
  147 + return preparetotalpiece;
  148 + }
  149 +
  150 + public void setPreparetotalpiece(String preparetotalpiece) {
  151 + this.preparetotalpiece = preparetotalpiece == null ? null : preparetotalpiece.trim();
  152 + }
  153 +
  154 + public String getPreparetotalweight() {
  155 + return preparetotalweight;
  156 + }
  157 +
  158 + public void setPreparetotalweight(String preparetotalweight) {
  159 + this.preparetotalweight = preparetotalweight == null ? null : preparetotalweight.trim();
  160 + }
  161 +
  162 + public Date getStowagedate() {
  163 + return stowagedate;
  164 + }
  165 +
  166 + public void setStowagedate(Date stowagedate) {
  167 + this.stowagedate = stowagedate;
  168 + }
  169 +
  170 + public String getStatus() {
  171 + return status;
  172 + }
  173 +
  174 + public void setStatus(String status) {
  175 + this.status = status == null ? null : status.trim();
  176 + }
  177 +
  178 + public String getCarrier() {
  179 + return carrier;
  180 + }
  181 +
  182 + public void setCarrier(String carrier) {
  183 + this.carrier = carrier == null ? null : carrier.trim();
  184 + }
  185 +
  186 + public String getCustomsstatus() {
  187 + return customsstatus;
  188 + }
  189 +
  190 + public void setCustomsstatus(String customsstatus) {
  191 + this.customsstatus = customsstatus == null ? null : customsstatus.trim();
  192 + }
  193 +
  194 + public String getPaymode() {
  195 + return paymode;
  196 + }
  197 +
  198 + public void setPaymode(String paymode) {
  199 + this.paymode = paymode == null ? null : paymode.trim();
  200 + }
  201 +
  202 + public String getCustomscode() {
  203 + return customscode;
  204 + }
  205 +
  206 + public void setCustomscode(String customscode) {
  207 + this.customscode = customscode == null ? null : customscode.trim();
  208 + }
  209 +
  210 + public String getAgentcode() {
  211 + return agentcode;
  212 + }
  213 +
  214 + public void setAgentcode(String agentcode) {
  215 + this.agentcode = agentcode == null ? null : agentcode.trim();
  216 + }
  217 +
  218 + public String getAgentname() {
  219 + return agentname;
  220 + }
  221 +
  222 + public void setAgentname(String agentname) {
  223 + this.agentname = agentname == null ? null : agentname.trim();
  224 + }
  225 +
  226 + public String getShippername() {
  227 + return shippername;
  228 + }
  229 +
  230 + public void setShippername(String shippername) {
  231 + this.shippername = shippername == null ? null : shippername.trim();
  232 + }
  233 +
  234 + public String getShippercity() {
  235 + return shippercity;
  236 + }
  237 +
  238 + public void setShippercity(String shippercity) {
  239 + this.shippercity = shippercity == null ? null : shippercity.trim();
  240 + }
  241 +
  242 + public String getShipperaddress() {
  243 + return shipperaddress;
  244 + }
  245 +
  246 + public void setShipperaddress(String shipperaddress) {
  247 + this.shipperaddress = shipperaddress == null ? null : shipperaddress.trim();
  248 + }
  249 +
  250 + public String getConsigneename() {
  251 + return consigneename;
  252 + }
  253 +
  254 + public void setConsigneename(String consigneename) {
  255 + this.consigneename = consigneename == null ? null : consigneename.trim();
  256 + }
  257 +
  258 + public String getConsigneecity() {
  259 + return consigneecity;
  260 + }
  261 +
  262 + public void setConsigneecity(String consigneecity) {
  263 + this.consigneecity = consigneecity == null ? null : consigneecity.trim();
  264 + }
  265 +
  266 + public String getConsigneeaddress() {
  267 + return consigneeaddress;
  268 + }
  269 +
  270 + public void setConsigneeaddress(String consigneeaddress) {
  271 + this.consigneeaddress = consigneeaddress == null ? null : consigneeaddress.trim();
  272 + }
  273 +
  274 + public String getReceiptinformation() {
  275 + return receiptinformation;
  276 + }
  277 +
  278 + public void setReceiptinformation(String receiptinformation) {
  279 + this.receiptinformation = receiptinformation == null ? null : receiptinformation.trim();
  280 + }
  281 +
  282 + public Date getCreatedate() {
  283 + return createdate;
  284 + }
  285 +
  286 + public void setCreatedate(Date createdate) {
  287 + this.createdate = createdate;
  288 + }
  289 +
  290 + public String getProductname() {
  291 + return productname;
  292 + }
  293 +
  294 + public void setProductname(String productname) {
  295 + this.productname = productname == null ? null : productname.trim();
  296 + }
  297 +
  298 + public String getShipperCode() {
  299 + return shipperCode;
  300 + }
  301 +
  302 + public void setShipperCode(String shipperCode) {
  303 + this.shipperCode = shipperCode == null ? null : shipperCode.trim();
  304 + }
  305 +
  306 + public String getShipperCountrycode() {
  307 + return shipperCountrycode;
  308 + }
  309 +
  310 + public void setShipperCountrycode(String shipperCountrycode) {
  311 + this.shipperCountrycode = shipperCountrycode == null ? null : shipperCountrycode.trim();
  312 + }
  313 +
  314 + public String getShipperPhone() {
  315 + return shipperPhone;
  316 + }
  317 +
  318 + public void setShipperPhone(String shipperPhone) {
  319 + this.shipperPhone = shipperPhone == null ? null : shipperPhone.trim();
  320 + }
  321 +
  322 + public String getShipperFax() {
  323 + return shipperFax;
  324 + }
  325 +
  326 + public void setShipperFax(String shipperFax) {
  327 + this.shipperFax = shipperFax == null ? null : shipperFax.trim();
  328 + }
  329 +
  330 + public String getConsigneeCode() {
  331 + return consigneeCode;
  332 + }
  333 +
  334 + public void setConsigneeCode(String consigneeCode) {
  335 + this.consigneeCode = consigneeCode == null ? null : consigneeCode.trim();
  336 + }
  337 +
  338 + public String getConsigneeCountrycode() {
  339 + return consigneeCountrycode;
  340 + }
  341 +
  342 + public void setConsigneeCountrycode(String consigneeCountrycode) {
  343 + this.consigneeCountrycode = consigneeCountrycode == null ? null : consigneeCountrycode.trim();
  344 + }
  345 +
  346 + public String getConsigneeFax() {
  347 + return consigneeFax;
  348 + }
  349 +
  350 + public void setConsigneeFax(String consigneeFax) {
  351 + this.consigneeFax = consigneeFax == null ? null : consigneeFax.trim();
  352 + }
  353 +
  354 + public String getConsigneePhone() {
  355 + return consigneePhone;
  356 + }
  357 +
  358 + public void setConsigneePhone(String consigneePhone) {
  359 + this.consigneePhone = consigneePhone == null ? null : consigneePhone.trim();
  360 + }
  361 +
  362 + public String getShipperAeo() {
  363 + return shipperAeo;
  364 + }
  365 +
  366 + public void setShipperAeo(String shipperAeo) {
  367 + this.shipperAeo = shipperAeo == null ? null : shipperAeo.trim();
  368 + }
  369 +
  370 + public String getConsigneeAeo() {
  371 + return consigneeAeo;
  372 + }
  373 +
  374 + public void setConsigneeAeo(String consigneeAeo) {
  375 + this.consigneeAeo = consigneeAeo == null ? null : consigneeAeo.trim();
  376 + }
  377 +
  378 + public String getUnloadingstation() {
  379 + return unloadingstation;
  380 + }
  381 +
  382 + public void setUnloadingstation(String unloadingstation) {
  383 + this.unloadingstation = unloadingstation == null ? null : unloadingstation.trim();
  384 + }
  385 +}
  1 +package com.tianbo.analysis.model;
  2 +
  3 +import java.math.BigDecimal;
  4 +import java.util.Date;
  5 +
  6 +public class PREPARESECONDARY {
  7 + private String id;
  8 +
  9 + private String waybillnomaster;
  10 +
  11 + private String waybillnosecondary;
  12 +
  13 + private String totalweight;
  14 +
  15 + private String totalpiece;
  16 +
  17 + private String preparepiece;
  18 +
  19 + private String prepareweight;
  20 +
  21 + private String productname;
  22 +
  23 + private Date stowagedate;
  24 +
  25 + private Date createdate;
  26 +
  27 + private Short preparemasterid;
  28 +
  29 + private String autoid;
  30 +
  31 + private Date modifyDate;
  32 +
  33 + private BigDecimal modifier;
  34 +
  35 + private BigDecimal isDelete;
  36 +
  37 + private BigDecimal creator;
  38 +
  39 + private Date createDate;
  40 +
  41 + private String flightno;
  42 +
  43 + private Date flightdate;
  44 +
  45 + private String originatingstation;
  46 +
  47 + private String destinationstation;
  48 +
  49 + private String agentcompanycode;
  50 +
  51 + private String status;
  52 +
  53 + private String carrier;
  54 +
  55 + private String customsstatus;
  56 +
  57 + private String paymode;
  58 +
  59 + private String specialgoodscode;
  60 +
  61 + private String customscode;
  62 +
  63 + private String agentman;
  64 +
  65 + private String agentcompany;
  66 +
  67 + private String receiptinformation;
  68 +
  69 + private String unnumber;
  70 +
  71 + private String category;
  72 +
  73 + private String shCompany;
  74 +
  75 + private String shAddress;
  76 +
  77 + private String shZipcode;
  78 +
  79 + private String shCity;
  80 +
  81 + private String shDeltaname;
  82 +
  83 + private String shCountry;
  84 +
  85 + private String shTelephone;
  86 +
  87 + private String shFax;
  88 +
  89 + private String shName;
  90 +
  91 + private String coCompany;
  92 +
  93 + private String coAddress;
  94 +
  95 + private String coZipcode;
  96 +
  97 + private String coCity;
  98 +
  99 + private String coDeltaname;
  100 +
  101 + private String coCountry;
  102 +
  103 + private String coTelephone;
  104 +
  105 + private String coFax;
  106 +
  107 + private String coName;
  108 +
  109 + private String reachStation;
  110 +
  111 + private String carrier1;
  112 +
  113 + private String reachStation1;
  114 +
  115 + private String carrier2;
  116 +
  117 + private String reachStation2;
  118 +
  119 + private String nameOfgoods;
  120 +
  121 + private String deliveryStation;
  122 +
  123 + private String shProvincecode;
  124 +
  125 + private String shProvincename;
  126 +
  127 + private String deNumber;
  128 +
  129 + private String deWeight;
  130 +
  131 + private String deChweight;
  132 +
  133 + private String deSize;
  134 +
  135 + private String deVolume;
  136 +
  137 + private String deType;
  138 +
  139 + private String deTrstation;
  140 +
  141 + private String dePacking;
  142 +
  143 + private String deRemarks;
  144 +
  145 + private Short deIds;
  146 +
  147 + private String responseCode;
  148 +
  149 + private String responseText;
  150 +
  151 + private Short saveTime;
  152 +
  153 + private Short userId;
  154 +
  155 + private String shpaeo;
  156 +
  157 + private String cneaeo;
  158 +
  159 + private String shpcusid;
  160 +
  161 + private String cnecusid;
  162 +
  163 + private String unlodingcode;
  164 +
  165 + public String getId() {
  166 + return id;
  167 + }
  168 +
  169 + public void setId(String id) {
  170 + this.id = id;
  171 + }
  172 +
  173 + public String getWaybillnomaster() {
  174 + return waybillnomaster;
  175 + }
  176 +
  177 + public void setWaybillnomaster(String waybillnomaster) {
  178 + this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim();
  179 + }
  180 +
  181 + public String getWaybillnosecondary() {
  182 + return waybillnosecondary;
  183 + }
  184 +
  185 + public void setWaybillnosecondary(String waybillnosecondary) {
  186 + this.waybillnosecondary = waybillnosecondary == null ? null : waybillnosecondary.trim();
  187 + }
  188 +
  189 + public String getTotalweight() {
  190 + return totalweight;
  191 + }
  192 +
  193 + public void setTotalweight(String totalweight) {
  194 + this.totalweight = totalweight == null ? null : totalweight.trim();
  195 + }
  196 +
  197 + public String getTotalpiece() {
  198 + return totalpiece;
  199 + }
  200 +
  201 + public void setTotalpiece(String totalpiece) {
  202 + this.totalpiece = totalpiece == null ? null : totalpiece.trim();
  203 + }
  204 +
  205 + public String getPreparepiece() {
  206 + return preparepiece;
  207 + }
  208 +
  209 + public void setPreparepiece(String preparepiece) {
  210 + this.preparepiece = preparepiece == null ? null : preparepiece.trim();
  211 + }
  212 +
  213 + public String getPrepareweight() {
  214 + return prepareweight;
  215 + }
  216 +
  217 + public void setPrepareweight(String prepareweight) {
  218 + this.prepareweight = prepareweight == null ? null : prepareweight.trim();
  219 + }
  220 +
  221 + public String getProductname() {
  222 + return productname;
  223 + }
  224 +
  225 + public void setProductname(String productname) {
  226 + this.productname = productname == null ? null : productname.trim();
  227 + }
  228 +
  229 + public Date getStowagedate() {
  230 + return stowagedate;
  231 + }
  232 +
  233 + public void setStowagedate(Date stowagedate) {
  234 + this.stowagedate = stowagedate;
  235 + }
  236 +
  237 + public Date getCreatedate() {
  238 + return createdate;
  239 + }
  240 +
  241 + public void setCreatedate(Date createdate) {
  242 + this.createdate = createdate;
  243 + }
  244 +
  245 + public Short getPreparemasterid() {
  246 + return preparemasterid;
  247 + }
  248 +
  249 + public void setPreparemasterid(Short preparemasterid) {
  250 + this.preparemasterid = preparemasterid;
  251 + }
  252 +
  253 + public String getAutoid() {
  254 + return autoid;
  255 + }
  256 +
  257 + public void setAutoid(String autoid) {
  258 + this.autoid = autoid;
  259 + }
  260 +
  261 + public Date getModifyDate() {
  262 + return modifyDate;
  263 + }
  264 +
  265 + public void setModifyDate(Date modifyDate) {
  266 + this.modifyDate = modifyDate;
  267 + }
  268 +
  269 + public BigDecimal getModifier() {
  270 + return modifier;
  271 + }
  272 +
  273 + public void setModifier(BigDecimal modifier) {
  274 + this.modifier = modifier;
  275 + }
  276 +
  277 + public BigDecimal getIsDelete() {
  278 + return isDelete;
  279 + }
  280 +
  281 + public void setIsDelete(BigDecimal isDelete) {
  282 + this.isDelete = isDelete;
  283 + }
  284 +
  285 + public BigDecimal getCreator() {
  286 + return creator;
  287 + }
  288 +
  289 + public void setCreator(BigDecimal creator) {
  290 + this.creator = creator;
  291 + }
  292 +
  293 + public Date getCreateDate() {
  294 + return createDate;
  295 + }
  296 +
  297 + public void setCreateDate(Date createDate) {
  298 + this.createDate = createDate;
  299 + }
  300 +
  301 + public String getFlightno() {
  302 + return flightno;
  303 + }
  304 +
  305 + public void setFlightno(String flightno) {
  306 + this.flightno = flightno == null ? null : flightno.trim();
  307 + }
  308 +
  309 + public Date getFlightdate() {
  310 + return flightdate;
  311 + }
  312 +
  313 + public void setFlightdate(Date flightdate) {
  314 + this.flightdate = flightdate;
  315 + }
  316 +
  317 + public String getOriginatingstation() {
  318 + return originatingstation;
  319 + }
  320 +
  321 + public void setOriginatingstation(String originatingstation) {
  322 + this.originatingstation = originatingstation == null ? null : originatingstation.trim();
  323 + }
  324 +
  325 + public String getDestinationstation() {
  326 + return destinationstation;
  327 + }
  328 +
  329 + public void setDestinationstation(String destinationstation) {
  330 + this.destinationstation = destinationstation == null ? null : destinationstation.trim();
  331 + }
  332 +
  333 + public String getAgentcompanycode() {
  334 + return agentcompanycode;
  335 + }
  336 +
  337 + public void setAgentcompanycode(String agentcompanycode) {
  338 + this.agentcompanycode = agentcompanycode == null ? null : agentcompanycode.trim();
  339 + }
  340 +
  341 + public String getStatus() {
  342 + return status;
  343 + }
  344 +
  345 + public void setStatus(String status) {
  346 + this.status = status == null ? null : status.trim();
  347 + }
  348 +
  349 + public String getCarrier() {
  350 + return carrier;
  351 + }
  352 +
  353 + public void setCarrier(String carrier) {
  354 + this.carrier = carrier == null ? null : carrier.trim();
  355 + }
  356 +
  357 + public String getCustomsstatus() {
  358 + return customsstatus;
  359 + }
  360 +
  361 + public void setCustomsstatus(String customsstatus) {
  362 + this.customsstatus = customsstatus == null ? null : customsstatus.trim();
  363 + }
  364 +
  365 + public String getPaymode() {
  366 + return paymode;
  367 + }
  368 +
  369 + public void setPaymode(String paymode) {
  370 + this.paymode = paymode == null ? null : paymode.trim();
  371 + }
  372 +
  373 + public String getSpecialgoodscode() {
  374 + return specialgoodscode;
  375 + }
  376 +
  377 + public void setSpecialgoodscode(String specialgoodscode) {
  378 + this.specialgoodscode = specialgoodscode == null ? null : specialgoodscode.trim();
  379 + }
  380 +
  381 + public String getCustomscode() {
  382 + return customscode;
  383 + }
  384 +
  385 + public void setCustomscode(String customscode) {
  386 + this.customscode = customscode == null ? null : customscode.trim();
  387 + }
  388 +
  389 + public String getAgentman() {
  390 + return agentman;
  391 + }
  392 +
  393 + public void setAgentman(String agentman) {
  394 + this.agentman = agentman == null ? null : agentman.trim();
  395 + }
  396 +
  397 + public String getAgentcompany() {
  398 + return agentcompany;
  399 + }
  400 +
  401 + public void setAgentcompany(String agentcompany) {
  402 + this.agentcompany = agentcompany == null ? null : agentcompany.trim();
  403 + }
  404 +
  405 + public String getReceiptinformation() {
  406 + return receiptinformation;
  407 + }
  408 +
  409 + public void setReceiptinformation(String receiptinformation) {
  410 + this.receiptinformation = receiptinformation == null ? null : receiptinformation.trim();
  411 + }
  412 +
  413 + public String getUnnumber() {
  414 + return unnumber;
  415 + }
  416 +
  417 + public void setUnnumber(String unnumber) {
  418 + this.unnumber = unnumber == null ? null : unnumber.trim();
  419 + }
  420 +
  421 + public String getCategory() {
  422 + return category;
  423 + }
  424 +
  425 + public void setCategory(String category) {
  426 + this.category = category == null ? null : category.trim();
  427 + }
  428 +
  429 + public String getShCompany() {
  430 + return shCompany;
  431 + }
  432 +
  433 + public void setShCompany(String shCompany) {
  434 + this.shCompany = shCompany == null ? null : shCompany.trim();
  435 + }
  436 +
  437 + public String getShAddress() {
  438 + return shAddress;
  439 + }
  440 +
  441 + public void setShAddress(String shAddress) {
  442 + this.shAddress = shAddress == null ? null : shAddress.trim();
  443 + }
  444 +
  445 + public String getShZipcode() {
  446 + return shZipcode;
  447 + }
  448 +
  449 + public void setShZipcode(String shZipcode) {
  450 + this.shZipcode = shZipcode == null ? null : shZipcode.trim();
  451 + }
  452 +
  453 + public String getShCity() {
  454 + return shCity;
  455 + }
  456 +
  457 + public void setShCity(String shCity) {
  458 + this.shCity = shCity == null ? null : shCity.trim();
  459 + }
  460 +
  461 + public String getShDeltaname() {
  462 + return shDeltaname;
  463 + }
  464 +
  465 + public void setShDeltaname(String shDeltaname) {
  466 + this.shDeltaname = shDeltaname == null ? null : shDeltaname.trim();
  467 + }
  468 +
  469 + public String getShCountry() {
  470 + return shCountry;
  471 + }
  472 +
  473 + public void setShCountry(String shCountry) {
  474 + this.shCountry = shCountry == null ? null : shCountry.trim();
  475 + }
  476 +
  477 + public String getShTelephone() {
  478 + return shTelephone;
  479 + }
  480 +
  481 + public void setShTelephone(String shTelephone) {
  482 + this.shTelephone = shTelephone == null ? null : shTelephone.trim();
  483 + }
  484 +
  485 + public String getShFax() {
  486 + return shFax;
  487 + }
  488 +
  489 + public void setShFax(String shFax) {
  490 + this.shFax = shFax == null ? null : shFax.trim();
  491 + }
  492 +
  493 + public String getShName() {
  494 + return shName;
  495 + }
  496 +
  497 + public void setShName(String shName) {
  498 + this.shName = shName == null ? null : shName.trim();
  499 + }
  500 +
  501 + public String getCoCompany() {
  502 + return coCompany;
  503 + }
  504 +
  505 + public void setCoCompany(String coCompany) {
  506 + this.coCompany = coCompany == null ? null : coCompany.trim();
  507 + }
  508 +
  509 + public String getCoAddress() {
  510 + return coAddress;
  511 + }
  512 +
  513 + public void setCoAddress(String coAddress) {
  514 + this.coAddress = coAddress == null ? null : coAddress.trim();
  515 + }
  516 +
  517 + public String getCoZipcode() {
  518 + return coZipcode;
  519 + }
  520 +
  521 + public void setCoZipcode(String coZipcode) {
  522 + this.coZipcode = coZipcode == null ? null : coZipcode.trim();
  523 + }
  524 +
  525 + public String getCoCity() {
  526 + return coCity;
  527 + }
  528 +
  529 + public void setCoCity(String coCity) {
  530 + this.coCity = coCity == null ? null : coCity.trim();
  531 + }
  532 +
  533 + public String getCoDeltaname() {
  534 + return coDeltaname;
  535 + }
  536 +
  537 + public void setCoDeltaname(String coDeltaname) {
  538 + this.coDeltaname = coDeltaname == null ? null : coDeltaname.trim();
  539 + }
  540 +
  541 + public String getCoCountry() {
  542 + return coCountry;
  543 + }
  544 +
  545 + public void setCoCountry(String coCountry) {
  546 + this.coCountry = coCountry == null ? null : coCountry.trim();
  547 + }
  548 +
  549 + public String getCoTelephone() {
  550 + return coTelephone;
  551 + }
  552 +
  553 + public void setCoTelephone(String coTelephone) {
  554 + this.coTelephone = coTelephone == null ? null : coTelephone.trim();
  555 + }
  556 +
  557 + public String getCoFax() {
  558 + return coFax;
  559 + }
  560 +
  561 + public void setCoFax(String coFax) {
  562 + this.coFax = coFax == null ? null : coFax.trim();
  563 + }
  564 +
  565 + public String getCoName() {
  566 + return coName;
  567 + }
  568 +
  569 + public void setCoName(String coName) {
  570 + this.coName = coName == null ? null : coName.trim();
  571 + }
  572 +
  573 + public String getReachStation() {
  574 + return reachStation;
  575 + }
  576 +
  577 + public void setReachStation(String reachStation) {
  578 + this.reachStation = reachStation == null ? null : reachStation.trim();
  579 + }
  580 +
  581 + public String getCarrier1() {
  582 + return carrier1;
  583 + }
  584 +
  585 + public void setCarrier1(String carrier1) {
  586 + this.carrier1 = carrier1 == null ? null : carrier1.trim();
  587 + }
  588 +
  589 + public String getReachStation1() {
  590 + return reachStation1;
  591 + }
  592 +
  593 + public void setReachStation1(String reachStation1) {
  594 + this.reachStation1 = reachStation1 == null ? null : reachStation1.trim();
  595 + }
  596 +
  597 + public String getCarrier2() {
  598 + return carrier2;
  599 + }
  600 +
  601 + public void setCarrier2(String carrier2) {
  602 + this.carrier2 = carrier2 == null ? null : carrier2.trim();
  603 + }
  604 +
  605 + public String getReachStation2() {
  606 + return reachStation2;
  607 + }
  608 +
  609 + public void setReachStation2(String reachStation2) {
  610 + this.reachStation2 = reachStation2 == null ? null : reachStation2.trim();
  611 + }
  612 +
  613 + public String getNameOfgoods() {
  614 + return nameOfgoods;
  615 + }
  616 +
  617 + public void setNameOfgoods(String nameOfgoods) {
  618 + this.nameOfgoods = nameOfgoods == null ? null : nameOfgoods.trim();
  619 + }
  620 +
  621 + public String getDeliveryStation() {
  622 + return deliveryStation;
  623 + }
  624 +
  625 + public void setDeliveryStation(String deliveryStation) {
  626 + this.deliveryStation = deliveryStation == null ? null : deliveryStation.trim();
  627 + }
  628 +
  629 + public String getShProvincecode() {
  630 + return shProvincecode;
  631 + }
  632 +
  633 + public void setShProvincecode(String shProvincecode) {
  634 + this.shProvincecode = shProvincecode == null ? null : shProvincecode.trim();
  635 + }
  636 +
  637 + public String getShProvincename() {
  638 + return shProvincename;
  639 + }
  640 +
  641 + public void setShProvincename(String shProvincename) {
  642 + this.shProvincename = shProvincename == null ? null : shProvincename.trim();
  643 + }
  644 +
  645 + public String getDeNumber() {
  646 + return deNumber;
  647 + }
  648 +
  649 + public void setDeNumber(String deNumber) {
  650 + this.deNumber = deNumber == null ? null : deNumber.trim();
  651 + }
  652 +
  653 + public String getDeWeight() {
  654 + return deWeight;
  655 + }
  656 +
  657 + public void setDeWeight(String deWeight) {
  658 + this.deWeight = deWeight == null ? null : deWeight.trim();
  659 + }
  660 +
  661 + public String getDeChweight() {
  662 + return deChweight;
  663 + }
  664 +
  665 + public void setDeChweight(String deChweight) {
  666 + this.deChweight = deChweight == null ? null : deChweight.trim();
  667 + }
  668 +
  669 + public String getDeSize() {
  670 + return deSize;
  671 + }
  672 +
  673 + public void setDeSize(String deSize) {
  674 + this.deSize = deSize == null ? null : deSize.trim();
  675 + }
  676 +
  677 + public String getDeVolume() {
  678 + return deVolume;
  679 + }
  680 +
  681 + public void setDeVolume(String deVolume) {
  682 + this.deVolume = deVolume == null ? null : deVolume.trim();
  683 + }
  684 +
  685 + public String getDeType() {
  686 + return deType;
  687 + }
  688 +
  689 + public void setDeType(String deType) {
  690 + this.deType = deType == null ? null : deType.trim();
  691 + }
  692 +
  693 + public String getDeTrstation() {
  694 + return deTrstation;
  695 + }
  696 +
  697 + public void setDeTrstation(String deTrstation) {
  698 + this.deTrstation = deTrstation == null ? null : deTrstation.trim();
  699 + }
  700 +
  701 + public String getDePacking() {
  702 + return dePacking;
  703 + }
  704 +
  705 + public void setDePacking(String dePacking) {
  706 + this.dePacking = dePacking == null ? null : dePacking.trim();
  707 + }
  708 +
  709 + public String getDeRemarks() {
  710 + return deRemarks;
  711 + }
  712 +
  713 + public void setDeRemarks(String deRemarks) {
  714 + this.deRemarks = deRemarks == null ? null : deRemarks.trim();
  715 + }
  716 +
  717 + public Short getDeIds() {
  718 + return deIds;
  719 + }
  720 +
  721 + public void setDeIds(Short deIds) {
  722 + this.deIds = deIds;
  723 + }
  724 +
  725 + public String getResponseCode() {
  726 + return responseCode;
  727 + }
  728 +
  729 + public void setResponseCode(String responseCode) {
  730 + this.responseCode = responseCode == null ? null : responseCode.trim();
  731 + }
  732 +
  733 + public String getResponseText() {
  734 + return responseText;
  735 + }
  736 +
  737 + public void setResponseText(String responseText) {
  738 + this.responseText = responseText == null ? null : responseText.trim();
  739 + }
  740 +
  741 + public Short getSaveTime() {
  742 + return saveTime;
  743 + }
  744 +
  745 + public void setSaveTime(Short saveTime) {
  746 + this.saveTime = saveTime;
  747 + }
  748 +
  749 + public Short getUserId() {
  750 + return userId;
  751 + }
  752 +
  753 + public void setUserId(Short userId) {
  754 + this.userId = userId;
  755 + }
  756 +
  757 + public String getShpaeo() {
  758 + return shpaeo;
  759 + }
  760 +
  761 + public void setShpaeo(String shpaeo) {
  762 + this.shpaeo = shpaeo == null ? null : shpaeo.trim();
  763 + }
  764 +
  765 + public String getCneaeo() {
  766 + return cneaeo;
  767 + }
  768 +
  769 + public void setCneaeo(String cneaeo) {
  770 + this.cneaeo = cneaeo == null ? null : cneaeo.trim();
  771 + }
  772 +
  773 + public String getShpcusid() {
  774 + return shpcusid;
  775 + }
  776 +
  777 + public void setShpcusid(String shpcusid) {
  778 + this.shpcusid = shpcusid == null ? null : shpcusid.trim();
  779 + }
  780 +
  781 + public String getCnecusid() {
  782 + return cnecusid;
  783 + }
  784 +
  785 + public void setCnecusid(String cnecusid) {
  786 + this.cnecusid = cnecusid == null ? null : cnecusid.trim();
  787 + }
  788 +
  789 + public String getUnlodingcode() {
  790 + return unlodingcode;
  791 + }
  792 +
  793 + public void setUnlodingcode(String unlodingcode) {
  794 + this.unlodingcode = unlodingcode == null ? null : unlodingcode.trim();
  795 + }
  796 +}
  1 +package com.tianbo.analysis.model;
  2 +
  3 +import java.util.Date;
  4 +
  5 +public class TALLYMASTER {
  6 + private String autoid;
  7 +
  8 + private String waybillnomaster;
  9 +
  10 + private String tcdName;
  11 +
  12 + private String tcdTypecode;
  13 +
  14 + private String talltype;
  15 +
  16 + private String flightno;
  17 +
  18 + private Date flightdate;
  19 +
  20 + private String segment;
  21 +
  22 + private String originatingstation;
  23 +
  24 + private String oName;
  25 +
  26 + private String destinationstation;
  27 +
  28 + private String fdName;
  29 +
  30 + private String totalweight;
  31 +
  32 + private String totalgrossweightmeasureuc;
  33 +
  34 + private String totalpiece;
  35 +
  36 + private String tallytotalpiece;
  37 +
  38 + private String tallytotalweight;
  39 +
  40 + private String grossweightmeasureuc;
  41 +
  42 + private Date loadstarttime;
  43 +
  44 + private Date loadendtime;
  45 +
  46 + private String status;
  47 +
  48 + private String customscode;
  49 +
  50 + private String productname;
  51 +
  52 + private Date dischargedate;
  53 +
  54 + private String receiptinformation;
  55 +
  56 + private Date createdate;
  57 +
  58 + private String dealFlag;
  59 +
  60 + private String billTallyFlag;
  61 +
  62 + private Date dealTime;
  63 +
  64 + private String transportsplitdescription;
  65 +
  66 + public String getAutoid() {
  67 + return autoid;
  68 + }
  69 +
  70 + public void setAutoid(String autoid) {
  71 + this.autoid = autoid == null ? null : autoid.trim();
  72 + }
  73 +
  74 + public String getWaybillnomaster() {
  75 + return waybillnomaster;
  76 + }
  77 +
  78 + public void setWaybillnomaster(String waybillnomaster) {
  79 + this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim();
  80 + }
  81 +
  82 + public String getTcdName() {
  83 + return tcdName;
  84 + }
  85 +
  86 + public void setTcdName(String tcdName) {
  87 + this.tcdName = tcdName == null ? null : tcdName.trim();
  88 + }
  89 +
  90 + public String getTcdTypecode() {
  91 + return tcdTypecode;
  92 + }
  93 +
  94 + public void setTcdTypecode(String tcdTypecode) {
  95 + this.tcdTypecode = tcdTypecode == null ? null : tcdTypecode.trim();
  96 + }
  97 +
  98 + public String getTalltype() {
  99 + return talltype;
  100 + }
  101 +
  102 + public void setTalltype(String talltype) {
  103 + this.talltype = talltype == null ? null : talltype.trim();
  104 + }
  105 +
  106 + public String getFlightno() {
  107 + return flightno;
  108 + }
  109 +
  110 + public void setFlightno(String flightno) {
  111 + this.flightno = flightno == null ? null : flightno.trim();
  112 + }
  113 +
  114 + public Date getFlightdate() {
  115 + return flightdate;
  116 + }
  117 +
  118 + public void setFlightdate(Date flightdate) {
  119 + this.flightdate = flightdate;
  120 + }
  121 +
  122 + public String getSegment() {
  123 + return segment;
  124 + }
  125 +
  126 + public void setSegment(String segment) {
  127 + this.segment = segment == null ? null : segment.trim();
  128 + }
  129 +
  130 + public String getOriginatingstation() {
  131 + return originatingstation;
  132 + }
  133 +
  134 + public void setOriginatingstation(String originatingstation) {
  135 + this.originatingstation = originatingstation == null ? null : originatingstation.trim();
  136 + }
  137 +
  138 + public String getoName() {
  139 + return oName;
  140 + }
  141 +
  142 + public void setoName(String oName) {
  143 + this.oName = oName == null ? null : oName.trim();
  144 + }
  145 +
  146 + public String getDestinationstation() {
  147 + return destinationstation;
  148 + }
  149 +
  150 + public void setDestinationstation(String destinationstation) {
  151 + this.destinationstation = destinationstation == null ? null : destinationstation.trim();
  152 + }
  153 +
  154 + public String getFdName() {
  155 + return fdName;
  156 + }
  157 +
  158 + public void setFdName(String fdName) {
  159 + this.fdName = fdName == null ? null : fdName.trim();
  160 + }
  161 +
  162 + public String getTotalweight() {
  163 + return totalweight;
  164 + }
  165 +
  166 + public void setTotalweight(String totalweight) {
  167 + this.totalweight = totalweight == null ? null : totalweight.trim();
  168 + }
  169 +
  170 + public String getTotalgrossweightmeasureuc() {
  171 + return totalgrossweightmeasureuc;
  172 + }
  173 +
  174 + public void setTotalgrossweightmeasureuc(String totalgrossweightmeasureuc) {
  175 + this.totalgrossweightmeasureuc = totalgrossweightmeasureuc == null ? null : totalgrossweightmeasureuc.trim();
  176 + }
  177 +
  178 + public String getTotalpiece() {
  179 + return totalpiece;
  180 + }
  181 +
  182 + public void setTotalpiece(String totalpiece) {
  183 + this.totalpiece = totalpiece == null ? null : totalpiece.trim();
  184 + }
  185 +
  186 + public String getTallytotalpiece() {
  187 + return tallytotalpiece;
  188 + }
  189 +
  190 + public void setTallytotalpiece(String tallytotalpiece) {
  191 + this.tallytotalpiece = tallytotalpiece == null ? null : tallytotalpiece.trim();
  192 + }
  193 +
  194 + public String getTallytotalweight() {
  195 + return tallytotalweight;
  196 + }
  197 +
  198 + public void setTallytotalweight(String tallytotalweight) {
  199 + this.tallytotalweight = tallytotalweight == null ? null : tallytotalweight.trim();
  200 + }
  201 +
  202 + public String getGrossweightmeasureuc() {
  203 + return grossweightmeasureuc;
  204 + }
  205 +
  206 + public void setGrossweightmeasureuc(String grossweightmeasureuc) {
  207 + this.grossweightmeasureuc = grossweightmeasureuc == null ? null : grossweightmeasureuc.trim();
  208 + }
  209 +
  210 + public Date getLoadstarttime() {
  211 + return loadstarttime;
  212 + }
  213 +
  214 + public void setLoadstarttime(Date loadstarttime) {
  215 + this.loadstarttime = loadstarttime;
  216 + }
  217 +
  218 + public Date getLoadendtime() {
  219 + return loadendtime;
  220 + }
  221 +
  222 + public void setLoadendtime(Date loadendtime) {
  223 + this.loadendtime = loadendtime;
  224 + }
  225 +
  226 + public String getStatus() {
  227 + return status;
  228 + }
  229 +
  230 + public void setStatus(String status) {
  231 + this.status = status == null ? null : status.trim();
  232 + }
  233 +
  234 + public String getCustomscode() {
  235 + return customscode;
  236 + }
  237 +
  238 + public void setCustomscode(String customscode) {
  239 + this.customscode = customscode == null ? null : customscode.trim();
  240 + }
  241 +
  242 + public String getProductname() {
  243 + return productname;
  244 + }
  245 +
  246 + public void setProductname(String productname) {
  247 + this.productname = productname == null ? null : productname.trim();
  248 + }
  249 +
  250 + public Date getDischargedate() {
  251 + return dischargedate;
  252 + }
  253 +
  254 + public void setDischargedate(Date dischargedate) {
  255 + this.dischargedate = dischargedate;
  256 + }
  257 +
  258 + public String getReceiptinformation() {
  259 + return receiptinformation;
  260 + }
  261 +
  262 + public void setReceiptinformation(String receiptinformation) {
  263 + this.receiptinformation = receiptinformation == null ? null : receiptinformation.trim();
  264 + }
  265 +
  266 + public Date getCreatedate() {
  267 + return createdate;
  268 + }
  269 +
  270 + public void setCreatedate(Date createdate) {
  271 + this.createdate = createdate;
  272 + }
  273 +
  274 + public String getDealFlag() {
  275 + return dealFlag;
  276 + }
  277 +
  278 + public void setDealFlag(String dealFlag) {
  279 + this.dealFlag = dealFlag == null ? null : dealFlag.trim();
  280 + }
  281 +
  282 + public String getBillTallyFlag() {
  283 + return billTallyFlag;
  284 + }
  285 +
  286 + public void setBillTallyFlag(String billTallyFlag) {
  287 + this.billTallyFlag = billTallyFlag == null ? null : billTallyFlag.trim();
  288 + }
  289 +
  290 + public Date getDealTime() {
  291 + return dealTime;
  292 + }
  293 +
  294 + public void setDealTime(Date dealTime) {
  295 + this.dealTime = dealTime;
  296 + }
  297 +
  298 + public String getTransportsplitdescription() {
  299 + return transportsplitdescription;
  300 + }
  301 +
  302 + public void setTransportsplitdescription(String transportsplitdescription) {
  303 + this.transportsplitdescription = transportsplitdescription == null ? null : transportsplitdescription.trim();
  304 + }
  305 +}
  1 +package com.tianbo.analysis.model;
  2 +
  3 +import java.util.Date;
  4 +
  5 +public class TALLYSECONDARY {
  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 tallypiece;
  17 +
  18 + private String tallyweight;
  19 +
  20 + private String customscode;
  21 +
  22 + private String productname;
  23 +
  24 + private Date dischargedate;
  25 +
  26 + private Date createdate;
  27 +
  28 + private Date loadstarttime;
  29 +
  30 + private Date loadendtime;
  31 +
  32 + private String tallymasterid;
  33 +
  34 + private String dealFlag;
  35 +
  36 + private String billTallyFlag;
  37 +
  38 + private Date dealTime;
  39 +
  40 + private String status;
  41 +
  42 + private String receiptinformation;
  43 +
  44 + public String getAutoid() {
  45 + return autoid;
  46 + }
  47 +
  48 + public void setAutoid(String autoid) {
  49 + this.autoid = autoid == null ? null : autoid.trim();
  50 + }
  51 +
  52 + public String getWaybillnomaster() {
  53 + return waybillnomaster;
  54 + }
  55 +
  56 + public void setWaybillnomaster(String waybillnomaster) {
  57 + this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim();
  58 + }
  59 +
  60 + public String getWaybillnosecondary() {
  61 + return waybillnosecondary;
  62 + }
  63 +
  64 + public void setWaybillnosecondary(String waybillnosecondary) {
  65 + this.waybillnosecondary = waybillnosecondary == null ? null : waybillnosecondary.trim();
  66 + }
  67 +
  68 + public String getWeight() {
  69 + return weight;
  70 + }
  71 +
  72 + public void setWeight(String weight) {
  73 + this.weight = weight == null ? null : weight.trim();
  74 + }
  75 +
  76 + public String getPiece() {
  77 + return piece;
  78 + }
  79 +
  80 + public void setPiece(String piece) {
  81 + this.piece = piece == null ? null : piece.trim();
  82 + }
  83 +
  84 + public String getTallypiece() {
  85 + return tallypiece;
  86 + }
  87 +
  88 + public void setTallypiece(String tallypiece) {
  89 + this.tallypiece = tallypiece == null ? null : tallypiece.trim();
  90 + }
  91 +
  92 + public String getTallyweight() {
  93 + return tallyweight;
  94 + }
  95 +
  96 + public void setTallyweight(String tallyweight) {
  97 + this.tallyweight = tallyweight == null ? null : tallyweight.trim();
  98 + }
  99 +
  100 + public String getCustomscode() {
  101 + return customscode;
  102 + }
  103 +
  104 + public void setCustomscode(String customscode) {
  105 + this.customscode = customscode == null ? null : customscode.trim();
  106 + }
  107 +
  108 + public String getProductname() {
  109 + return productname;
  110 + }
  111 +
  112 + public void setProductname(String productname) {
  113 + this.productname = productname == null ? null : productname.trim();
  114 + }
  115 +
  116 + public Date getDischargedate() {
  117 + return dischargedate;
  118 + }
  119 +
  120 + public void setDischargedate(Date dischargedate) {
  121 + this.dischargedate = dischargedate;
  122 + }
  123 +
  124 + public Date getCreatedate() {
  125 + return createdate;
  126 + }
  127 +
  128 + public void setCreatedate(Date createdate) {
  129 + this.createdate = createdate;
  130 + }
  131 +
  132 + public Date getLoadstarttime() {
  133 + return loadstarttime;
  134 + }
  135 +
  136 + public void setLoadstarttime(Date loadstarttime) {
  137 + this.loadstarttime = loadstarttime;
  138 + }
  139 +
  140 + public Date getLoadendtime() {
  141 + return loadendtime;
  142 + }
  143 +
  144 + public void setLoadendtime(Date loadendtime) {
  145 + this.loadendtime = loadendtime;
  146 + }
  147 +
  148 + public String getTallymasterid() {
  149 + return tallymasterid;
  150 + }
  151 +
  152 + public void setTallymasterid(String tallymasterid) {
  153 + this.tallymasterid = tallymasterid == null ? null : tallymasterid.trim();
  154 + }
  155 +
  156 + public String getDealFlag() {
  157 + return dealFlag;
  158 + }
  159 +
  160 + public void setDealFlag(String dealFlag) {
  161 + this.dealFlag = dealFlag == null ? null : dealFlag.trim();
  162 + }
  163 +
  164 + public String getBillTallyFlag() {
  165 + return billTallyFlag;
  166 + }
  167 +
  168 + public void setBillTallyFlag(String billTallyFlag) {
  169 + this.billTallyFlag = billTallyFlag == null ? null : billTallyFlag.trim();
  170 + }
  171 +
  172 + public Date getDealTime() {
  173 + return dealTime;
  174 + }
  175 +
  176 + public void setDealTime(Date dealTime) {
  177 + this.dealTime = dealTime;
  178 + }
  179 +
  180 + public String getStatus() {
  181 + return status;
  182 + }
  183 +
  184 + public void setStatus(String status) {
  185 + this.status = status == null ? null : status.trim();
  186 + }
  187 +
  188 + public String getReceiptinformation() {
  189 + return receiptinformation;
  190 + }
  191 +
  192 + public void setReceiptinformation(String receiptinformation) {
  193 + this.receiptinformation = receiptinformation == null ? null : receiptinformation.trim();
  194 + }
  195 +}
  1 +package com.tianbo.analysis.service;
  2 +
  3 +import com.tianbo.analysis.model.CustomReception;
  4 +
  5 +/**
  6 + * @Auther: shenhl
  7 + * @Date: 2019/8/23 14:59
  8 + */
  9 +public interface ARRIVEDMASTERService {
  10 +
  11 + int insertRecept(CustomReception customReception);
  12 +
  13 +}
  1 +package com.tianbo.analysis.service;
  2 +
  3 +import com.tianbo.analysis.model.CustomReception;
  4 +
  5 +/**
  6 + * @Auther: shenhl
  7 + * @Date: 2019/8/26 10:23
  8 + */
  9 +public interface DEPARTURESLOADINGService {
  10 +
  11 +
  12 + int insertRecept(CustomReception customReception);
  13 +
  14 +}
  1 +package com.tianbo.analysis.service;
  2 +
  3 +import com.tianbo.analysis.model.CustomReception;
  4 +
  5 +/**
  6 + * @Auther: shenhl
  7 + * @Date: 2019/8/26 15:29
  8 + */
  9 +public interface PREPAREMASTERService {
  10 +
  11 + int insertRecept(CustomReception customReception);
  12 +}
  1 +package com.tianbo.analysis.service;
  2 +
  3 +import com.tianbo.analysis.model.CustomReception;
  4 +
  5 +/**
  6 + * @Auther: shenhl
  7 + * @Date: 2019/8/23 17:16
  8 + */
  9 +public interface TALLYMASTERService {
  10 +
  11 + int insertRecept(CustomReception customReception, String mt);
  12 +}
  1 +package com.tianbo.analysis.service.imp;
  2 +
  3 +import com.tianbo.analysis.dao.ARRIVEDMASTERMapper;
  4 +import com.tianbo.analysis.dao.ARRIVEDSECONDARYMapper;
  5 +import com.tianbo.analysis.model.ARRIVEDMASTER;
  6 +import com.tianbo.analysis.model.ARRIVEDSECONDARY;
  7 +import com.tianbo.analysis.model.CustomReception;
  8 +import com.tianbo.analysis.service.ARRIVEDMASTERService;
  9 +import com.tianbo.util.Date.DateUtil;
  10 +import lombok.extern.slf4j.Slf4j;
  11 +import org.springframework.beans.factory.annotation.Autowired;
  12 +import org.springframework.stereotype.Service;
  13 +
  14 +import java.util.Date;
  15 +import java.util.List;
  16 +
  17 +/**
  18 + * @Auther: shenhl
  19 + * @Date: 2019/8/23 15:02
  20 + */
  21 +@Service
  22 +@Slf4j
  23 +public class ARRIVEDMASTERServiceImp implements ARRIVEDMASTERService {
  24 +
  25 +
  26 + @Autowired
  27 + ARRIVEDMASTERMapper arrivedmasterMapper;
  28 +
  29 + @Autowired
  30 + ARRIVEDSECONDARYMapper arrivedsecondaryMapper;
  31 +
  32 +
  33 + @Override
  34 + // 货物接收运抵主分单
  35 + public int insertRecept(CustomReception customReception) {
  36 +
  37 +
  38 + // 发送日志 插入
  39 + CoustomAnalysisServiceImp coustomAnalysisServiceImp = new CoustomAnalysisServiceImp();
  40 +
  41 + // 主单号
  42 + String awbA = customReception.getWayBillMaster();
  43 + String awbH = customReception.getWayBillSecond();
  44 + //回执内容
  45 + String reception = customReception.getResponseText();
  46 + String flightDateStr = customReception.getFlightDate();
  47 + Date flightDate = DateUtil.formatByyyyyMMdd(flightDateStr);
  48 +
  49 + // 设置 接收运抵分单 回执
  50 + ARRIVEDSECONDARY arrivedsecondary = new ARRIVEDSECONDARY();
  51 + arrivedsecondary.setReceiption(reception);
  52 +
  53 + //设置主单回执、航班号、航班日期
  54 + ARRIVEDMASTER arrivedmaster = new ARRIVEDMASTER();
  55 + arrivedmaster.setReceiptinformation(reception);
  56 + arrivedmaster.setFlightno(customReception.getFlightNo());
  57 + arrivedmaster.setFlightdate(flightDate);
  58 +
  59 + // 判断航班号 航班日期 是否为空
  60 + if (flightDate != null && customReception.getFlightNo() != null){
  61 + if (awbA!=null && awbA.length()>0){
  62 + StringBuffer stringBuffer = new StringBuffer(awbA);
  63 + stringBuffer.insert(3,"-");
  64 + awbA = stringBuffer.toString();
  65 +
  66 + //设置主分单的 主单号
  67 + arrivedsecondary.setWaybillnomaster(awbA);
  68 + arrivedmaster.setWaybillnomaster(awbA);
  69 + }
  70 +
  71 + //有分单号 更新分单
  72 + if(awbA!=null && awbA.length()>0 && awbH!=null && awbH.length()> 0){
  73 + //取分单号
  74 + String[] awbhArr = awbH.split("_");
  75 + String awbh = awbhArr[1];
  76 + arrivedsecondary.setWaybillnosecondary(awbh);
  77 + //更新分单回执
  78 + int i = arrivedsecondaryMapper.updateRECEIPTION(arrivedsecondary);
  79 + //获取分单autoid
  80 + List<ARRIVEDSECONDARY> arrivedsecondaryList = arrivedsecondaryMapper.selectAutoIdByawbAawbH(arrivedsecondary);
  81 + if(!arrivedsecondaryList.isEmpty()){
  82 + ARRIVEDSECONDARY arrivedSecond = arrivedsecondaryList.get(0);
  83 + String autoId = arrivedSecond.getAutoid();
  84 + //插入sendlog记录表
  85 + log.info("即将插入日志运单号为:"+awbH+"->autoid="+autoId);
  86 + int ii = coustomAnalysisServiceImp.insertSendlog("MT3201",reception,autoId);
  87 +
  88 + if (i>0 && ii>0){
  89 + return 1;
  90 + }
  91 + }
  92 + return 0;
  93 + }
  94 +
  95 + //处理主单格式,将海关回执的主单号58019316861,变为580-19316861
  96 + if (awbA!=null && awbA.length()>0){
  97 + //更新主单回执
  98 + int i = arrivedmasterMapper.updateRECEIPTION(arrivedmaster);
  99 + //获取分单autoid
  100 + List<ARRIVEDMASTER> arrivedmasterList = arrivedmasterMapper.selectAutoIdByAwb(arrivedmaster);
  101 + if(!arrivedmasterList.isEmpty()){
  102 + ARRIVEDMASTER originMaster = arrivedmasterList.get(0);
  103 + String autoId = originMaster.getAutoid();
  104 +
  105 + //插入sendlog记录表
  106 + log.info("即将插入日志运单号为:"+awbA+"->autoid="+autoId);
  107 + int ii =coustomAnalysisServiceImp.insertSendlog("MT3201",reception,autoId);
  108 +
  109 + if (i>0 && ii>0){
  110 + return 1;
  111 + }
  112 + }
  113 + return 0;
  114 + }
  115 + }else {
  116 + ShareServiceImp shareServiceImp = new ShareServiceImp();
  117 + return shareServiceImp.share("MT3201", customReception);
  118 + }
  119 +
  120 +
  121 + //未进入主分单解析 返回0 失败
  122 + return 0;
  123 + }
  124 +}
@@ -35,21 +35,23 @@ public class CoustomAnalysisServiceImp implements CoustomAnalysisService { @@ -35,21 +35,23 @@ public class CoustomAnalysisServiceImp implements CoustomAnalysisService {
35 35
36 String awbA = customReception.getWayBillMaster(); 36 String awbA = customReception.getWayBillMaster();
37 String awbH = customReception.getWayBillSecond(); 37 String awbH = customReception.getWayBillSecond();
38 - //回执内容 38 + // 回执内容
39 String reception = customReception.getResponseText(); 39 String reception = customReception.getResponseText();
40 String flightDateStr = customReception.getFlightDate(); 40 String flightDateStr = customReception.getFlightDate();
41 Date flightDate = DateUtil.formatByyyyyMMdd(flightDateStr); 41 Date flightDate = DateUtil.formatByyyyyMMdd(flightDateStr);
42 42
43 - //设置分单回执 43 + // 设置分单回执
44 Originmanifestsecondary originmanifestsecondary = new Originmanifestsecondary(); 44 Originmanifestsecondary originmanifestsecondary = new Originmanifestsecondary();
45 originmanifestsecondary.setReceiption(reception); 45 originmanifestsecondary.setReceiption(reception);
46 46
47 - //设置主单回执、航班号、航班日期 47 + // 设置主单回执、航班号、航班日期
48 ORIGINMANIFESTMASTER originmanifestmaster = new ORIGINMANIFESTMASTER(); 48 ORIGINMANIFESTMASTER originmanifestmaster = new ORIGINMANIFESTMASTER();
49 originmanifestmaster.setReceiptinformation(reception); 49 originmanifestmaster.setReceiptinformation(reception);
50 originmanifestmaster.setFlightno(customReception.getFlightNo()); 50 originmanifestmaster.setFlightno(customReception.getFlightNo());
51 originmanifestmaster.setFlightDate(flightDate); 51 originmanifestmaster.setFlightDate(flightDate);
52 52
  53 + // 判断航班号 航班日期 是否为空
  54 + if (flightDate != null && customReception.getFlightNo() != null){
53 if (awbA!=null && awbA.length()>0){ 55 if (awbA!=null && awbA.length()>0){
54 StringBuffer stringBuffer = new StringBuffer(awbA); 56 StringBuffer stringBuffer = new StringBuffer(awbA);
55 stringBuffer.insert(3,"-"); 57 stringBuffer.insert(3,"-");
@@ -104,12 +106,18 @@ public class CoustomAnalysisServiceImp implements CoustomAnalysisService { @@ -104,12 +106,18 @@ public class CoustomAnalysisServiceImp implements CoustomAnalysisService {
104 } 106 }
105 return 0; 107 return 0;
106 } 108 }
  109 + }else {
  110 +
  111 + ShareServiceImp shareServiceImp = new ShareServiceImp();
  112 + return shareServiceImp.share("MT1201", customReception);
  113 + }
  114 +
107 //未进入主分单解析 返回0 失败 115 //未进入主分单解析 返回0 失败
108 return 0; 116 return 0;
109 } 117 }
110 118
111 119
112 - private int insertSendlog(String type,String reception,String autoId){ 120 + public int insertSendlog(String type,String reception,String autoId){
113 SENDLOG sendlog = new SENDLOG(); 121 SENDLOG sendlog = new SENDLOG();
114 sendlog.setAutoid(Helper.getUUID()); 122 sendlog.setAutoid(Helper.getUUID());
115 sendlog.setCreatedate(new Date()); 123 sendlog.setCreatedate(new Date());
  1 +package com.tianbo.analysis.service.imp;
  2 +
  3 +import com.tianbo.analysis.dao.DEPARTURESLOADINGMapper;
  4 +import com.tianbo.analysis.model.CustomReception;
  5 +import com.tianbo.analysis.model.DEPARTURESLOADING;
  6 +import com.tianbo.analysis.service.DEPARTURESLOADINGService;
  7 +import com.tianbo.util.Date.DateUtil;
  8 +import lombok.extern.slf4j.Slf4j;
  9 +import org.springframework.beans.factory.annotation.Autowired;
  10 +import org.springframework.stereotype.Service;
  11 +
  12 +import java.util.Date;
  13 +import java.util.List;
  14 +
  15 +/**
  16 + * @Auther: shenhl
  17 + * @Date: 2019/8/26 10:24
  18 + */
  19 +@Service
  20 +@Slf4j
  21 +public class DEPARTURESLOADINGServiceImp implements DEPARTURESLOADINGService{
  22 +
  23 + @Autowired
  24 + DEPARTURESLOADINGMapper departuresloadingMapper;
  25 +
  26 + @Override
  27 + public int insertRecept(CustomReception customReception) {
  28 + // 发送日志 插入
  29 + CoustomAnalysisServiceImp coustomAnalysisServiceImp = new CoustomAnalysisServiceImp();
  30 +
  31 + // 主单号
  32 + String awbA = customReception.getWayBillMaster();
  33 + String awbH = customReception.getWayBillSecond();
  34 + //回执内容
  35 + String reception = customReception.getResponseText();
  36 + String flightDateStr = customReception.getFlightDate();
  37 + Date flightDate = DateUtil.formatByyyyyMMdd(flightDateStr);
  38 +
  39 + //设置主单回执、航班号、航班日期
  40 + DEPARTURESLOADING departuresloading = new DEPARTURESLOADING();
  41 + departuresloading.setReceiption(reception);
  42 + departuresloading.setFlightno(customReception.getFlightNo());
  43 + departuresloading.setFlightdate(flightDate);
  44 +
  45 + if (awbA!=null && awbA.length()>0){
  46 + StringBuffer stringBuffer = new StringBuffer(awbA);
  47 + stringBuffer.insert(3,"-");
  48 + awbA = stringBuffer.toString();
  49 +
  50 + //设置主分单的 主单号
  51 + departuresloading.setWaybillno(awbA);
  52 + }
  53 +
  54 +
  55 + // 判断航班号 航班日期 是否为空
  56 + if (flightDate != null && customReception.getFlightNo() != null){
  57 + //处理主单格式,将海关回执的主单号58019316861,变为580-19316861
  58 + if (awbA!=null && awbA.length()>0){
  59 + //更新主单回执
  60 + int i = departuresloadingMapper.updateRECEIPTION(departuresloading);
  61 + //获取分单autoid
  62 + List<DEPARTURESLOADING> arrivedmasterList = departuresloadingMapper.selectAutoIdByAwb(departuresloading);
  63 + if(!arrivedmasterList.isEmpty()){
  64 + DEPARTURESLOADING departuresloading1 = arrivedmasterList.get(0);
  65 + String autoId = departuresloading1.getId();
  66 +
  67 + //插入sendlog记录表
  68 + log.info("即将插入日志运单号为:"+awbA+"->autoid="+autoId);
  69 + int ii =coustomAnalysisServiceImp.insertSendlog("MT4201",reception,autoId);
  70 +
  71 + if (i>0 && ii>0){
  72 + return 1;
  73 + }
  74 + }
  75 + return 0;
  76 + }
  77 + }else {
  78 + ShareServiceImp shareServiceImp = new ShareServiceImp();
  79 + return shareServiceImp.share("MT4201", customReception);
  80 + }
  81 + //未进入主分单解析 返回0 失败
  82 + return 0;
  83 + }
  84 +}
  1 +package com.tianbo.analysis.service.imp;
  2 +
  3 +import com.tianbo.analysis.dao.PREPAREMASTERMapper;
  4 +import com.tianbo.analysis.dao.PREPARESECONDARYMapper;
  5 +import com.tianbo.analysis.model.CustomReception;
  6 +import com.tianbo.analysis.model.PREPAREMASTER;
  7 +import com.tianbo.analysis.model.PREPARESECONDARY;
  8 +import com.tianbo.analysis.service.PREPAREMASTERService;
  9 +import com.tianbo.util.Date.DateUtil;
  10 +import lombok.extern.slf4j.Slf4j;
  11 +import org.springframework.beans.factory.annotation.Autowired;
  12 +import org.springframework.stereotype.Service;
  13 +
  14 +import java.util.Date;
  15 +import java.util.List;
  16 +
  17 +/**
  18 + * @Auther: shenhl
  19 + * @Date: 2019/8/26 15:29
  20 + */
  21 +@Service
  22 +@Slf4j
  23 +public class PREPAREMASTERServiceImp implements PREPAREMASTERService {
  24 +
  25 + @Autowired
  26 + PREPAREMASTERMapper preparemasterMapper;
  27 +
  28 + @Autowired
  29 + PREPARESECONDARYMapper preparesecondaryMapper;
  30 +
  31 + @Override
  32 + // 货物接收运抵主分单
  33 + public int insertRecept(CustomReception customReception) {
  34 +
  35 + // 发送日志 插入
  36 + CoustomAnalysisServiceImp coustomAnalysisServiceImp = new CoustomAnalysisServiceImp();
  37 +
  38 + // 主单号
  39 + String awbA = customReception.getWayBillMaster();
  40 + String awbH = customReception.getWayBillSecond();
  41 + //回执内容
  42 + String reception = customReception.getResponseText();
  43 + String flightDateStr = customReception.getFlightDate();
  44 + Date flightDate = DateUtil.formatByyyyyMMdd(flightDateStr);
  45 +
  46 + // 设置 接收运抵分单 回执
  47 + PREPARESECONDARY preparesecondary = new PREPARESECONDARY();
  48 + preparesecondary.setReceiptinformation(reception);
  49 +
  50 + //设置主单回执、航班号、航班日期
  51 + PREPAREMASTER preparemaster = new PREPAREMASTER();
  52 + preparemaster.setReceiptinformation(reception);
  53 + preparemaster.setFlightno(customReception.getFlightNo());
  54 + preparemaster.setFlightdate(flightDate);
  55 +
  56 + if (awbA!=null && awbA.length()>0){
  57 + StringBuffer stringBuffer = new StringBuffer(awbA);
  58 + stringBuffer.insert(3,"-");
  59 + awbA = stringBuffer.toString();
  60 +
  61 + //设置主分单的 主单号
  62 + preparesecondary.setWaybillnomaster(awbA);
  63 + preparemaster.setWaybillnomaster(awbA);
  64 + }
  65 +
  66 +
  67 + // 判断航班号 航班日期 是否为空
  68 + if (flightDate != null && customReception.getFlightNo() != null){
  69 + //有分单号 更新分单
  70 + if(awbA!=null && awbA.length()>0 && awbH!=null && awbH.length()> 0){
  71 + //取分单号
  72 + String[] awbhArr = awbH.split("_");
  73 + String awbh = awbhArr[1];
  74 + preparesecondary.setWaybillnosecondary(awbh);
  75 + //更新分单回执
  76 + int i = preparesecondaryMapper.updateRECEIPTION(preparesecondary);
  77 + //获取分单autoid
  78 + List<PREPARESECONDARY> arrivedsecondaryList = preparesecondaryMapper.selectAutoIdByawbAawbH(preparesecondary);
  79 + if(!arrivedsecondaryList.isEmpty()){
  80 + PREPARESECONDARY preparesecondary1 = arrivedsecondaryList.get(0);
  81 + String autoId = preparesecondary1.getAutoid();
  82 + //插入sendlog记录表
  83 + log.info("即将插入日志运单号为:"+awbH+"->autoid="+autoId);
  84 + int ii = coustomAnalysisServiceImp.insertSendlog("MT3201",reception,autoId);
  85 +
  86 + if (i>0 && ii>0){
  87 + return 1;
  88 + }
  89 + }
  90 + return 0;
  91 + }
  92 +
  93 + //处理主单格式,将海关回执的主单号58019316861,变为580-19316861
  94 + if (awbA!=null && awbA.length()>0){
  95 + //更新主单回执
  96 + int i = preparemasterMapper.updateRECEIPTION(preparemaster);
  97 + //获取分单autoid
  98 + List<PREPAREMASTER> arrivedmasterList = preparemasterMapper.selectAutoIdByAwb(preparemaster);
  99 + if(!arrivedmasterList.isEmpty()){
  100 + PREPAREMASTER originMaster = arrivedmasterList.get(0);
  101 + String autoId = originMaster.getAutoid();
  102 +
  103 + //插入sendlog记录表
  104 + log.info("即将插入日志运单号为:"+awbA+"->autoid="+autoId);
  105 + int ii =coustomAnalysisServiceImp.insertSendlog("MT3201",reception,autoId);
  106 +
  107 + if (i>0 && ii>0){
  108 + return 1;
  109 + }
  110 + }
  111 + return 0;
  112 + }
  113 + }else {
  114 +
  115 + ShareServiceImp shareServiceImp = new ShareServiceImp();
  116 + return shareServiceImp.share("MT2201", customReception);
  117 + }
  118 +
  119 + //未进入主分单解析 返回0 失败
  120 + return 0;
  121 + }
  122 +}
  1 +package com.tianbo.analysis.service.imp;
  2 +
  3 +import com.tianbo.analysis.dao.*;
  4 +import com.tianbo.analysis.model.*;
  5 +import lombok.extern.slf4j.Slf4j;
  6 +import org.springframework.beans.factory.annotation.Autowired;
  7 +import org.springframework.stereotype.Service;
  8 +
  9 +/**
  10 + * @Auther: shenhl
  11 + * @Date: 2019/8/26 17:15
  12 + */
  13 +@Service
  14 +@Slf4j
  15 +/**
  16 + *
  17 + * 共享
  18 + */
  19 +public class ShareServiceImp {
  20 +
  21 + @Autowired
  22 + ARRIVEDMASTERMapper arrivedmasterMapper;
  23 +
  24 + @Autowired
  25 + ARRIVEDSECONDARYMapper arrivedsecondaryMapper;
  26 +
  27 + @Autowired
  28 + DEPARTURESLOADINGMapper departuresloadingMapper;
  29 +
  30 + @Autowired
  31 + PREPAREMASTERMapper preparemasterMapper;
  32 +
  33 + @Autowired
  34 + PREPARESECONDARYMapper preparesecondaryMapper;
  35 +
  36 + @Autowired
  37 + TALLYMASTERMapper tallymasterMapper;
  38 +
  39 + @Autowired
  40 + TALLYSECONDARYMapper tallysecondaryMapper;
  41 +
  42 + @Autowired
  43 + ORIGINMANIFESTMASTERMapper originmanifestmasterMapper;
  44 +
  45 + @Autowired
  46 + OriginmanifestsecondaryMapper originmanifestsecondaryMapper;
  47 +
  48 + @Autowired
  49 + CUSTOMSMESSAGEMapper customsmessageMapper;
  50 +
  51 + public int share(String type, CustomReception customReception){
  52 + // 发送日志 插入
  53 + CoustomAnalysisServiceImp coustomAnalysisServiceImp = new CoustomAnalysisServiceImp();
  54 +
  55 + CUSTOMSMESSAGEWithBLOBs cus = customsmessageMapper.selectMessage(customReception.getMessageID());
  56 +
  57 + switch (type){
  58 + case "MT9999":
  59 + return MT1201MT9999(customReception, cus, type);
  60 + case "MT3201":
  61 + // 判断 主单id 主单号是否为空
  62 + if (cus.getMasterautoid() != null && cus.getWaybillnomaster() != null){
  63 + String waybill = waybill(cus.getWaybillnomaster());
  64 +
  65 + ARRIVEDMASTER arrivedmaster = new ARRIVEDMASTER();
  66 + arrivedmaster.setFlightno(cus.getFlightno());
  67 + arrivedmaster.setFlightdate(cus.getFlightdate());
  68 + arrivedmaster.setReceiptinformation(customReception.getResponseText());
  69 + arrivedmaster.setAutoid(cus.getMasterautoid());
  70 + arrivedmaster.setWaybillnomaster(waybill);
  71 +
  72 + int i = arrivedmasterMapper.updateRECEIPTION(arrivedmaster);
  73 +
  74 + //插入sendlog记录表
  75 + log.info("即将插入日志运单号为:"+waybill+"->autoid="+cus.getMasterautoid());
  76 + int ii = coustomAnalysisServiceImp.insertSendlog(type,customReception.getResponseText(),cus.getMasterautoid());
  77 + if (i > 0 && ii > 0){
  78 +
  79 + return 1;
  80 + }
  81 +
  82 + return 0;
  83 + }else {
  84 + // 分单
  85 + ARRIVEDSECONDARY arrivedsecondary = new ARRIVEDSECONDARY();
  86 +
  87 + arrivedsecondary.setReceiption(customReception.getResponseText());
  88 + arrivedsecondary.setAutoid(cus.getSecondaryautoid());
  89 + arrivedsecondary.setWaybillnomaster(cus.getWaybillnomaster());
  90 + arrivedsecondary.setWaybillnosecondary(cus.getWaybillnosecondary());
  91 + int i = arrivedsecondaryMapper.updateRECEIPTION(arrivedsecondary);
  92 + //插入sendlog记录表
  93 + log.info("即将插入日志运单号为:"+cus.getWaybillnosecondary()+"->autoid="+cus.getSecondaryautoid());
  94 + int ii = coustomAnalysisServiceImp.insertSendlog(type,customReception.getResponseText(),cus.getSecondaryautoid());
  95 + if (i > 0 && ii > 0){
  96 +
  97 + return 1;
  98 + }
  99 + }
  100 + case "MT5202":
  101 +
  102 + return tallAWB_H(customReception, cus, type);
  103 + case "MT5201":
  104 +
  105 + return tallAWB_H(customReception, cus, type);
  106 + case "MT4201":
  107 + String waybill = waybill(cus.getWaybillnomaster());
  108 +
  109 + DEPARTURESLOADING departuresloading = new DEPARTURESLOADING();
  110 + departuresloading.setFlightno(cus.getFlightno());
  111 + departuresloading.setFlightdate(cus.getFlightdate());
  112 + departuresloading.setReceiption(customReception.getResponseText());
  113 + departuresloading.setId(cus.getMasterautoid());
  114 + departuresloading.setWaybillno(waybill);
  115 + int i = departuresloadingMapper.updateRECEIPTION(departuresloading);
  116 +
  117 + //插入sendlog记录表
  118 + log.info("即将插入日志运单号为:"+waybill+"->autoid="+cus.getMasterautoid());
  119 + int ii = coustomAnalysisServiceImp.insertSendlog(type,customReception.getResponseText(),cus.getMasterautoid());
  120 + if (i > 0 && ii > 0){
  121 +
  122 + return 1;
  123 + }
  124 + case "MT1201":
  125 +
  126 + return MT1201MT9999(customReception, cus, type);
  127 + case "MT2201":
  128 + // 判断 主单id 主单号是否为空
  129 + if (cus.getMasterautoid() != null && cus.getWaybillnomaster() != null){
  130 + String waybill1 = waybill(cus.getWaybillnomaster());
  131 +
  132 + PREPAREMASTER preparemaster = new PREPAREMASTER();
  133 + preparemaster.setFlightno(cus.getFlightno());
  134 + preparemaster.setFlightdate(cus.getFlightdate());
  135 + preparemaster.setReceiptinformation(customReception.getResponseText());
  136 + preparemaster.setAutoid(cus.getMasterautoid());
  137 + preparemaster.setWaybillnomaster(waybill1);
  138 +
  139 + int i1 = preparemasterMapper.updateRECEIPTION(preparemaster);
  140 +
  141 + //插入sendlog记录表
  142 + log.info("即将插入日志运单号为:"+waybill1+"->autoid="+cus.getMasterautoid());
  143 + int ii1 = coustomAnalysisServiceImp.insertSendlog(type,customReception.getResponseText(),cus.getMasterautoid());
  144 + if (i1 > 0 && ii1 > 0){
  145 +
  146 + return 1;
  147 + }
  148 +
  149 + return 0;
  150 + }else {
  151 + // 分单
  152 + PREPARESECONDARY preparesecondary = new PREPARESECONDARY();
  153 +
  154 + preparesecondary.setReceiptinformation(customReception.getResponseText());
  155 + preparesecondary.setAutoid(cus.getSecondaryautoid());
  156 + preparesecondary.setWaybillnomaster(cus.getWaybillnomaster());
  157 + preparesecondary.setWaybillnosecondary(cus.getWaybillnosecondary());
  158 + int i1 = preparesecondaryMapper.updateRECEIPTION(preparesecondary);
  159 + //插入sendlog记录表
  160 + log.info("即将插入日志运单号为:"+cus.getWaybillnosecondary()+"->autoid="+cus.getSecondaryautoid());
  161 + int ii1 = coustomAnalysisServiceImp.insertSendlog(type,customReception.getResponseText(),cus.getSecondaryautoid());
  162 + if (i1 > 0 && ii1 > 0){
  163 +
  164 + return 1;
  165 + }
  166 + }
  167 + }
  168 +
  169 +
  170 + return 0;
  171 + }
  172 +
  173 + public String waybill (String waybill){
  174 +
  175 + StringBuffer stringBuffer = new StringBuffer(waybill);
  176 + StringBuffer insert = stringBuffer.insert(3, "-");
  177 +
  178 + return insert.toString();
  179 + }
  180 +
  181 + // 主分单
  182 + public int tallAWB_H(CustomReception customReception, CUSTOMSMESSAGEWithBLOBs cus, String type){
  183 + // 发送日志 插入
  184 + CoustomAnalysisServiceImp coustomAnalysisServiceImp = new CoustomAnalysisServiceImp();
  185 +
  186 + // 判断 主单id 主单号是否为空
  187 + if (cus.getMasterautoid() != null && cus.getWaybillnomaster() != null){
  188 + String waybill = waybill(cus.getWaybillnomaster());
  189 +
  190 + TALLYMASTER tallymaster = new TALLYMASTER();
  191 + tallymaster.setFlightno(cus.getFlightno());
  192 + tallymaster.setFlightdate(cus.getFlightdate());
  193 + tallymaster.setReceiptinformation(customReception.getResponseText());
  194 + tallymaster.setAutoid(cus.getMasterautoid());
  195 + tallymaster.setWaybillnomaster(waybill);
  196 +
  197 + int i = tallymasterMapper.updateRECEIPTION(tallymaster);
  198 +
  199 + //插入sendlog记录表
  200 + log.info("即将插入日志运单号为:"+waybill+"->autoid="+cus.getMasterautoid());
  201 + int ii = coustomAnalysisServiceImp.insertSendlog(type,customReception.getResponseText(),cus.getMasterautoid());
  202 + if (i > 0 && ii > 0){
  203 +
  204 + return 1;
  205 + }
  206 +
  207 + return 0;
  208 + }else {
  209 + // 分单
  210 + TALLYSECONDARY tallysecondary = new TALLYSECONDARY();
  211 +
  212 + tallysecondary.setReceiptinformation(customReception.getResponseText());
  213 + tallysecondary.setAutoid(cus.getSecondaryautoid());
  214 + tallysecondary.setWaybillnomaster(cus.getWaybillnomaster());
  215 + tallysecondary.setWaybillnosecondary(cus.getWaybillnosecondary());
  216 + int i = tallysecondaryMapper.updateRECEIPTION(tallysecondary);
  217 + //插入sendlog记录表
  218 + log.info("即将插入日志运单号为:"+cus.getWaybillnosecondary()+"->autoid="+cus.getSecondaryautoid());
  219 + int ii = coustomAnalysisServiceImp.insertSendlog(type,customReception.getResponseText(),cus.getSecondaryautoid());
  220 + if (i > 0 && ii > 0){
  221 +
  222 + return 1;
  223 + }
  224 +
  225 + return 0;
  226 + }
  227 + }
  228 +
  229 +
  230 + // MT9999 MT1201
  231 + public int MT1201MT9999(CustomReception customReception, CUSTOMSMESSAGEWithBLOBs cus, String type) {
  232 + // 发送日志 插入
  233 + CoustomAnalysisServiceImp coustomAnalysisServiceImp = new CoustomAnalysisServiceImp();
  234 + // 判断 主单id 主单号是否为空
  235 + if (cus.getMasterautoid() != null && cus.getWaybillnomaster() != null) {
  236 + String waybill = waybill(cus.getWaybillnomaster());
  237 +
  238 + ORIGINMANIFESTMASTER or = new ORIGINMANIFESTMASTER();
  239 + or.setFlightno(cus.getFlightno());
  240 + or.setFlightDate(cus.getFlightdate());
  241 + or.setReceiptinformation(customReception.getResponseText());
  242 + or.setAutoid(cus.getMasterautoid());
  243 + or.setWaybillnomaster(waybill);
  244 + int i = originmanifestmasterMapper.updateRECEIPTION(or);
  245 +
  246 + //插入sendlog记录表
  247 + log.info("即将插入日志运单号为:" + waybill + "->autoid=" + cus.getMasterautoid());
  248 + int ii = coustomAnalysisServiceImp.insertSendlog(type, customReception.getResponseText(), cus.getMasterautoid());
  249 + if (i > 0 && ii > 0) {
  250 +
  251 + return 1;
  252 + }
  253 +
  254 + return 0;
  255 + } else {
  256 + // 分单
  257 + Originmanifestsecondary or = new Originmanifestsecondary();
  258 +
  259 + or.setReceiption(customReception.getResponseText());
  260 + or.setAutoid(cus.getSecondaryautoid());
  261 + or.setWaybillnomaster(cus.getWaybillnomaster());
  262 + or.setWaybillnosecondary(cus.getWaybillnosecondary());
  263 + int i = originmanifestsecondaryMapper.updateRECEIPTION(or);
  264 + //插入sendlog记录表
  265 + log.info("即将插入日志运单号为:" + cus.getWaybillnosecondary() + "->autoid=" + cus.getSecondaryautoid());
  266 + int ii = coustomAnalysisServiceImp.insertSendlog(type, customReception.getResponseText(), cus.getSecondaryautoid());
  267 + if (i > 0 && ii > 0) {
  268 +
  269 + return 1;
  270 + }
  271 + return 0;
  272 + }
  273 + }
  274 +}
  1 +package com.tianbo.analysis.service.imp;
  2 +
  3 +import com.tianbo.analysis.dao.TALLYMASTERMapper;
  4 +import com.tianbo.analysis.dao.TALLYSECONDARYMapper;
  5 +import com.tianbo.analysis.model.CustomReception;
  6 +import com.tianbo.analysis.model.TALLYMASTER;
  7 +import com.tianbo.analysis.model.TALLYSECONDARY;
  8 +import com.tianbo.analysis.service.TALLYMASTERService;
  9 +import com.tianbo.util.Date.DateUtil;
  10 +import lombok.extern.slf4j.Slf4j;
  11 +import org.springframework.beans.factory.annotation.Autowired;
  12 +import org.springframework.stereotype.Service;
  13 +
  14 +import java.util.Date;
  15 +import java.util.List;
  16 +
  17 +/**
  18 + * @Auther: shenhl
  19 + * @Date: 2019/8/23 17:17
  20 + */
  21 +
  22 +@Service
  23 +@Slf4j
  24 +public class TALLYMASTERServiceImp implements TALLYMASTERService{
  25 +
  26 + @Autowired
  27 + TALLYMASTERMapper tallymasterMapper;
  28 +
  29 + @Autowired
  30 + TALLYSECONDARYMapper tallysecondaryMapper;
  31 +
  32 + @Override
  33 + // 进出港理货
  34 + public int insertRecept(CustomReception customReception, String mt) {
  35 + // 发送日志 插入
  36 + CoustomAnalysisServiceImp coustomAnalysisServiceImp = new CoustomAnalysisServiceImp();
  37 +
  38 + // 主单号
  39 + String awbA = customReception.getWayBillMaster();
  40 + String awbH = customReception.getWayBillSecond();
  41 + //回执内容
  42 + String reception = customReception.getResponseText();
  43 + String flightDateStr = customReception.getFlightDate();
  44 + Date flightDate = DateUtil.formatByyyyyMMdd(flightDateStr);
  45 +
  46 + // 设置 进出港理货 回执
  47 + TALLYSECONDARY tallysecondary = new TALLYSECONDARY();
  48 + tallysecondary.setReceiptinformation(reception);
  49 +
  50 + //设置进出港理货回执、航班号、航班日期
  51 + TALLYMASTER tallymaster = new TALLYMASTER();
  52 + tallymaster.setReceiptinformation(reception);
  53 + tallymaster.setFlightno(customReception.getFlightNo());
  54 + tallymaster.setFlightdate(flightDate);
  55 + // 判断航班号 航班日期 是否为空
  56 + if (flightDate != null && customReception.getFlightNo() != null){
  57 + if (awbA!=null && awbA.length()>0){
  58 + StringBuffer stringBuffer = new StringBuffer(awbA);
  59 + stringBuffer.insert(3,"-");
  60 + awbA = stringBuffer.toString();
  61 +
  62 + //设置主分单的 主单号
  63 + tallysecondary.setWaybillnomaster(awbA);
  64 + tallymaster.setWaybillnomaster(awbA);
  65 + }
  66 +
  67 + //有分单号 更新分单
  68 + if(awbA!=null && awbA.length()>0 && awbH!=null && awbH.length()> 0){
  69 + //取分单号
  70 + String[] awbhArr = awbH.split("_");
  71 + String awbh = awbhArr[1];
  72 + tallysecondary.setWaybillnosecondary(awbh);
  73 + //更新分单回执
  74 + int i = tallysecondaryMapper.updateRECEIPTION(tallysecondary);
  75 + //获取分单autoid
  76 + List<TALLYSECONDARY> tallysecondaryList = tallysecondaryMapper.selectAutoIdByawbAawbH(tallysecondary);
  77 + if(!tallysecondaryList.isEmpty()){
  78 + TALLYSECONDARY arrivedSecond = tallysecondaryList.get(0);
  79 + String autoId = arrivedSecond.getAutoid();
  80 + //插入sendlog记录表
  81 + log.info("即将插入日志运单号为:"+awbH+"->autoid="+autoId);
  82 + int ii = coustomAnalysisServiceImp.insertSendlog(mt,reception,autoId);
  83 +
  84 + if (i>0 && ii>0){
  85 + return 1;
  86 + }
  87 + }
  88 + return 0;
  89 + }
  90 +
  91 + //处理主单格式,将海关回执的主单号58019316861,变为580-19316861
  92 + if (awbA!=null && awbA.length()>0){
  93 + //更新主单回执
  94 + int i = tallymasterMapper.updateRECEIPTION(tallymaster);
  95 + //获取分单autoid
  96 + List<TALLYMASTER> arrivedmasterList = tallymasterMapper.selectAutoIdByAwb(tallymaster);
  97 + if(!arrivedmasterList.isEmpty()){
  98 + TALLYMASTER originMaster = arrivedmasterList.get(0);
  99 + String autoId = originMaster.getAutoid();
  100 +
  101 + //插入sendlog记录表
  102 + log.info("即将插入日志运单号为:"+awbA+"->autoid="+autoId);
  103 + int ii =coustomAnalysisServiceImp.insertSendlog(mt,reception,autoId);
  104 +
  105 + if (i>0 && ii>0){
  106 + return 1;
  107 + }
  108 + }
  109 + return 0;
  110 + }
  111 + }else {
  112 +
  113 + ShareServiceImp shareServiceImp = new ShareServiceImp();
  114 + return shareServiceImp.share("MT5202", customReception);
  115 + }
  116 +
  117 + //未进入主分单解析 返回0 失败
  118 + return 0;
  119 + }
  120 +}
@@ -34,7 +34,7 @@ public class TaskAnalysis { @@ -34,7 +34,7 @@ public class TaskAnalysis {
34 34
35 35
36 36
37 - @Scheduled(fixedDelay = 20000) 37 + @Scheduled(fixedDelay = 5000)
38 public void startTask(){ 38 public void startTask(){
39 String today = DateUtil.getTodayBy_yyyyMMdd(); 39 String today = DateUtil.getTodayBy_yyyyMMdd();
40 String readDir = receptDir + "/" + today; 40 String readDir = receptDir + "/" + today;
  1 +<?xml version="1.0" encoding="UTF-8" ?>
  2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3 +<mapper namespace="com.tianbo.analysis.dao.ARRIVEDMASTERMapper" >
  4 + <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.ARRIVEDMASTER" >
  5 + <id column="AUTOID" property="autoid" jdbcType="VARCHAR" />
  6 + <result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
  7 + <result column="TCD_NAME" property="tcdName" jdbcType="VARCHAR" />
  8 + <result column="TCD_TYPECODE" property="tcdTypecode" jdbcType="VARCHAR" />
  9 + <result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" />
  10 + <result column="FLIGHTDATE" property="flightdate" jdbcType="TIMESTAMP" />
  11 + <result column="CARRIER" property="carrier" jdbcType="VARCHAR" />
  12 + <result column="ORIGINATINGSTATION" property="originatingstation" jdbcType="VARCHAR" />
  13 + <result column="O_NAME" property="oName" jdbcType="VARCHAR" />
  14 + <result column="DESTINATIONSTATION" property="destinationstation" jdbcType="VARCHAR" />
  15 + <result column="FD_NAME" property="fdName" jdbcType="VARCHAR" />
  16 + <result column="ARRIVEDTOTALPIECE" property="arrivedtotalpiece" jdbcType="VARCHAR" />
  17 + <result column="TOTALPIECEQUANTITY" property="totalpiecequantity" jdbcType="VARCHAR" />
  18 + <result column="ARRIVEDTOTALWEIGHT" property="arrivedtotalweight" jdbcType="VARCHAR" />
  19 + <result column="GROSSWEIGHTMEASUREUC" property="grossweightmeasureuc" jdbcType="VARCHAR" />
  20 + <result column="TOTALGROSSWEIGHTMEASURE" property="totalgrossweightmeasure" jdbcType="VARCHAR" />
  21 + <result column="TOTALGROSSWEIGHTMEASUREUC" property="totalgrossweightmeasureuc" jdbcType="VARCHAR" />
  22 + <result column="CHARGEABLEWEIGHTMEASURE" property="chargeableweightmeasure" jdbcType="VARCHAR" />
  23 + <result column="CHARGEABLEWEIGHTMEASUREUC" property="chargeableweightmeasureuc" jdbcType="VARCHAR" />
  24 + <result column="ARRIVEDDATE" property="arriveddate" jdbcType="TIMESTAMP" />
  25 + <result column="TRANSPORTSPLITDESCRIPTION" property="transportsplitdescription" jdbcType="VARCHAR" />
  26 + <result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" />
  27 + <result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" />
  28 + <result column="STATUS" property="status" jdbcType="VARCHAR" />
  29 + <result column="RECEIPTINFORMATION" property="receiptinformation" jdbcType="VARCHAR" />
  30 + <result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
  31 + </resultMap>
  32 + <sql id="Base_Column_List" >
  33 + AUTOID, WAYBILLNOMASTER, TCD_NAME, TCD_TYPECODE, FLIGHTNO, FLIGHTDATE, CARRIER, ORIGINATINGSTATION,
  34 + O_NAME, DESTINATIONSTATION, FD_NAME, ARRIVEDTOTALPIECE, TOTALPIECEQUANTITY, ARRIVEDTOTALWEIGHT,
  35 + GROSSWEIGHTMEASUREUC, TOTALGROSSWEIGHTMEASURE, TOTALGROSSWEIGHTMEASUREUC, CHARGEABLEWEIGHTMEASURE,
  36 + CHARGEABLEWEIGHTMEASUREUC, ARRIVEDDATE, TRANSPORTSPLITDESCRIPTION, CUSTOMSCODE, PRODUCTNAME,
  37 + STATUS, RECEIPTINFORMATION, CREATEDATE
  38 + </sql>
  39 + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
  40 + select
  41 + <include refid="Base_Column_List" />
  42 + from ARRIVEDMASTER
  43 + where AUTOID = #{autoid,jdbcType=VARCHAR}
  44 + </select>
  45 + <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
  46 + delete from ARRIVEDMASTER
  47 + where AUTOID = #{autoid,jdbcType=VARCHAR}
  48 + </delete>
  49 + <insert id="insert" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" >
  50 + insert into ARRIVEDMASTER (AUTOID, WAYBILLNOMASTER, TCD_NAME,
  51 + TCD_TYPECODE, FLIGHTNO, FLIGHTDATE,
  52 + CARRIER, ORIGINATINGSTATION, O_NAME,
  53 + DESTINATIONSTATION, FD_NAME, ARRIVEDTOTALPIECE,
  54 + TOTALPIECEQUANTITY, ARRIVEDTOTALWEIGHT,
  55 + GROSSWEIGHTMEASUREUC, TOTALGROSSWEIGHTMEASURE,
  56 + TOTALGROSSWEIGHTMEASUREUC, CHARGEABLEWEIGHTMEASURE,
  57 + CHARGEABLEWEIGHTMEASUREUC, ARRIVEDDATE,
  58 + TRANSPORTSPLITDESCRIPTION, CUSTOMSCODE,
  59 + PRODUCTNAME, STATUS, RECEIPTINFORMATION,
  60 + CREATEDATE)
  61 + values (#{autoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{tcdName,jdbcType=VARCHAR},
  62 + #{tcdTypecode,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=TIMESTAMP},
  63 + #{carrier,jdbcType=VARCHAR}, #{originatingstation,jdbcType=VARCHAR}, #{oName,jdbcType=VARCHAR},
  64 + #{destinationstation,jdbcType=VARCHAR}, #{fdName,jdbcType=VARCHAR}, #{arrivedtotalpiece,jdbcType=VARCHAR},
  65 + #{totalpiecequantity,jdbcType=VARCHAR}, #{arrivedtotalweight,jdbcType=VARCHAR},
  66 + #{grossweightmeasureuc,jdbcType=VARCHAR}, #{totalgrossweightmeasure,jdbcType=VARCHAR},
  67 + #{totalgrossweightmeasureuc,jdbcType=VARCHAR}, #{chargeableweightmeasure,jdbcType=VARCHAR},
  68 + #{chargeableweightmeasureuc,jdbcType=VARCHAR}, #{arriveddate,jdbcType=TIMESTAMP},
  69 + #{transportsplitdescription,jdbcType=VARCHAR}, #{customscode,jdbcType=VARCHAR},
  70 + #{productname,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{receiptinformation,jdbcType=VARCHAR},
  71 + #{createdate,jdbcType=TIMESTAMP})
  72 + </insert>
  73 + <insert id="insertSelective" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" >
  74 + insert into ARRIVEDMASTER
  75 + <trim prefix="(" suffix=")" suffixOverrides="," >
  76 + <if test="autoid != null" >
  77 + AUTOID,
  78 + </if>
  79 + <if test="waybillnomaster != null" >
  80 + WAYBILLNOMASTER,
  81 + </if>
  82 + <if test="tcdName != null" >
  83 + TCD_NAME,
  84 + </if>
  85 + <if test="tcdTypecode != null" >
  86 + TCD_TYPECODE,
  87 + </if>
  88 + <if test="flightno != null" >
  89 + FLIGHTNO,
  90 + </if>
  91 + <if test="flightdate != null" >
  92 + FLIGHTDATE,
  93 + </if>
  94 + <if test="carrier != null" >
  95 + CARRIER,
  96 + </if>
  97 + <if test="originatingstation != null" >
  98 + ORIGINATINGSTATION,
  99 + </if>
  100 + <if test="oName != null" >
  101 + O_NAME,
  102 + </if>
  103 + <if test="destinationstation != null" >
  104 + DESTINATIONSTATION,
  105 + </if>
  106 + <if test="fdName != null" >
  107 + FD_NAME,
  108 + </if>
  109 + <if test="arrivedtotalpiece != null" >
  110 + ARRIVEDTOTALPIECE,
  111 + </if>
  112 + <if test="totalpiecequantity != null" >
  113 + TOTALPIECEQUANTITY,
  114 + </if>
  115 + <if test="arrivedtotalweight != null" >
  116 + ARRIVEDTOTALWEIGHT,
  117 + </if>
  118 + <if test="grossweightmeasureuc != null" >
  119 + GROSSWEIGHTMEASUREUC,
  120 + </if>
  121 + <if test="totalgrossweightmeasure != null" >
  122 + TOTALGROSSWEIGHTMEASURE,
  123 + </if>
  124 + <if test="totalgrossweightmeasureuc != null" >
  125 + TOTALGROSSWEIGHTMEASUREUC,
  126 + </if>
  127 + <if test="chargeableweightmeasure != null" >
  128 + CHARGEABLEWEIGHTMEASURE,
  129 + </if>
  130 + <if test="chargeableweightmeasureuc != null" >
  131 + CHARGEABLEWEIGHTMEASUREUC,
  132 + </if>
  133 + <if test="arriveddate != null" >
  134 + ARRIVEDDATE,
  135 + </if>
  136 + <if test="transportsplitdescription != null" >
  137 + TRANSPORTSPLITDESCRIPTION,
  138 + </if>
  139 + <if test="customscode != null" >
  140 + CUSTOMSCODE,
  141 + </if>
  142 + <if test="productname != null" >
  143 + PRODUCTNAME,
  144 + </if>
  145 + <if test="status != null" >
  146 + STATUS,
  147 + </if>
  148 + <if test="receiptinformation != null" >
  149 + RECEIPTINFORMATION,
  150 + </if>
  151 + <if test="createdate != null" >
  152 + CREATEDATE,
  153 + </if>
  154 + </trim>
  155 + <trim prefix="values (" suffix=")" suffixOverrides="," >
  156 + <if test="autoid != null" >
  157 + #{autoid,jdbcType=VARCHAR},
  158 + </if>
  159 + <if test="waybillnomaster != null" >
  160 + #{waybillnomaster,jdbcType=VARCHAR},
  161 + </if>
  162 + <if test="tcdName != null" >
  163 + #{tcdName,jdbcType=VARCHAR},
  164 + </if>
  165 + <if test="tcdTypecode != null" >
  166 + #{tcdTypecode,jdbcType=VARCHAR},
  167 + </if>
  168 + <if test="flightno != null" >
  169 + #{flightno,jdbcType=VARCHAR},
  170 + </if>
  171 + <if test="flightdate != null" >
  172 + #{flightdate,jdbcType=TIMESTAMP},
  173 + </if>
  174 + <if test="carrier != null" >
  175 + #{carrier,jdbcType=VARCHAR},
  176 + </if>
  177 + <if test="originatingstation != null" >
  178 + #{originatingstation,jdbcType=VARCHAR},
  179 + </if>
  180 + <if test="oName != null" >
  181 + #{oName,jdbcType=VARCHAR},
  182 + </if>
  183 + <if test="destinationstation != null" >
  184 + #{destinationstation,jdbcType=VARCHAR},
  185 + </if>
  186 + <if test="fdName != null" >
  187 + #{fdName,jdbcType=VARCHAR},
  188 + </if>
  189 + <if test="arrivedtotalpiece != null" >
  190 + #{arrivedtotalpiece,jdbcType=VARCHAR},
  191 + </if>
  192 + <if test="totalpiecequantity != null" >
  193 + #{totalpiecequantity,jdbcType=VARCHAR},
  194 + </if>
  195 + <if test="arrivedtotalweight != null" >
  196 + #{arrivedtotalweight,jdbcType=VARCHAR},
  197 + </if>
  198 + <if test="grossweightmeasureuc != null" >
  199 + #{grossweightmeasureuc,jdbcType=VARCHAR},
  200 + </if>
  201 + <if test="totalgrossweightmeasure != null" >
  202 + #{totalgrossweightmeasure,jdbcType=VARCHAR},
  203 + </if>
  204 + <if test="totalgrossweightmeasureuc != null" >
  205 + #{totalgrossweightmeasureuc,jdbcType=VARCHAR},
  206 + </if>
  207 + <if test="chargeableweightmeasure != null" >
  208 + #{chargeableweightmeasure,jdbcType=VARCHAR},
  209 + </if>
  210 + <if test="chargeableweightmeasureuc != null" >
  211 + #{chargeableweightmeasureuc,jdbcType=VARCHAR},
  212 + </if>
  213 + <if test="arriveddate != null" >
  214 + #{arriveddate,jdbcType=TIMESTAMP},
  215 + </if>
  216 + <if test="transportsplitdescription != null" >
  217 + #{transportsplitdescription,jdbcType=VARCHAR},
  218 + </if>
  219 + <if test="customscode != null" >
  220 + #{customscode,jdbcType=VARCHAR},
  221 + </if>
  222 + <if test="productname != null" >
  223 + #{productname,jdbcType=VARCHAR},
  224 + </if>
  225 + <if test="status != null" >
  226 + #{status,jdbcType=VARCHAR},
  227 + </if>
  228 + <if test="receiptinformation != null" >
  229 + #{receiptinformation,jdbcType=VARCHAR},
  230 + </if>
  231 + <if test="createdate != null" >
  232 + #{createdate,jdbcType=TIMESTAMP},
  233 + </if>
  234 + </trim>
  235 + </insert>
  236 + <update id="updateByPrimaryKeySelective" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" >
  237 + update ARRIVEDMASTER
  238 + <set >
  239 + <if test="waybillnomaster != null" >
  240 + WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR},
  241 + </if>
  242 + <if test="tcdName != null" >
  243 + TCD_NAME = #{tcdName,jdbcType=VARCHAR},
  244 + </if>
  245 + <if test="tcdTypecode != null" >
  246 + TCD_TYPECODE = #{tcdTypecode,jdbcType=VARCHAR},
  247 + </if>
  248 + <if test="flightno != null" >
  249 + FLIGHTNO = #{flightno,jdbcType=VARCHAR},
  250 + </if>
  251 + <if test="flightdate != null" >
  252 + FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP},
  253 + </if>
  254 + <if test="carrier != null" >
  255 + CARRIER = #{carrier,jdbcType=VARCHAR},
  256 + </if>
  257 + <if test="originatingstation != null" >
  258 + ORIGINATINGSTATION = #{originatingstation,jdbcType=VARCHAR},
  259 + </if>
  260 + <if test="oName != null" >
  261 + O_NAME = #{oName,jdbcType=VARCHAR},
  262 + </if>
  263 + <if test="destinationstation != null" >
  264 + DESTINATIONSTATION = #{destinationstation,jdbcType=VARCHAR},
  265 + </if>
  266 + <if test="fdName != null" >
  267 + FD_NAME = #{fdName,jdbcType=VARCHAR},
  268 + </if>
  269 + <if test="arrivedtotalpiece != null" >
  270 + ARRIVEDTOTALPIECE = #{arrivedtotalpiece,jdbcType=VARCHAR},
  271 + </if>
  272 + <if test="totalpiecequantity != null" >
  273 + TOTALPIECEQUANTITY = #{totalpiecequantity,jdbcType=VARCHAR},
  274 + </if>
  275 + <if test="arrivedtotalweight != null" >
  276 + ARRIVEDTOTALWEIGHT = #{arrivedtotalweight,jdbcType=VARCHAR},
  277 + </if>
  278 + <if test="grossweightmeasureuc != null" >
  279 + GROSSWEIGHTMEASUREUC = #{grossweightmeasureuc,jdbcType=VARCHAR},
  280 + </if>
  281 + <if test="totalgrossweightmeasure != null" >
  282 + TOTALGROSSWEIGHTMEASURE = #{totalgrossweightmeasure,jdbcType=VARCHAR},
  283 + </if>
  284 + <if test="totalgrossweightmeasureuc != null" >
  285 + TOTALGROSSWEIGHTMEASUREUC = #{totalgrossweightmeasureuc,jdbcType=VARCHAR},
  286 + </if>
  287 + <if test="chargeableweightmeasure != null" >
  288 + CHARGEABLEWEIGHTMEASURE = #{chargeableweightmeasure,jdbcType=VARCHAR},
  289 + </if>
  290 + <if test="chargeableweightmeasureuc != null" >
  291 + CHARGEABLEWEIGHTMEASUREUC = #{chargeableweightmeasureuc,jdbcType=VARCHAR},
  292 + </if>
  293 + <if test="arriveddate != null" >
  294 + ARRIVEDDATE = #{arriveddate,jdbcType=TIMESTAMP},
  295 + </if>
  296 + <if test="transportsplitdescription != null" >
  297 + TRANSPORTSPLITDESCRIPTION = #{transportsplitdescription,jdbcType=VARCHAR},
  298 + </if>
  299 + <if test="customscode != null" >
  300 + CUSTOMSCODE = #{customscode,jdbcType=VARCHAR},
  301 + </if>
  302 + <if test="productname != null" >
  303 + PRODUCTNAME = #{productname,jdbcType=VARCHAR},
  304 + </if>
  305 + <if test="status != null" >
  306 + STATUS = #{status,jdbcType=VARCHAR},
  307 + </if>
  308 + <if test="receiptinformation != null" >
  309 + RECEIPTINFORMATION = #{receiptinformation,jdbcType=VARCHAR},
  310 + </if>
  311 + <if test="createdate != null" >
  312 + CREATEDATE = #{createdate,jdbcType=TIMESTAMP},
  313 + </if>
  314 + </set>
  315 + where AUTOID = #{autoid,jdbcType=VARCHAR}
  316 + </update>
  317 + <update id="updateByPrimaryKey" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" >
  318 + update ARRIVEDMASTER
  319 + set WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR},
  320 + TCD_NAME = #{tcdName,jdbcType=VARCHAR},
  321 + TCD_TYPECODE = #{tcdTypecode,jdbcType=VARCHAR},
  322 + FLIGHTNO = #{flightno,jdbcType=VARCHAR},
  323 + FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP},
  324 + CARRIER = #{carrier,jdbcType=VARCHAR},
  325 + ORIGINATINGSTATION = #{originatingstation,jdbcType=VARCHAR},
  326 + O_NAME = #{oName,jdbcType=VARCHAR},
  327 + DESTINATIONSTATION = #{destinationstation,jdbcType=VARCHAR},
  328 + FD_NAME = #{fdName,jdbcType=VARCHAR},
  329 + ARRIVEDTOTALPIECE = #{arrivedtotalpiece,jdbcType=VARCHAR},
  330 + TOTALPIECEQUANTITY = #{totalpiecequantity,jdbcType=VARCHAR},
  331 + ARRIVEDTOTALWEIGHT = #{arrivedtotalweight,jdbcType=VARCHAR},
  332 + GROSSWEIGHTMEASUREUC = #{grossweightmeasureuc,jdbcType=VARCHAR},
  333 + TOTALGROSSWEIGHTMEASURE = #{totalgrossweightmeasure,jdbcType=VARCHAR},
  334 + TOTALGROSSWEIGHTMEASUREUC = #{totalgrossweightmeasureuc,jdbcType=VARCHAR},
  335 + CHARGEABLEWEIGHTMEASURE = #{chargeableweightmeasure,jdbcType=VARCHAR},
  336 + CHARGEABLEWEIGHTMEASUREUC = #{chargeableweightmeasureuc,jdbcType=VARCHAR},
  337 + ARRIVEDDATE = #{arriveddate,jdbcType=TIMESTAMP},
  338 + TRANSPORTSPLITDESCRIPTION = #{transportsplitdescription,jdbcType=VARCHAR},
  339 + CUSTOMSCODE = #{customscode,jdbcType=VARCHAR},
  340 + PRODUCTNAME = #{productname,jdbcType=VARCHAR},
  341 + STATUS = #{status,jdbcType=VARCHAR},
  342 + RECEIPTINFORMATION = #{receiptinformation,jdbcType=VARCHAR},
  343 + CREATEDATE = #{createdate,jdbcType=TIMESTAMP}
  344 + where AUTOID = #{autoid,jdbcType=VARCHAR}
  345 + </update>
  346 +
  347 +
  348 + <update id="updateRECEIPTION" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" >
  349 + UPDATE ARRIVEDMASTER
  350 + SET RECEIPTINFORMATION= #{receiptinformation,jdbcType=VARCHAR}
  351 + WHERE WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
  352 + AND
  353 + FLIGHTDATE= #{flightDate,jdbcType=TIMESTAMP}
  354 + AND
  355 + WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
  356 + </update>
  357 +
  358 + <select id="selectAutoIdByAwb" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" resultType="com.tianbo.analysis.model.ARRIVEDMASTER">
  359 + SELECT AUTOID
  360 + FROM ARRIVEDMASTER
  361 + WHERE
  362 + FLIGHTNO= #{flightno,jdbcType=VARCHAR}
  363 + AND
  364 + FLIGHTDATE= #{flightDate,jdbcType=TIMESTAMP}
  365 + AND
  366 + WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
  367 + </select>
  368 +</mapper>
  1 +<?xml version="1.0" encoding="UTF-8" ?>
  2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3 +<mapper namespace="com.tianbo.analysis.dao.ARRIVEDSECONDARYMapper" >
  4 + <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.ARRIVEDSECONDARY" >
  5 + <result column="AUTOID" property="autoid" jdbcType="VARCHAR" />
  6 + <result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
  7 + <result column="TCD_NAME" property="tcdName" jdbcType="VARCHAR" />
  8 + <result column="TCD_TYPECODE" property="tcdTypecode" jdbcType="VARCHAR" />
  9 + <result column="WAYBILLNOSECONDARY" property="waybillnosecondary" jdbcType="VARCHAR" />
  10 + <result column="CARRIER" property="carrier" jdbcType="VARCHAR" />
  11 + <result column="O_ID" property="oId" jdbcType="VARCHAR" />
  12 + <result column="O_NAME" property="oName" jdbcType="VARCHAR" />
  13 + <result column="FD_ID" property="fdId" jdbcType="VARCHAR" />
  14 + <result column="FD_NAME" property="fdName" jdbcType="VARCHAR" />
  15 + <result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" />
  16 + <result column="FLIGHTDATE" property="flightdate" jdbcType="TIMESTAMP" />
  17 + <result column="ARRIVEDTOTALPIECE" property="arrivedtotalpiece" jdbcType="VARCHAR" />
  18 + <result column="TOTALPIECEQUANTITY" property="totalpiecequantity" jdbcType="VARCHAR" />
  19 + <result column="ARRIVEDTOTALWEIGHT" property="arrivedtotalweight" jdbcType="VARCHAR" />
  20 + <result column="GROSSWEIGHTMEASUREUC" property="grossweightmeasureuc" jdbcType="VARCHAR" />
  21 + <result column="TOTALGROSSWEIGHTMEASURE" property="totalgrossweightmeasure" jdbcType="VARCHAR" />
  22 + <result column="TOTALGROSSWEIGHTMEASUREUC" property="totalgrossweightmeasureuc" jdbcType="VARCHAR" />
  23 + <result column="CHARGEABLEWEIGHTMEASURE" property="chargeableweightmeasure" jdbcType="VARCHAR" />
  24 + <result column="CHARGEABLEWEIGHTMEASUREUC" property="chargeableweightmeasureuc" jdbcType="VARCHAR" />
  25 + <result column="ARRIVEDDATE" property="arriveddate" jdbcType="TIMESTAMP" />
  26 + <result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" />
  27 + <result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" />
  28 + <result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
  29 + <result column="ARRIVEDMASTERID" property="arrivedmasterid" jdbcType="VARCHAR" />
  30 + <result column="TRANSPORTSPLITDESCRIPTION" property="transportsplitdescription" jdbcType="VARCHAR" />
  31 + <result column="RECEIPTION" property="receiption" jdbcType="VARCHAR" />
  32 + <result column="STATUS" property="status" jdbcType="VARCHAR" />
  33 + </resultMap>
  34 + <insert id="insert" parameterType="com.tianbo.analysis.model.ARRIVEDSECONDARY" >
  35 + insert into ARRIVEDSECONDARY (AUTOID, WAYBILLNOMASTER, TCD_NAME,
  36 + TCD_TYPECODE, WAYBILLNOSECONDARY, CARRIER,
  37 + O_ID, O_NAME, FD_ID, FD_NAME,
  38 + FLIGHTNO, FLIGHTDATE, ARRIVEDTOTALPIECE,
  39 + TOTALPIECEQUANTITY, ARRIVEDTOTALWEIGHT,
  40 + GROSSWEIGHTMEASUREUC, TOTALGROSSWEIGHTMEASURE,
  41 + TOTALGROSSWEIGHTMEASUREUC, CHARGEABLEWEIGHTMEASURE,
  42 + CHARGEABLEWEIGHTMEASUREUC, ARRIVEDDATE,
  43 + CUSTOMSCODE, PRODUCTNAME, CREATEDATE,
  44 + ARRIVEDMASTERID, TRANSPORTSPLITDESCRIPTION,
  45 + RECEIPTION, STATUS)
  46 + values (#{autoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{tcdName,jdbcType=VARCHAR},
  47 + #{tcdTypecode,jdbcType=VARCHAR}, #{waybillnosecondary,jdbcType=VARCHAR}, #{carrier,jdbcType=VARCHAR},
  48 + #{oId,jdbcType=VARCHAR}, #{oName,jdbcType=VARCHAR}, #{fdId,jdbcType=VARCHAR}, #{fdName,jdbcType=VARCHAR},
  49 + #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=TIMESTAMP}, #{arrivedtotalpiece,jdbcType=VARCHAR},
  50 + #{totalpiecequantity,jdbcType=VARCHAR}, #{arrivedtotalweight,jdbcType=VARCHAR},
  51 + #{grossweightmeasureuc,jdbcType=VARCHAR}, #{totalgrossweightmeasure,jdbcType=VARCHAR},
  52 + #{totalgrossweightmeasureuc,jdbcType=VARCHAR}, #{chargeableweightmeasure,jdbcType=VARCHAR},
  53 + #{chargeableweightmeasureuc,jdbcType=VARCHAR}, #{arriveddate,jdbcType=TIMESTAMP},
  54 + #{customscode,jdbcType=VARCHAR}, #{productname,jdbcType=VARCHAR}, #{createdate,jdbcType=TIMESTAMP},
  55 + #{arrivedmasterid,jdbcType=VARCHAR}, #{transportsplitdescription,jdbcType=VARCHAR},
  56 + #{receiption,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR})
  57 + </insert>
  58 + <insert id="insertSelective" parameterType="com.tianbo.analysis.model.ARRIVEDSECONDARY" >
  59 + insert into ARRIVEDSECONDARY
  60 + <trim prefix="(" suffix=")" suffixOverrides="," >
  61 + <if test="autoid != null" >
  62 + AUTOID,
  63 + </if>
  64 + <if test="waybillnomaster != null" >
  65 + WAYBILLNOMASTER,
  66 + </if>
  67 + <if test="tcdName != null" >
  68 + TCD_NAME,
  69 + </if>
  70 + <if test="tcdTypecode != null" >
  71 + TCD_TYPECODE,
  72 + </if>
  73 + <if test="waybillnosecondary != null" >
  74 + WAYBILLNOSECONDARY,
  75 + </if>
  76 + <if test="carrier != null" >
  77 + CARRIER,
  78 + </if>
  79 + <if test="oId != null" >
  80 + O_ID,
  81 + </if>
  82 + <if test="oName != null" >
  83 + O_NAME,
  84 + </if>
  85 + <if test="fdId != null" >
  86 + FD_ID,
  87 + </if>
  88 + <if test="fdName != null" >
  89 + FD_NAME,
  90 + </if>
  91 + <if test="flightno != null" >
  92 + FLIGHTNO,
  93 + </if>
  94 + <if test="flightdate != null" >
  95 + FLIGHTDATE,
  96 + </if>
  97 + <if test="arrivedtotalpiece != null" >
  98 + ARRIVEDTOTALPIECE,
  99 + </if>
  100 + <if test="totalpiecequantity != null" >
  101 + TOTALPIECEQUANTITY,
  102 + </if>
  103 + <if test="arrivedtotalweight != null" >
  104 + ARRIVEDTOTALWEIGHT,
  105 + </if>
  106 + <if test="grossweightmeasureuc != null" >
  107 + GROSSWEIGHTMEASUREUC,
  108 + </if>
  109 + <if test="totalgrossweightmeasure != null" >
  110 + TOTALGROSSWEIGHTMEASURE,
  111 + </if>
  112 + <if test="totalgrossweightmeasureuc != null" >
  113 + TOTALGROSSWEIGHTMEASUREUC,
  114 + </if>
  115 + <if test="chargeableweightmeasure != null" >
  116 + CHARGEABLEWEIGHTMEASURE,
  117 + </if>
  118 + <if test="chargeableweightmeasureuc != null" >
  119 + CHARGEABLEWEIGHTMEASUREUC,
  120 + </if>
  121 + <if test="arriveddate != null" >
  122 + ARRIVEDDATE,
  123 + </if>
  124 + <if test="customscode != null" >
  125 + CUSTOMSCODE,
  126 + </if>
  127 + <if test="productname != null" >
  128 + PRODUCTNAME,
  129 + </if>
  130 + <if test="createdate != null" >
  131 + CREATEDATE,
  132 + </if>
  133 + <if test="arrivedmasterid != null" >
  134 + ARRIVEDMASTERID,
  135 + </if>
  136 + <if test="transportsplitdescription != null" >
  137 + TRANSPORTSPLITDESCRIPTION,
  138 + </if>
  139 + <if test="receiption != null" >
  140 + RECEIPTION,
  141 + </if>
  142 + <if test="status != null" >
  143 + STATUS,
  144 + </if>
  145 + </trim>
  146 + <trim prefix="values (" suffix=")" suffixOverrides="," >
  147 + <if test="autoid != null" >
  148 + #{autoid,jdbcType=VARCHAR},
  149 + </if>
  150 + <if test="waybillnomaster != null" >
  151 + #{waybillnomaster,jdbcType=VARCHAR},
  152 + </if>
  153 + <if test="tcdName != null" >
  154 + #{tcdName,jdbcType=VARCHAR},
  155 + </if>
  156 + <if test="tcdTypecode != null" >
  157 + #{tcdTypecode,jdbcType=VARCHAR},
  158 + </if>
  159 + <if test="waybillnosecondary != null" >
  160 + #{waybillnosecondary,jdbcType=VARCHAR},
  161 + </if>
  162 + <if test="carrier != null" >
  163 + #{carrier,jdbcType=VARCHAR},
  164 + </if>
  165 + <if test="oId != null" >
  166 + #{oId,jdbcType=VARCHAR},
  167 + </if>
  168 + <if test="oName != null" >
  169 + #{oName,jdbcType=VARCHAR},
  170 + </if>
  171 + <if test="fdId != null" >
  172 + #{fdId,jdbcType=VARCHAR},
  173 + </if>
  174 + <if test="fdName != null" >
  175 + #{fdName,jdbcType=VARCHAR},
  176 + </if>
  177 + <if test="flightno != null" >
  178 + #{flightno,jdbcType=VARCHAR},
  179 + </if>
  180 + <if test="flightdate != null" >
  181 + #{flightdate,jdbcType=TIMESTAMP},
  182 + </if>
  183 + <if test="arrivedtotalpiece != null" >
  184 + #{arrivedtotalpiece,jdbcType=VARCHAR},
  185 + </if>
  186 + <if test="totalpiecequantity != null" >
  187 + #{totalpiecequantity,jdbcType=VARCHAR},
  188 + </if>
  189 + <if test="arrivedtotalweight != null" >
  190 + #{arrivedtotalweight,jdbcType=VARCHAR},
  191 + </if>
  192 + <if test="grossweightmeasureuc != null" >
  193 + #{grossweightmeasureuc,jdbcType=VARCHAR},
  194 + </if>
  195 + <if test="totalgrossweightmeasure != null" >
  196 + #{totalgrossweightmeasure,jdbcType=VARCHAR},
  197 + </if>
  198 + <if test="totalgrossweightmeasureuc != null" >
  199 + #{totalgrossweightmeasureuc,jdbcType=VARCHAR},
  200 + </if>
  201 + <if test="chargeableweightmeasure != null" >
  202 + #{chargeableweightmeasure,jdbcType=VARCHAR},
  203 + </if>
  204 + <if test="chargeableweightmeasureuc != null" >
  205 + #{chargeableweightmeasureuc,jdbcType=VARCHAR},
  206 + </if>
  207 + <if test="arriveddate != null" >
  208 + #{arriveddate,jdbcType=TIMESTAMP},
  209 + </if>
  210 + <if test="customscode != null" >
  211 + #{customscode,jdbcType=VARCHAR},
  212 + </if>
  213 + <if test="productname != null" >
  214 + #{productname,jdbcType=VARCHAR},
  215 + </if>
  216 + <if test="createdate != null" >
  217 + #{createdate,jdbcType=TIMESTAMP},
  218 + </if>
  219 + <if test="arrivedmasterid != null" >
  220 + #{arrivedmasterid,jdbcType=VARCHAR},
  221 + </if>
  222 + <if test="transportsplitdescription != null" >
  223 + #{transportsplitdescription,jdbcType=VARCHAR},
  224 + </if>
  225 + <if test="receiption != null" >
  226 + #{receiption,jdbcType=VARCHAR},
  227 + </if>
  228 + <if test="status != null" >
  229 + #{status,jdbcType=VARCHAR},
  230 + </if>
  231 + </trim>
  232 + </insert>
  233 +
  234 + <update id="updateRECEIPTION" parameterType="com.tianbo.analysis.model.ARRIVEDSECONDARY" >
  235 + UPDATE ARRIVEDSECONDARY
  236 + SET RECEIPTION= #{receiption,jdbcType=VARCHAR}
  237 + WHERE WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
  238 + AND WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}
  239 + </update>
  240 +
  241 + <select id="selectAutoIdByawbAawbH" parameterType="com.tianbo.analysis.model.ARRIVEDSECONDARY" resultType="com.tianbo.analysis.model.ARRIVEDSECONDARY">
  242 + SELECT AUTOID
  243 + FROM ARRIVEDSECONDARY
  244 + WHERE
  245 + WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR} AND WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}
  246 + </select>
  247 +</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.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 + <insert id="insert" parameterType="com.tianbo.analysis.model.CUSTOMSMESSAGEWithBLOBs" >
  32 + insert into CUSTOMSMESSAGE (AUTOID, MESSAGEID, MESSAGETYPE,
  33 + MESSAGESTATUS, SENDTIME, RECEIVETIME,
  34 + OBJECTID, FLIGHTNO, FLIGHTDATE,
  35 + MASTERAUTOID, WAYBILLNOMASTER, SECONDARYAUTOID,
  36 + WAYBILLNOSECONDARY, PCS, WT,
  37 + RESPONSECODE, RESPONSETEXT, CREATETIME,
  38 + MESSAGECONTENT, RECEIVECONTENT)
  39 + values (#{autoid,jdbcType=VARCHAR}, #{messageid,jdbcType=VARCHAR}, #{messagetype,jdbcType=VARCHAR},
  40 + #{messagestatus,jdbcType=VARCHAR}, #{sendtime,jdbcType=TIMESTAMP}, #{receivetime,jdbcType=TIMESTAMP},
  41 + #{objectid,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=TIMESTAMP},
  42 + #{masterautoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{secondaryautoid,jdbcType=VARCHAR},
  43 + #{waybillnosecondary,jdbcType=VARCHAR}, #{pcs,jdbcType=DECIMAL}, #{wt,jdbcType=DECIMAL},
  44 + #{responsecode,jdbcType=VARCHAR}, #{responsetext,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP},
  45 + #{messagecontent,jdbcType=CLOB}, #{receivecontent,jdbcType=CLOB})
  46 + </insert>
  47 + <insert id="insertSelective" parameterType="com.tianbo.analysis.model.CUSTOMSMESSAGEWithBLOBs" >
  48 + insert into CUSTOMSMESSAGE
  49 + <trim prefix="(" suffix=")" suffixOverrides="," >
  50 + <if test="autoid != null" >
  51 + AUTOID,
  52 + </if>
  53 + <if test="messageid != null" >
  54 + MESSAGEID,
  55 + </if>
  56 + <if test="messagetype != null" >
  57 + MESSAGETYPE,
  58 + </if>
  59 + <if test="messagestatus != null" >
  60 + MESSAGESTATUS,
  61 + </if>
  62 + <if test="sendtime != null" >
  63 + SENDTIME,
  64 + </if>
  65 + <if test="receivetime != null" >
  66 + RECEIVETIME,
  67 + </if>
  68 + <if test="objectid != null" >
  69 + OBJECTID,
  70 + </if>
  71 + <if test="flightno != null" >
  72 + FLIGHTNO,
  73 + </if>
  74 + <if test="flightdate != null" >
  75 + FLIGHTDATE,
  76 + </if>
  77 + <if test="masterautoid != null" >
  78 + MASTERAUTOID,
  79 + </if>
  80 + <if test="waybillnomaster != null" >
  81 + WAYBILLNOMASTER,
  82 + </if>
  83 + <if test="secondaryautoid != null" >
  84 + SECONDARYAUTOID,
  85 + </if>
  86 + <if test="waybillnosecondary != null" >
  87 + WAYBILLNOSECONDARY,
  88 + </if>
  89 + <if test="pcs != null" >
  90 + PCS,
  91 + </if>
  92 + <if test="wt != null" >
  93 + WT,
  94 + </if>
  95 + <if test="responsecode != null" >
  96 + RESPONSECODE,
  97 + </if>
  98 + <if test="responsetext != null" >
  99 + RESPONSETEXT,
  100 + </if>
  101 + <if test="createtime != null" >
  102 + CREATETIME,
  103 + </if>
  104 + <if test="messagecontent != null" >
  105 + MESSAGECONTENT,
  106 + </if>
  107 + <if test="receivecontent != null" >
  108 + RECEIVECONTENT,
  109 + </if>
  110 + </trim>
  111 + <trim prefix="values (" suffix=")" suffixOverrides="," >
  112 + <if test="autoid != null" >
  113 + #{autoid,jdbcType=VARCHAR},
  114 + </if>
  115 + <if test="messageid != null" >
  116 + #{messageid,jdbcType=VARCHAR},
  117 + </if>
  118 + <if test="messagetype != null" >
  119 + #{messagetype,jdbcType=VARCHAR},
  120 + </if>
  121 + <if test="messagestatus != null" >
  122 + #{messagestatus,jdbcType=VARCHAR},
  123 + </if>
  124 + <if test="sendtime != null" >
  125 + #{sendtime,jdbcType=TIMESTAMP},
  126 + </if>
  127 + <if test="receivetime != null" >
  128 + #{receivetime,jdbcType=TIMESTAMP},
  129 + </if>
  130 + <if test="objectid != null" >
  131 + #{objectid,jdbcType=VARCHAR},
  132 + </if>
  133 + <if test="flightno != null" >
  134 + #{flightno,jdbcType=VARCHAR},
  135 + </if>
  136 + <if test="flightdate != null" >
  137 + #{flightdate,jdbcType=TIMESTAMP},
  138 + </if>
  139 + <if test="masterautoid != null" >
  140 + #{masterautoid,jdbcType=VARCHAR},
  141 + </if>
  142 + <if test="waybillnomaster != null" >
  143 + #{waybillnomaster,jdbcType=VARCHAR},
  144 + </if>
  145 + <if test="secondaryautoid != null" >
  146 + #{secondaryautoid,jdbcType=VARCHAR},
  147 + </if>
  148 + <if test="waybillnosecondary != null" >
  149 + #{waybillnosecondary,jdbcType=VARCHAR},
  150 + </if>
  151 + <if test="pcs != null" >
  152 + #{pcs,jdbcType=DECIMAL},
  153 + </if>
  154 + <if test="wt != null" >
  155 + #{wt,jdbcType=DECIMAL},
  156 + </if>
  157 + <if test="responsecode != null" >
  158 + #{responsecode,jdbcType=VARCHAR},
  159 + </if>
  160 + <if test="responsetext != null" >
  161 + #{responsetext,jdbcType=VARCHAR},
  162 + </if>
  163 + <if test="createtime != null" >
  164 + #{createtime,jdbcType=TIMESTAMP},
  165 + </if>
  166 + <if test="messagecontent != null" >
  167 + #{messagecontent,jdbcType=CLOB},
  168 + </if>
  169 + <if test="receivecontent != null" >
  170 + #{receivecontent,jdbcType=CLOB},
  171 + </if>
  172 + </trim>
  173 + </insert>
  174 +
  175 + <select id="selectMessage" parameterType="string" resultType="com.tianbo.analysis.model.CUSTOMSMESSAGEWithBLOBs">
  176 + select * from CUSTOMSMESSAGE where MESSAGEID = #{value}
  177 + </select>
  178 +</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.DEPARTURESLOADINGMapper" >
  4 + <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.DEPARTURESLOADING" >
  5 + <result column="ID" property="id" jdbcType="VARCHAR" />
  6 + <result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
  7 + <result column="WAYBILLNO" property="waybillno" jdbcType="VARCHAR" />
  8 + <result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" />
  9 + <result column="FLIGHTDATE" property="flightdate" jdbcType="TIMESTAMP" />
  10 + <result column="ORIGINATINGSTATION" property="originatingstation" jdbcType="VARCHAR" />
  11 + <result column="DESTINATIONSTATION" property="destinationstation" jdbcType="VARCHAR" />
  12 + <result column="STOWAGEPIECES" property="stowagepieces" jdbcType="VARCHAR" />
  13 + <result column="STOWAGEWEIGHT" property="stowageweight" jdbcType="VARCHAR" />
  14 + <result column="WAYBILLPIECES" property="waybillpieces" jdbcType="VARCHAR" />
  15 + <result column="WAYBILLWEIGHT" property="waybillweight" jdbcType="VARCHAR" />
  16 + <result column="STOWAGEDATE" property="stowagedate" jdbcType="TIMESTAMP" />
  17 + <result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" />
  18 + <result column="SPECIALCODE" property="specialcode" jdbcType="VARCHAR" />
  19 + <result column="CUSTOMS" property="customs" jdbcType="VARCHAR" />
  20 + <result column="RECEIPTION" property="receiption" jdbcType="VARCHAR" />
  21 + <result column="STATUS" property="status" jdbcType="VARCHAR" />
  22 + </resultMap>
  23 + <insert id="insert" parameterType="com.tianbo.analysis.model.DEPARTURESLOADING" >
  24 + insert into DEPARTURESLOADING (ID, CREATEDATE, WAYBILLNO,
  25 + FLIGHTNO, FLIGHTDATE, ORIGINATINGSTATION,
  26 + DESTINATIONSTATION, STOWAGEPIECES, STOWAGEWEIGHT,
  27 + WAYBILLPIECES, WAYBILLWEIGHT, STOWAGEDATE,
  28 + PRODUCTNAME, SPECIALCODE, CUSTOMS,
  29 + RECEIPTION, STATUS)
  30 + values (#{id,jdbcType=VARCHAR}, #{createdate,jdbcType=TIMESTAMP}, #{waybillno,jdbcType=VARCHAR},
  31 + #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=TIMESTAMP}, #{originatingstation,jdbcType=VARCHAR},
  32 + #{destinationstation,jdbcType=VARCHAR}, #{stowagepieces,jdbcType=VARCHAR}, #{stowageweight,jdbcType=VARCHAR},
  33 + #{waybillpieces,jdbcType=VARCHAR}, #{waybillweight,jdbcType=VARCHAR}, #{stowagedate,jdbcType=TIMESTAMP},
  34 + #{productname,jdbcType=VARCHAR}, #{specialcode,jdbcType=VARCHAR}, #{customs,jdbcType=VARCHAR},
  35 + #{receiption,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR})
  36 + </insert>
  37 + <insert id="insertSelective" parameterType="com.tianbo.analysis.model.DEPARTURESLOADING" >
  38 + insert into DEPARTURESLOADING
  39 + <trim prefix="(" suffix=")" suffixOverrides="," >
  40 + <if test="id != null" >
  41 + ID,
  42 + </if>
  43 + <if test="createdate != null" >
  44 + CREATEDATE,
  45 + </if>
  46 + <if test="waybillno != null" >
  47 + WAYBILLNO,
  48 + </if>
  49 + <if test="flightno != null" >
  50 + FLIGHTNO,
  51 + </if>
  52 + <if test="flightdate != null" >
  53 + FLIGHTDATE,
  54 + </if>
  55 + <if test="originatingstation != null" >
  56 + ORIGINATINGSTATION,
  57 + </if>
  58 + <if test="destinationstation != null" >
  59 + DESTINATIONSTATION,
  60 + </if>
  61 + <if test="stowagepieces != null" >
  62 + STOWAGEPIECES,
  63 + </if>
  64 + <if test="stowageweight != null" >
  65 + STOWAGEWEIGHT,
  66 + </if>
  67 + <if test="waybillpieces != null" >
  68 + WAYBILLPIECES,
  69 + </if>
  70 + <if test="waybillweight != null" >
  71 + WAYBILLWEIGHT,
  72 + </if>
  73 + <if test="stowagedate != null" >
  74 + STOWAGEDATE,
  75 + </if>
  76 + <if test="productname != null" >
  77 + PRODUCTNAME,
  78 + </if>
  79 + <if test="specialcode != null" >
  80 + SPECIALCODE,
  81 + </if>
  82 + <if test="customs != null" >
  83 + CUSTOMS,
  84 + </if>
  85 + <if test="receiption != null" >
  86 + RECEIPTION,
  87 + </if>
  88 + <if test="status != null" >
  89 + STATUS,
  90 + </if>
  91 + </trim>
  92 + <trim prefix="values (" suffix=")" suffixOverrides="," >
  93 + <if test="id != null" >
  94 + #{id,jdbcType=VARCHAR},
  95 + </if>
  96 + <if test="createdate != null" >
  97 + #{createdate,jdbcType=TIMESTAMP},
  98 + </if>
  99 + <if test="waybillno != null" >
  100 + #{waybillno,jdbcType=VARCHAR},
  101 + </if>
  102 + <if test="flightno != null" >
  103 + #{flightno,jdbcType=VARCHAR},
  104 + </if>
  105 + <if test="flightdate != null" >
  106 + #{flightdate,jdbcType=TIMESTAMP},
  107 + </if>
  108 + <if test="originatingstation != null" >
  109 + #{originatingstation,jdbcType=VARCHAR},
  110 + </if>
  111 + <if test="destinationstation != null" >
  112 + #{destinationstation,jdbcType=VARCHAR},
  113 + </if>
  114 + <if test="stowagepieces != null" >
  115 + #{stowagepieces,jdbcType=VARCHAR},
  116 + </if>
  117 + <if test="stowageweight != null" >
  118 + #{stowageweight,jdbcType=VARCHAR},
  119 + </if>
  120 + <if test="waybillpieces != null" >
  121 + #{waybillpieces,jdbcType=VARCHAR},
  122 + </if>
  123 + <if test="waybillweight != null" >
  124 + #{waybillweight,jdbcType=VARCHAR},
  125 + </if>
  126 + <if test="stowagedate != null" >
  127 + #{stowagedate,jdbcType=TIMESTAMP},
  128 + </if>
  129 + <if test="productname != null" >
  130 + #{productname,jdbcType=VARCHAR},
  131 + </if>
  132 + <if test="specialcode != null" >
  133 + #{specialcode,jdbcType=VARCHAR},
  134 + </if>
  135 + <if test="customs != null" >
  136 + #{customs,jdbcType=VARCHAR},
  137 + </if>
  138 + <if test="receiption != null" >
  139 + #{receiption,jdbcType=VARCHAR},
  140 + </if>
  141 + <if test="status != null" >
  142 + #{status,jdbcType=VARCHAR},
  143 + </if>
  144 + </trim>
  145 + </insert>
  146 +
  147 +
  148 + <update id="updateRECEIPTION" parameterType="com.tianbo.analysis.model.DEPARTURESLOADING" >
  149 + UPDATE DEPARTURESLOADING
  150 + SET RECEIPTINO= #{receiptino,jdbcType=VARCHAR}
  151 + WHERE WAYBILLNO = #{waybillno,jdbcType=VARCHAR}
  152 + AND
  153 + FLIGHTDATE= #{flightDate,jdbcType=TIMESTAMP}
  154 + AND
  155 + WAYBILLNO = #{waybillno,jdbcType=VARCHAR}
  156 + </update>
  157 +
  158 + <select id="selectAutoIdByAwb" parameterType="com.tianbo.analysis.model.DEPARTURESLOADING" resultType="com.tianbo.analysis.model.DEPARTURESLOADING">
  159 + SELECT AUTOID
  160 + FROM DEPARTURESLOADING
  161 + WHERE
  162 + FLIGHTNO= #{flightno,jdbcType=VARCHAR}
  163 + AND
  164 + FLIGHTDATE= #{flightDate,jdbcType=TIMESTAMP}
  165 + AND
  166 + WAYBILLNO = #{waybillno,jdbcType=VARCHAR}
  167 + </select>
  168 +
  169 +</mapper>