作者 申海龙

大部分回执解析

正在显示 39 个修改的文件 包含 6677 行增加73 行删除
  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,25 +98,36 @@ public class CustomXmlHandle { @@ -74,25 +98,36 @@ 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);  
79 - String[] flightList = journeyid.split("/");  
80 - String flightNo = flightList[0];  
81 - String flightDate = flightList[1];  
82 - String awbA = XMLXPath.getSingleValueByPath(document,waybillMaster);  
83 - //全格式的分单 如 17212345678_ADBD  
84 - String awbH = XMLXPath.getSingleValueByPath(document,waybillSecond);  
85 - String resCode = XMLXPath.getSingleValueByPath(document,responseCode);  
86 - String resText = XMLXPath.getSingleValueByPath(document,responseText);  
87 -  
88 - CustomReception customReception = new CustomReception(msgType,flightNo,flightDate,awbA,awbH,resText);  
89 -  
90 - int i = customXmlHandle.coustomAnalysisService.insertRecept(customReception);  
91 -  
92 - return i; 101 + String journeyid = XMLXPath.getSingleValueByPath(document,JourneyID);
  102 +// XMLXPath.getSingleValueByPath(document, )
  103 + String[] flightList = journeyid.split("/");
  104 + String flightNo = flightList[0];
  105 + String flightDate = flightList[1];
  106 + String awbA = XMLXPath.getSingleValueByPath(document,waybillMaster);
  107 + //全格式的分单 如 17212345678_ADBD
  108 + String awbH = XMLXPath.getSingleValueByPath(document,waybillSecond);
  109 + String resCode = XMLXPath.getSingleValueByPath(document,responseCode);
  110 + String resText = XMLXPath.getSingleValueByPath(document,responseText);
  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,81 +35,89 @@ public class CoustomAnalysisServiceImp implements CoustomAnalysisService { @@ -35,81 +35,89 @@ 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 - if (awbA!=null && awbA.length()>0){  
54 - StringBuffer stringBuffer = new StringBuffer(awbA);  
55 - stringBuffer.insert(3,"-");  
56 - awbA = stringBuffer.toString(); 53 + // 判断航班号 航班日期 是否为空
  54 + if (flightDate != null && customReception.getFlightNo() != null){
  55 + if (awbA!=null && awbA.length()>0){
  56 + StringBuffer stringBuffer = new StringBuffer(awbA);
  57 + stringBuffer.insert(3,"-");
  58 + awbA = stringBuffer.toString();
57 59
58 - //设置主分单的 主单号  
59 - originmanifestsecondary.setWaybillnomaster(awbA);  
60 - originmanifestmaster.setWaybillnomaster(awbA);  
61 - } 60 + //设置主分单的 主单号
  61 + originmanifestsecondary.setWaybillnomaster(awbA);
  62 + originmanifestmaster.setWaybillnomaster(awbA);
  63 + }
62 64
63 - //有分单号 更新分单  
64 - if(awbA!=null && awbA.length()>0 && awbH!=null && awbH.length()> 0){  
65 - //取分单号  
66 - String[] awbhArr = awbH.split("_");  
67 - String awbh = awbhArr[1];  
68 - originmanifestsecondary.setWaybillnosecondary(awbh);  
69 - //更新分单回执  
70 - int i = originmanifestsecondaryMapper.updateRECEIPTION(originmanifestsecondary);  
71 - //获取分单autoid  
72 - List<Originmanifestsecondary> originmanifestsecondaryList = originmanifestsecondaryMapper.selectAutoIdByawbAawbH(originmanifestsecondary);  
73 - if(!originmanifestsecondaryList.isEmpty()){  
74 - Originmanifestsecondary originSecond = originmanifestsecondaryList.get(0);  
75 - String autoId = originSecond.getAutoid();  
76 - //插入sendlog记录表  
77 - log.info("即将插入日志运单号为:"+awbH+"->autoid="+autoId);  
78 - int ii = insertSendlog("MT1201",reception,autoId);  
79 -  
80 - if (i>0 && ii>0){  
81 - return 1; 65 + //有分单号 更新分单
  66 + if(awbA!=null && awbA.length()>0 && awbH!=null && awbH.length()> 0){
  67 + //取分单号
  68 + String[] awbhArr = awbH.split("_");
  69 + String awbh = awbhArr[1];
  70 + originmanifestsecondary.setWaybillnosecondary(awbh);
  71 + //更新分单回执
  72 + int i = originmanifestsecondaryMapper.updateRECEIPTION(originmanifestsecondary);
  73 + //获取分单autoid
  74 + List<Originmanifestsecondary> originmanifestsecondaryList = originmanifestsecondaryMapper.selectAutoIdByawbAawbH(originmanifestsecondary);
  75 + if(!originmanifestsecondaryList.isEmpty()){
  76 + Originmanifestsecondary originSecond = originmanifestsecondaryList.get(0);
  77 + String autoId = originSecond.getAutoid();
  78 + //插入sendlog记录表
  79 + log.info("即将插入日志运单号为:"+awbH+"->autoid="+autoId);
  80 + int ii = insertSendlog("MT1201",reception,autoId);
  81 +
  82 + if (i>0 && ii>0){
  83 + return 1;
  84 + }
82 } 85 }
  86 + return 0;
83 } 87 }
84 - return 0;  
85 - }  
86 88
87 - //处理主单格式,将海关回执的主单号58019316861,变为580-19316861  
88 - if (awbA!=null && awbA.length()>0){  
89 - //更新主单回执  
90 - int i = originmanifestmasterMapper.updateRECEIPTION(originmanifestmaster);  
91 - //获取分单autoid  
92 - List<ORIGINMANIFESTMASTER> originmanifestmasterList = originmanifestmasterMapper.selectAutoIdByAwb(originmanifestmaster);  
93 - if(!originmanifestmasterList.isEmpty()){  
94 - ORIGINMANIFESTMASTER originMaster = originmanifestmasterList.get(0);  
95 - String autoId = originMaster.getAutoid();  
96 -  
97 - //插入sendlog记录表  
98 - log.info("即将插入日志运单号为:"+awbA+"->autoid="+autoId);  
99 - int ii =insertSendlog("MT1201",reception,autoId);  
100 -  
101 - if (i>0 && ii>0){  
102 - return 1; 89 + //处理主单格式,将海关回执的主单号58019316861,变为580-19316861
  90 + if (awbA!=null && awbA.length()>0){
  91 + //更新主单回执
  92 + int i = originmanifestmasterMapper.updateRECEIPTION(originmanifestmaster);
  93 + //获取分单autoid
  94 + List<ORIGINMANIFESTMASTER> originmanifestmasterList = originmanifestmasterMapper.selectAutoIdByAwb(originmanifestmaster);
  95 + if(!originmanifestmasterList.isEmpty()){
  96 + ORIGINMANIFESTMASTER originMaster = originmanifestmasterList.get(0);
  97 + String autoId = originMaster.getAutoid();
  98 +
  99 + //插入sendlog记录表
  100 + log.info("即将插入日志运单号为:"+awbA+"->autoid="+autoId);
  101 + int ii =insertSendlog("MT1201",reception,autoId);
  102 +
  103 + if (i>0 && ii>0){
  104 + return 1;
  105 + }
103 } 106 }
  107 + return 0;
104 } 108 }
105 - return 0; 109 + }else {
  110 +
  111 + ShareServiceImp shareServiceImp = new ShareServiceImp();
  112 + return shareServiceImp.share("MT1201", customReception);
106 } 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>
  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.PREPAREMASTERMapper" >
  4 + <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.PREPAREMASTER" >
  5 + <result column="AUTOID" property="autoid" jdbcType="VARCHAR" />
  6 + <result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" />
  7 + <result column="FLIGHTDATE" property="flightdate" jdbcType="TIMESTAMP" />
  8 + <result column="ORIGINATINGSTATION" property="originatingstation" jdbcType="VARCHAR" />
  9 + <result column="DESTINATIONSTATION" property="destinationstation" jdbcType="VARCHAR" />
  10 + <result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
  11 + <result column="TOTALWEIGHT" property="totalweight" jdbcType="VARCHAR" />
  12 + <result column="TOTALPIECE" property="totalpiece" jdbcType="VARCHAR" />
  13 + <result column="PREPARETOTALPIECE" property="preparetotalpiece" jdbcType="VARCHAR" />
  14 + <result column="PREPARETOTALWEIGHT" property="preparetotalweight" jdbcType="VARCHAR" />
  15 + <result column="STOWAGEDATE" property="stowagedate" jdbcType="TIMESTAMP" />
  16 + <result column="STATUS" property="status" jdbcType="VARCHAR" />
  17 + <result column="CARRIER" property="carrier" jdbcType="VARCHAR" />
  18 + <result column="CUSTOMSSTATUS" property="customsstatus" jdbcType="VARCHAR" />
  19 + <result column="PAYMODE" property="paymode" jdbcType="VARCHAR" />
  20 + <result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" />
  21 + <result column="AGENTCODE" property="agentcode" jdbcType="VARCHAR" />
  22 + <result column="AGENTNAME" property="agentname" jdbcType="VARCHAR" />
  23 + <result column="SHIPPERNAME" property="shippername" jdbcType="VARCHAR" />
  24 + <result column="SHIPPERCITY" property="shippercity" jdbcType="VARCHAR" />
  25 + <result column="SHIPPERADDRESS" property="shipperaddress" jdbcType="VARCHAR" />
  26 + <result column="CONSIGNEENAME" property="consigneename" jdbcType="VARCHAR" />
  27 + <result column="CONSIGNEECITY" property="consigneecity" jdbcType="VARCHAR" />
  28 + <result column="CONSIGNEEADDRESS" property="consigneeaddress" jdbcType="VARCHAR" />
  29 + <result column="RECEIPTINFORMATION" property="receiptinformation" jdbcType="VARCHAR" />
  30 + <result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
  31 + <result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" />
  32 + <result column="SHIPPER_CODE" property="shipperCode" jdbcType="VARCHAR" />
  33 + <result column="SHIPPER_COUNTRYCODE" property="shipperCountrycode" jdbcType="VARCHAR" />
  34 + <result column="SHIPPER_PHONE" property="shipperPhone" jdbcType="VARCHAR" />
  35 + <result column="SHIPPER_FAX" property="shipperFax" jdbcType="VARCHAR" />
  36 + <result column="CONSIGNEE_CODE" property="consigneeCode" jdbcType="VARCHAR" />
  37 + <result column="CONSIGNEE_COUNTRYCODE" property="consigneeCountrycode" jdbcType="VARCHAR" />
  38 + <result column="CONSIGNEE_FAX" property="consigneeFax" jdbcType="VARCHAR" />
  39 + <result column="CONSIGNEE_PHONE" property="consigneePhone" jdbcType="VARCHAR" />
  40 + <result column="SHIPPER_AEO" property="shipperAeo" jdbcType="VARCHAR" />
  41 + <result column="CONSIGNEE_AEO" property="consigneeAeo" jdbcType="VARCHAR" />
  42 + <result column="UNLOADINGSTATION" property="unloadingstation" jdbcType="VARCHAR" />
  43 + </resultMap>
  44 + <insert id="insert" parameterType="com.tianbo.analysis.model.PREPAREMASTER" >
  45 + insert into PREPAREMASTER (AUTOID, FLIGHTNO, FLIGHTDATE,
  46 + ORIGINATINGSTATION, DESTINATIONSTATION,
  47 + WAYBILLNOMASTER, TOTALWEIGHT, TOTALPIECE,
  48 + PREPARETOTALPIECE, PREPARETOTALWEIGHT,
  49 + STOWAGEDATE, STATUS, CARRIER,
  50 + CUSTOMSSTATUS, PAYMODE, CUSTOMSCODE,
  51 + AGENTCODE, AGENTNAME, SHIPPERNAME,
  52 + SHIPPERCITY, SHIPPERADDRESS, CONSIGNEENAME,
  53 + CONSIGNEECITY, CONSIGNEEADDRESS, RECEIPTINFORMATION,
  54 + CREATEDATE, PRODUCTNAME, SHIPPER_CODE,
  55 + SHIPPER_COUNTRYCODE, SHIPPER_PHONE, SHIPPER_FAX,
  56 + CONSIGNEE_CODE, CONSIGNEE_COUNTRYCODE, CONSIGNEE_FAX,
  57 + CONSIGNEE_PHONE, SHIPPER_AEO, CONSIGNEE_AEO,
  58 + UNLOADINGSTATION)
  59 + values (#{autoid,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=TIMESTAMP},
  60 + #{originatingstation,jdbcType=VARCHAR}, #{destinationstation,jdbcType=VARCHAR},
  61 + #{waybillnomaster,jdbcType=VARCHAR}, #{totalweight,jdbcType=VARCHAR}, #{totalpiece,jdbcType=VARCHAR},
  62 + #{preparetotalpiece,jdbcType=VARCHAR}, #{preparetotalweight,jdbcType=VARCHAR},
  63 + #{stowagedate,jdbcType=TIMESTAMP}, #{status,jdbcType=VARCHAR}, #{carrier,jdbcType=VARCHAR},
  64 + #{customsstatus,jdbcType=VARCHAR}, #{paymode,jdbcType=VARCHAR}, #{customscode,jdbcType=VARCHAR},
  65 + #{agentcode,jdbcType=VARCHAR}, #{agentname,jdbcType=VARCHAR}, #{shippername,jdbcType=VARCHAR},
  66 + #{shippercity,jdbcType=VARCHAR}, #{shipperaddress,jdbcType=VARCHAR}, #{consigneename,jdbcType=VARCHAR},
  67 + #{consigneecity,jdbcType=VARCHAR}, #{consigneeaddress,jdbcType=VARCHAR}, #{receiptinformation,jdbcType=VARCHAR},
  68 + #{createdate,jdbcType=TIMESTAMP}, #{productname,jdbcType=VARCHAR}, #{shipperCode,jdbcType=VARCHAR},
  69 + #{shipperCountrycode,jdbcType=VARCHAR}, #{shipperPhone,jdbcType=VARCHAR}, #{shipperFax,jdbcType=VARCHAR},
  70 + #{consigneeCode,jdbcType=VARCHAR}, #{consigneeCountrycode,jdbcType=VARCHAR}, #{consigneeFax,jdbcType=VARCHAR},
  71 + #{consigneePhone,jdbcType=VARCHAR}, #{shipperAeo,jdbcType=VARCHAR}, #{consigneeAeo,jdbcType=VARCHAR},
  72 + #{unloadingstation,jdbcType=VARCHAR})
  73 + </insert>
  74 + <insert id="insertSelective" parameterType="com.tianbo.analysis.model.PREPAREMASTER" >
  75 + insert into PREPAREMASTER
  76 + <trim prefix="(" suffix=")" suffixOverrides="," >
  77 + <if test="autoid != null" >
  78 + AUTOID,
  79 + </if>
  80 + <if test="flightno != null" >
  81 + FLIGHTNO,
  82 + </if>
  83 + <if test="flightdate != null" >
  84 + FLIGHTDATE,
  85 + </if>
  86 + <if test="originatingstation != null" >
  87 + ORIGINATINGSTATION,
  88 + </if>
  89 + <if test="destinationstation != null" >
  90 + DESTINATIONSTATION,
  91 + </if>
  92 + <if test="waybillnomaster != null" >
  93 + WAYBILLNOMASTER,
  94 + </if>
  95 + <if test="totalweight != null" >
  96 + TOTALWEIGHT,
  97 + </if>
  98 + <if test="totalpiece != null" >
  99 + TOTALPIECE,
  100 + </if>
  101 + <if test="preparetotalpiece != null" >
  102 + PREPARETOTALPIECE,
  103 + </if>
  104 + <if test="preparetotalweight != null" >
  105 + PREPARETOTALWEIGHT,
  106 + </if>
  107 + <if test="stowagedate != null" >
  108 + STOWAGEDATE,
  109 + </if>
  110 + <if test="status != null" >
  111 + STATUS,
  112 + </if>
  113 + <if test="carrier != null" >
  114 + CARRIER,
  115 + </if>
  116 + <if test="customsstatus != null" >
  117 + CUSTOMSSTATUS,
  118 + </if>
  119 + <if test="paymode != null" >
  120 + PAYMODE,
  121 + </if>
  122 + <if test="customscode != null" >
  123 + CUSTOMSCODE,
  124 + </if>
  125 + <if test="agentcode != null" >
  126 + AGENTCODE,
  127 + </if>
  128 + <if test="agentname != null" >
  129 + AGENTNAME,
  130 + </if>
  131 + <if test="shippername != null" >
  132 + SHIPPERNAME,
  133 + </if>
  134 + <if test="shippercity != null" >
  135 + SHIPPERCITY,
  136 + </if>
  137 + <if test="shipperaddress != null" >
  138 + SHIPPERADDRESS,
  139 + </if>
  140 + <if test="consigneename != null" >
  141 + CONSIGNEENAME,
  142 + </if>
  143 + <if test="consigneecity != null" >
  144 + CONSIGNEECITY,
  145 + </if>
  146 + <if test="consigneeaddress != null" >
  147 + CONSIGNEEADDRESS,
  148 + </if>
  149 + <if test="receiptinformation != null" >
  150 + RECEIPTINFORMATION,
  151 + </if>
  152 + <if test="createdate != null" >
  153 + CREATEDATE,
  154 + </if>
  155 + <if test="productname != null" >
  156 + PRODUCTNAME,
  157 + </if>
  158 + <if test="shipperCode != null" >
  159 + SHIPPER_CODE,
  160 + </if>
  161 + <if test="shipperCountrycode != null" >
  162 + SHIPPER_COUNTRYCODE,
  163 + </if>
  164 + <if test="shipperPhone != null" >
  165 + SHIPPER_PHONE,
  166 + </if>
  167 + <if test="shipperFax != null" >
  168 + SHIPPER_FAX,
  169 + </if>
  170 + <if test="consigneeCode != null" >
  171 + CONSIGNEE_CODE,
  172 + </if>
  173 + <if test="consigneeCountrycode != null" >
  174 + CONSIGNEE_COUNTRYCODE,
  175 + </if>
  176 + <if test="consigneeFax != null" >
  177 + CONSIGNEE_FAX,
  178 + </if>
  179 + <if test="consigneePhone != null" >
  180 + CONSIGNEE_PHONE,
  181 + </if>
  182 + <if test="shipperAeo != null" >
  183 + SHIPPER_AEO,
  184 + </if>
  185 + <if test="consigneeAeo != null" >
  186 + CONSIGNEE_AEO,
  187 + </if>
  188 + <if test="unloadingstation != null" >
  189 + UNLOADINGSTATION,
  190 + </if>
  191 + </trim>
  192 + <trim prefix="values (" suffix=")" suffixOverrides="," >
  193 + <if test="autoid != null" >
  194 + #{autoid,jdbcType=VARCHAR},
  195 + </if>
  196 + <if test="flightno != null" >
  197 + #{flightno,jdbcType=VARCHAR},
  198 + </if>
  199 + <if test="flightdate != null" >
  200 + #{flightdate,jdbcType=TIMESTAMP},
  201 + </if>
  202 + <if test="originatingstation != null" >
  203 + #{originatingstation,jdbcType=VARCHAR},
  204 + </if>
  205 + <if test="destinationstation != null" >
  206 + #{destinationstation,jdbcType=VARCHAR},
  207 + </if>
  208 + <if test="waybillnomaster != null" >
  209 + #{waybillnomaster,jdbcType=VARCHAR},
  210 + </if>
  211 + <if test="totalweight != null" >
  212 + #{totalweight,jdbcType=VARCHAR},
  213 + </if>
  214 + <if test="totalpiece != null" >
  215 + #{totalpiece,jdbcType=VARCHAR},
  216 + </if>
  217 + <if test="preparetotalpiece != null" >
  218 + #{preparetotalpiece,jdbcType=VARCHAR},
  219 + </if>
  220 + <if test="preparetotalweight != null" >
  221 + #{preparetotalweight,jdbcType=VARCHAR},
  222 + </if>
  223 + <if test="stowagedate != null" >
  224 + #{stowagedate,jdbcType=TIMESTAMP},
  225 + </if>
  226 + <if test="status != null" >
  227 + #{status,jdbcType=VARCHAR},
  228 + </if>
  229 + <if test="carrier != null" >
  230 + #{carrier,jdbcType=VARCHAR},
  231 + </if>
  232 + <if test="customsstatus != null" >
  233 + #{customsstatus,jdbcType=VARCHAR},
  234 + </if>
  235 + <if test="paymode != null" >
  236 + #{paymode,jdbcType=VARCHAR},
  237 + </if>
  238 + <if test="customscode != null" >
  239 + #{customscode,jdbcType=VARCHAR},
  240 + </if>
  241 + <if test="agentcode != null" >
  242 + #{agentcode,jdbcType=VARCHAR},
  243 + </if>
  244 + <if test="agentname != null" >
  245 + #{agentname,jdbcType=VARCHAR},
  246 + </if>
  247 + <if test="shippername != null" >
  248 + #{shippername,jdbcType=VARCHAR},
  249 + </if>
  250 + <if test="shippercity != null" >
  251 + #{shippercity,jdbcType=VARCHAR},
  252 + </if>
  253 + <if test="shipperaddress != null" >
  254 + #{shipperaddress,jdbcType=VARCHAR},
  255 + </if>
  256 + <if test="consigneename != null" >
  257 + #{consigneename,jdbcType=VARCHAR},
  258 + </if>
  259 + <if test="consigneecity != null" >
  260 + #{consigneecity,jdbcType=VARCHAR},
  261 + </if>
  262 + <if test="consigneeaddress != null" >
  263 + #{consigneeaddress,jdbcType=VARCHAR},
  264 + </if>
  265 + <if test="receiptinformation != null" >
  266 + #{receiptinformation,jdbcType=VARCHAR},
  267 + </if>
  268 + <if test="createdate != null" >
  269 + #{createdate,jdbcType=TIMESTAMP},
  270 + </if>
  271 + <if test="productname != null" >
  272 + #{productname,jdbcType=VARCHAR},
  273 + </if>
  274 + <if test="shipperCode != null" >
  275 + #{shipperCode,jdbcType=VARCHAR},
  276 + </if>
  277 + <if test="shipperCountrycode != null" >
  278 + #{shipperCountrycode,jdbcType=VARCHAR},
  279 + </if>
  280 + <if test="shipperPhone != null" >
  281 + #{shipperPhone,jdbcType=VARCHAR},
  282 + </if>
  283 + <if test="shipperFax != null" >
  284 + #{shipperFax,jdbcType=VARCHAR},
  285 + </if>
  286 + <if test="consigneeCode != null" >
  287 + #{consigneeCode,jdbcType=VARCHAR},
  288 + </if>
  289 + <if test="consigneeCountrycode != null" >
  290 + #{consigneeCountrycode,jdbcType=VARCHAR},
  291 + </if>
  292 + <if test="consigneeFax != null" >
  293 + #{consigneeFax,jdbcType=VARCHAR},
  294 + </if>
  295 + <if test="consigneePhone != null" >
  296 + #{consigneePhone,jdbcType=VARCHAR},
  297 + </if>
  298 + <if test="shipperAeo != null" >
  299 + #{shipperAeo,jdbcType=VARCHAR},
  300 + </if>
  301 + <if test="consigneeAeo != null" >
  302 + #{consigneeAeo,jdbcType=VARCHAR},
  303 + </if>
  304 + <if test="unloadingstation != null" >
  305 + #{unloadingstation,jdbcType=VARCHAR},
  306 + </if>
  307 + </trim>
  308 + </insert>
  309 + <update id="updateRECEIPTION" parameterType="com.tianbo.analysis.model.PREPAREMASTER" >
  310 + UPDATE PREPAREMASTER
  311 + SET RECEIPTINFORMATION= #{receiptinformation,jdbcType=VARCHAR}
  312 + WHERE WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
  313 + AND
  314 + FLIGHTDATE= #{flightDate,jdbcType=TIMESTAMP}
  315 + AND
  316 + WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
  317 + </update>
  318 +
  319 + <select id="selectAutoIdByAwb" parameterType="com.tianbo.analysis.model.PREPAREMASTER" resultType="com.tianbo.analysis.model.PREPAREMASTER">
  320 + SELECT AUTOID
  321 + FROM PREPAREMASTER
  322 + WHERE
  323 + FLIGHTNO= #{flightno,jdbcType=VARCHAR}
  324 + AND
  325 + FLIGHTDATE= #{flightDate,jdbcType=TIMESTAMP}
  326 + AND
  327 + WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
  328 + </select>
  329 +</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.PREPARESECONDARYMapper">
  4 + <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.PREPARESECONDARY">
  5 + <id column="ID" jdbcType="DECIMAL" property="id" />
  6 + <result column="WAYBILLNOMASTER" jdbcType="VARCHAR" property="waybillnomaster" />
  7 + <result column="WAYBILLNOSECONDARY" jdbcType="VARCHAR" property="waybillnosecondary" />
  8 + <result column="TOTALWEIGHT" jdbcType="VARCHAR" property="totalweight" />
  9 + <result column="TOTALPIECE" jdbcType="VARCHAR" property="totalpiece" />
  10 + <result column="PREPAREPIECE" jdbcType="VARCHAR" property="preparepiece" />
  11 + <result column="PREPAREWEIGHT" jdbcType="VARCHAR" property="prepareweight" />
  12 + <result column="PRODUCTNAME" jdbcType="VARCHAR" property="productname" />
  13 + <result column="STOWAGEDATE" jdbcType="TIMESTAMP" property="stowagedate" />
  14 + <result column="CREATEDATE" jdbcType="TIMESTAMP" property="createdate" />
  15 + <result column="PREPAREMASTERID" jdbcType="DECIMAL" property="preparemasterid" />
  16 + <result column="AUTOID" jdbcType="DECIMAL" property="autoid" />
  17 + <result column="MODIFY_DATE" jdbcType="TIMESTAMP" property="modifyDate" />
  18 + <result column="MODIFIER" jdbcType="DECIMAL" property="modifier" />
  19 + <result column="IS_DELETE" jdbcType="DECIMAL" property="isDelete" />
  20 + <result column="CREATOR" jdbcType="DECIMAL" property="creator" />
  21 + <result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
  22 + <result column="FLIGHTNO" jdbcType="VARCHAR" property="flightno" />
  23 + <result column="FLIGHTDATE" jdbcType="TIMESTAMP" property="flightdate" />
  24 + <result column="ORIGINATINGSTATION" jdbcType="VARCHAR" property="originatingstation" />
  25 + <result column="DESTINATIONSTATION" jdbcType="VARCHAR" property="destinationstation" />
  26 + <result column="AGENTCOMPANYCODE" jdbcType="VARCHAR" property="agentcompanycode" />
  27 + <result column="STATUS" jdbcType="VARCHAR" property="status" />
  28 + <result column="CARRIER" jdbcType="VARCHAR" property="carrier" />
  29 + <result column="CUSTOMSSTATUS" jdbcType="VARCHAR" property="customsstatus" />
  30 + <result column="PAYMODE" jdbcType="VARCHAR" property="paymode" />
  31 + <result column="SPECIALGOODSCODE" jdbcType="VARCHAR" property="specialgoodscode" />
  32 + <result column="CUSTOMSCODE" jdbcType="VARCHAR" property="customscode" />
  33 + <result column="AGENTMAN" jdbcType="VARCHAR" property="agentman" />
  34 + <result column="AGENTCOMPANY" jdbcType="VARCHAR" property="agentcompany" />
  35 + <result column="RECEIPTINFORMATION" jdbcType="VARCHAR" property="receiptinformation" />
  36 + <result column="UNNUMBER" jdbcType="VARCHAR" property="unnumber" />
  37 + <result column="CATEGORY" jdbcType="VARCHAR" property="category" />
  38 + <result column="SH_COMPANY" jdbcType="VARCHAR" property="shCompany" />
  39 + <result column="SH_ADDRESS" jdbcType="VARCHAR" property="shAddress" />
  40 + <result column="SH_ZIPCODE" jdbcType="VARCHAR" property="shZipcode" />
  41 + <result column="SH_CITY" jdbcType="VARCHAR" property="shCity" />
  42 + <result column="SH_DELTANAME" jdbcType="VARCHAR" property="shDeltaname" />
  43 + <result column="SH_COUNTRY" jdbcType="VARCHAR" property="shCountry" />
  44 + <result column="SH_TELEPHONE" jdbcType="VARCHAR" property="shTelephone" />
  45 + <result column="SH_FAX" jdbcType="VARCHAR" property="shFax" />
  46 + <result column="SH_NAME" jdbcType="VARCHAR" property="shName" />
  47 + <result column="CO_COMPANY" jdbcType="VARCHAR" property="coCompany" />
  48 + <result column="CO_ADDRESS" jdbcType="VARCHAR" property="coAddress" />
  49 + <result column="CO_ZIPCODE" jdbcType="VARCHAR" property="coZipcode" />
  50 + <result column="CO_CITY" jdbcType="VARCHAR" property="coCity" />
  51 + <result column="CO_DELTANAME" jdbcType="VARCHAR" property="coDeltaname" />
  52 + <result column="CO_COUNTRY" jdbcType="VARCHAR" property="coCountry" />
  53 + <result column="CO_TELEPHONE" jdbcType="VARCHAR" property="coTelephone" />
  54 + <result column="CO_FAX" jdbcType="VARCHAR" property="coFax" />
  55 + <result column="CO_NAME" jdbcType="VARCHAR" property="coName" />
  56 + <result column="REACH_STATION" jdbcType="VARCHAR" property="reachStation" />
  57 + <result column="CARRIER1" jdbcType="VARCHAR" property="carrier1" />
  58 + <result column="REACH_STATION1" jdbcType="VARCHAR" property="reachStation1" />
  59 + <result column="CARRIER2" jdbcType="VARCHAR" property="carrier2" />
  60 + <result column="REACH_STATION2" jdbcType="VARCHAR" property="reachStation2" />
  61 + <result column="NAME_OFGOODS" jdbcType="VARCHAR" property="nameOfgoods" />
  62 + <result column="DELIVERY_STATION" jdbcType="VARCHAR" property="deliveryStation" />
  63 + <result column="SH_PROVINCECODE" jdbcType="VARCHAR" property="shProvincecode" />
  64 + <result column="SH_PROVINCENAME" jdbcType="VARCHAR" property="shProvincename" />
  65 + <result column="DE_NUMBER" jdbcType="VARCHAR" property="deNumber" />
  66 + <result column="DE_WEIGHT" jdbcType="VARCHAR" property="deWeight" />
  67 + <result column="DE_CHWEIGHT" jdbcType="VARCHAR" property="deChweight" />
  68 + <result column="DE_SIZE" jdbcType="VARCHAR" property="deSize" />
  69 + <result column="DE_VOLUME" jdbcType="VARCHAR" property="deVolume" />
  70 + <result column="DE_TYPE" jdbcType="VARCHAR" property="deType" />
  71 + <result column="DE_TRSTATION" jdbcType="VARCHAR" property="deTrstation" />
  72 + <result column="DE_PACKING" jdbcType="VARCHAR" property="dePacking" />
  73 + <result column="DE_REMARKS" jdbcType="VARCHAR" property="deRemarks" />
  74 + <result column="DE_IDS" jdbcType="DECIMAL" property="deIds" />
  75 + <result column="RESPONSE_CODE" jdbcType="CHAR" property="responseCode" />
  76 + <result column="RESPONSE_TEXT" jdbcType="CHAR" property="responseText" />
  77 + <result column="SAVE_TIME" jdbcType="DECIMAL" property="saveTime" />
  78 + <result column="USER_ID" jdbcType="DECIMAL" property="userId" />
  79 + <result column="SHPAEO" jdbcType="VARCHAR" property="shpaeo" />
  80 + <result column="CNEAEO" jdbcType="VARCHAR" property="cneaeo" />
  81 + <result column="SHPCUSID" jdbcType="VARCHAR" property="shpcusid" />
  82 + <result column="CNECUSID" jdbcType="VARCHAR" property="cnecusid" />
  83 + <result column="UNLODINGCODE" jdbcType="VARCHAR" property="unlodingcode" />
  84 + </resultMap>
  85 + <sql id="Base_Column_List">
  86 + ID, WAYBILLNOMASTER, WAYBILLNOSECONDARY, TOTALWEIGHT, TOTALPIECE, PREPAREPIECE, PREPAREWEIGHT,
  87 + PRODUCTNAME, STOWAGEDATE, CREATEDATE, PREPAREMASTERID, AUTOID, MODIFY_DATE, MODIFIER,
  88 + IS_DELETE, CREATOR, CREATE_DATE, FLIGHTNO, FLIGHTDATE, ORIGINATINGSTATION, DESTINATIONSTATION,
  89 + AGENTCOMPANYCODE, STATUS, CARRIER, CUSTOMSSTATUS, PAYMODE, SPECIALGOODSCODE, CUSTOMSCODE,
  90 + AGENTMAN, AGENTCOMPANY, RECEIPTINFORMATION, UNNUMBER, CATEGORY, SH_COMPANY, SH_ADDRESS,
  91 + SH_ZIPCODE, SH_CITY, SH_DELTANAME, SH_COUNTRY, SH_TELEPHONE, SH_FAX, SH_NAME, CO_COMPANY,
  92 + CO_ADDRESS, CO_ZIPCODE, CO_CITY, CO_DELTANAME, CO_COUNTRY, CO_TELEPHONE, CO_FAX,
  93 + CO_NAME, REACH_STATION, CARRIER1, REACH_STATION1, CARRIER2, REACH_STATION2, NAME_OFGOODS,
  94 + DELIVERY_STATION, SH_PROVINCECODE, SH_PROVINCENAME, DE_NUMBER, DE_WEIGHT, DE_CHWEIGHT,
  95 + DE_SIZE, DE_VOLUME, DE_TYPE, DE_TRSTATION, DE_PACKING, DE_REMARKS, DE_IDS, RESPONSE_CODE,
  96 + RESPONSE_TEXT, SAVE_TIME, USER_ID, SHPAEO, CNEAEO, SHPCUSID, CNECUSID, UNLODINGCODE
  97 + </sql>
  98 + <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
  99 + select
  100 + <include refid="Base_Column_List" />
  101 + from PREPARESECONDARY
  102 + where ID = #{id,jdbcType=DECIMAL}
  103 + </select>
  104 + <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
  105 + delete from PREPARESECONDARY
  106 + where ID = #{id,jdbcType=DECIMAL}
  107 + </delete>
  108 + <insert id="insert" parameterType="com.tianbo.analysis.model.PREPARESECONDARY">
  109 + insert into PREPARESECONDARY (ID, WAYBILLNOMASTER, WAYBILLNOSECONDARY,
  110 + TOTALWEIGHT, TOTALPIECE, PREPAREPIECE,
  111 + PREPAREWEIGHT, PRODUCTNAME, STOWAGEDATE,
  112 + CREATEDATE, PREPAREMASTERID, AUTOID,
  113 + MODIFY_DATE, MODIFIER, IS_DELETE,
  114 + CREATOR, CREATE_DATE, FLIGHTNO,
  115 + FLIGHTDATE, ORIGINATINGSTATION, DESTINATIONSTATION,
  116 + AGENTCOMPANYCODE, STATUS, CARRIER,
  117 + CUSTOMSSTATUS, PAYMODE, SPECIALGOODSCODE,
  118 + CUSTOMSCODE, AGENTMAN, AGENTCOMPANY,
  119 + RECEIPTINFORMATION, UNNUMBER, CATEGORY,
  120 + SH_COMPANY, SH_ADDRESS, SH_ZIPCODE,
  121 + SH_CITY, SH_DELTANAME, SH_COUNTRY,
  122 + SH_TELEPHONE, SH_FAX, SH_NAME,
  123 + CO_COMPANY, CO_ADDRESS, CO_ZIPCODE,
  124 + CO_CITY, CO_DELTANAME, CO_COUNTRY,
  125 + CO_TELEPHONE, CO_FAX, CO_NAME,
  126 + REACH_STATION, CARRIER1, REACH_STATION1,
  127 + CARRIER2, REACH_STATION2, NAME_OFGOODS,
  128 + DELIVERY_STATION, SH_PROVINCECODE, SH_PROVINCENAME,
  129 + DE_NUMBER, DE_WEIGHT, DE_CHWEIGHT,
  130 + DE_SIZE, DE_VOLUME, DE_TYPE,
  131 + DE_TRSTATION, DE_PACKING, DE_REMARKS,
  132 + DE_IDS, RESPONSE_CODE, RESPONSE_TEXT,
  133 + SAVE_TIME, USER_ID, SHPAEO,
  134 + CNEAEO, SHPCUSID, CNECUSID,
  135 + UNLODINGCODE)
  136 + values (#{id,jdbcType=DECIMAL}, #{waybillnomaster,jdbcType=VARCHAR}, #{waybillnosecondary,jdbcType=VARCHAR},
  137 + #{totalweight,jdbcType=VARCHAR}, #{totalpiece,jdbcType=VARCHAR}, #{preparepiece,jdbcType=VARCHAR},
  138 + #{prepareweight,jdbcType=VARCHAR}, #{productname,jdbcType=VARCHAR}, #{stowagedate,jdbcType=TIMESTAMP},
  139 + #{createdate,jdbcType=TIMESTAMP}, #{preparemasterid,jdbcType=DECIMAL}, #{autoid,jdbcType=DECIMAL},
  140 + #{modifyDate,jdbcType=TIMESTAMP}, #{modifier,jdbcType=DECIMAL}, #{isDelete,jdbcType=DECIMAL},
  141 + #{creator,jdbcType=DECIMAL}, #{createDate,jdbcType=TIMESTAMP}, #{flightno,jdbcType=VARCHAR},
  142 + #{flightdate,jdbcType=TIMESTAMP}, #{originatingstation,jdbcType=VARCHAR}, #{destinationstation,jdbcType=VARCHAR},
  143 + #{agentcompanycode,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{carrier,jdbcType=VARCHAR},
  144 + #{customsstatus,jdbcType=VARCHAR}, #{paymode,jdbcType=VARCHAR}, #{specialgoodscode,jdbcType=VARCHAR},
  145 + #{customscode,jdbcType=VARCHAR}, #{agentman,jdbcType=VARCHAR}, #{agentcompany,jdbcType=VARCHAR},
  146 + #{receiptinformation,jdbcType=VARCHAR}, #{unnumber,jdbcType=VARCHAR}, #{category,jdbcType=VARCHAR},
  147 + #{shCompany,jdbcType=VARCHAR}, #{shAddress,jdbcType=VARCHAR}, #{shZipcode,jdbcType=VARCHAR},
  148 + #{shCity,jdbcType=VARCHAR}, #{shDeltaname,jdbcType=VARCHAR}, #{shCountry,jdbcType=VARCHAR},
  149 + #{shTelephone,jdbcType=VARCHAR}, #{shFax,jdbcType=VARCHAR}, #{shName,jdbcType=VARCHAR},
  150 + #{coCompany,jdbcType=VARCHAR}, #{coAddress,jdbcType=VARCHAR}, #{coZipcode,jdbcType=VARCHAR},
  151 + #{coCity,jdbcType=VARCHAR}, #{coDeltaname,jdbcType=VARCHAR}, #{coCountry,jdbcType=VARCHAR},
  152 + #{coTelephone,jdbcType=VARCHAR}, #{coFax,jdbcType=VARCHAR}, #{coName,jdbcType=VARCHAR},
  153 + #{reachStation,jdbcType=VARCHAR}, #{carrier1,jdbcType=VARCHAR}, #{reachStation1,jdbcType=VARCHAR},
  154 + #{carrier2,jdbcType=VARCHAR}, #{reachStation2,jdbcType=VARCHAR}, #{nameOfgoods,jdbcType=VARCHAR},
  155 + #{deliveryStation,jdbcType=VARCHAR}, #{shProvincecode,jdbcType=VARCHAR}, #{shProvincename,jdbcType=VARCHAR},
  156 + #{deNumber,jdbcType=VARCHAR}, #{deWeight,jdbcType=VARCHAR}, #{deChweight,jdbcType=VARCHAR},
  157 + #{deSize,jdbcType=VARCHAR}, #{deVolume,jdbcType=VARCHAR}, #{deType,jdbcType=VARCHAR},
  158 + #{deTrstation,jdbcType=VARCHAR}, #{dePacking,jdbcType=VARCHAR}, #{deRemarks,jdbcType=VARCHAR},
  159 + #{deIds,jdbcType=DECIMAL}, #{responseCode,jdbcType=CHAR}, #{responseText,jdbcType=CHAR},
  160 + #{saveTime,jdbcType=DECIMAL}, #{userId,jdbcType=DECIMAL}, #{shpaeo,jdbcType=VARCHAR},
  161 + #{cneaeo,jdbcType=VARCHAR}, #{shpcusid,jdbcType=VARCHAR}, #{cnecusid,jdbcType=VARCHAR},
  162 + #{unlodingcode,jdbcType=VARCHAR})
  163 + </insert>
  164 + <insert id="insertSelective" parameterType="com.tianbo.analysis.model.PREPARESECONDARY">
  165 + insert into PREPARESECONDARY
  166 + <trim prefix="(" suffix=")" suffixOverrides=",">
  167 + <if test="id != null">
  168 + ID,
  169 + </if>
  170 + <if test="waybillnomaster != null">
  171 + WAYBILLNOMASTER,
  172 + </if>
  173 + <if test="waybillnosecondary != null">
  174 + WAYBILLNOSECONDARY,
  175 + </if>
  176 + <if test="totalweight != null">
  177 + TOTALWEIGHT,
  178 + </if>
  179 + <if test="totalpiece != null">
  180 + TOTALPIECE,
  181 + </if>
  182 + <if test="preparepiece != null">
  183 + PREPAREPIECE,
  184 + </if>
  185 + <if test="prepareweight != null">
  186 + PREPAREWEIGHT,
  187 + </if>
  188 + <if test="productname != null">
  189 + PRODUCTNAME,
  190 + </if>
  191 + <if test="stowagedate != null">
  192 + STOWAGEDATE,
  193 + </if>
  194 + <if test="createdate != null">
  195 + CREATEDATE,
  196 + </if>
  197 + <if test="preparemasterid != null">
  198 + PREPAREMASTERID,
  199 + </if>
  200 + <if test="autoid != null">
  201 + AUTOID,
  202 + </if>
  203 + <if test="modifyDate != null">
  204 + MODIFY_DATE,
  205 + </if>
  206 + <if test="modifier != null">
  207 + MODIFIER,
  208 + </if>
  209 + <if test="isDelete != null">
  210 + IS_DELETE,
  211 + </if>
  212 + <if test="creator != null">
  213 + CREATOR,
  214 + </if>
  215 + <if test="createDate != null">
  216 + CREATE_DATE,
  217 + </if>
  218 + <if test="flightno != null">
  219 + FLIGHTNO,
  220 + </if>
  221 + <if test="flightdate != null">
  222 + FLIGHTDATE,
  223 + </if>
  224 + <if test="originatingstation != null">
  225 + ORIGINATINGSTATION,
  226 + </if>
  227 + <if test="destinationstation != null">
  228 + DESTINATIONSTATION,
  229 + </if>
  230 + <if test="agentcompanycode != null">
  231 + AGENTCOMPANYCODE,
  232 + </if>
  233 + <if test="status != null">
  234 + STATUS,
  235 + </if>
  236 + <if test="carrier != null">
  237 + CARRIER,
  238 + </if>
  239 + <if test="customsstatus != null">
  240 + CUSTOMSSTATUS,
  241 + </if>
  242 + <if test="paymode != null">
  243 + PAYMODE,
  244 + </if>
  245 + <if test="specialgoodscode != null">
  246 + SPECIALGOODSCODE,
  247 + </if>
  248 + <if test="customscode != null">
  249 + CUSTOMSCODE,
  250 + </if>
  251 + <if test="agentman != null">
  252 + AGENTMAN,
  253 + </if>
  254 + <if test="agentcompany != null">
  255 + AGENTCOMPANY,
  256 + </if>
  257 + <if test="receiptinformation != null">
  258 + RECEIPTINFORMATION,
  259 + </if>
  260 + <if test="unnumber != null">
  261 + UNNUMBER,
  262 + </if>
  263 + <if test="category != null">
  264 + CATEGORY,
  265 + </if>
  266 + <if test="shCompany != null">
  267 + SH_COMPANY,
  268 + </if>
  269 + <if test="shAddress != null">
  270 + SH_ADDRESS,
  271 + </if>
  272 + <if test="shZipcode != null">
  273 + SH_ZIPCODE,
  274 + </if>
  275 + <if test="shCity != null">
  276 + SH_CITY,
  277 + </if>
  278 + <if test="shDeltaname != null">
  279 + SH_DELTANAME,
  280 + </if>
  281 + <if test="shCountry != null">
  282 + SH_COUNTRY,
  283 + </if>
  284 + <if test="shTelephone != null">
  285 + SH_TELEPHONE,
  286 + </if>
  287 + <if test="shFax != null">
  288 + SH_FAX,
  289 + </if>
  290 + <if test="shName != null">
  291 + SH_NAME,
  292 + </if>
  293 + <if test="coCompany != null">
  294 + CO_COMPANY,
  295 + </if>
  296 + <if test="coAddress != null">
  297 + CO_ADDRESS,
  298 + </if>
  299 + <if test="coZipcode != null">
  300 + CO_ZIPCODE,
  301 + </if>
  302 + <if test="coCity != null">
  303 + CO_CITY,
  304 + </if>
  305 + <if test="coDeltaname != null">
  306 + CO_DELTANAME,
  307 + </if>
  308 + <if test="coCountry != null">
  309 + CO_COUNTRY,
  310 + </if>
  311 + <if test="coTelephone != null">
  312 + CO_TELEPHONE,
  313 + </if>
  314 + <if test="coFax != null">
  315 + CO_FAX,
  316 + </if>
  317 + <if test="coName != null">
  318 + CO_NAME,
  319 + </if>
  320 + <if test="reachStation != null">
  321 + REACH_STATION,
  322 + </if>
  323 + <if test="carrier1 != null">
  324 + CARRIER1,
  325 + </if>
  326 + <if test="reachStation1 != null">
  327 + REACH_STATION1,
  328 + </if>
  329 + <if test="carrier2 != null">
  330 + CARRIER2,
  331 + </if>
  332 + <if test="reachStation2 != null">
  333 + REACH_STATION2,
  334 + </if>
  335 + <if test="nameOfgoods != null">
  336 + NAME_OFGOODS,
  337 + </if>
  338 + <if test="deliveryStation != null">
  339 + DELIVERY_STATION,
  340 + </if>
  341 + <if test="shProvincecode != null">
  342 + SH_PROVINCECODE,
  343 + </if>
  344 + <if test="shProvincename != null">
  345 + SH_PROVINCENAME,
  346 + </if>
  347 + <if test="deNumber != null">
  348 + DE_NUMBER,
  349 + </if>
  350 + <if test="deWeight != null">
  351 + DE_WEIGHT,
  352 + </if>
  353 + <if test="deChweight != null">
  354 + DE_CHWEIGHT,
  355 + </if>
  356 + <if test="deSize != null">
  357 + DE_SIZE,
  358 + </if>
  359 + <if test="deVolume != null">
  360 + DE_VOLUME,
  361 + </if>
  362 + <if test="deType != null">
  363 + DE_TYPE,
  364 + </if>
  365 + <if test="deTrstation != null">
  366 + DE_TRSTATION,
  367 + </if>
  368 + <if test="dePacking != null">
  369 + DE_PACKING,
  370 + </if>
  371 + <if test="deRemarks != null">
  372 + DE_REMARKS,
  373 + </if>
  374 + <if test="deIds != null">
  375 + DE_IDS,
  376 + </if>
  377 + <if test="responseCode != null">
  378 + RESPONSE_CODE,
  379 + </if>
  380 + <if test="responseText != null">
  381 + RESPONSE_TEXT,
  382 + </if>
  383 + <if test="saveTime != null">
  384 + SAVE_TIME,
  385 + </if>
  386 + <if test="userId != null">
  387 + USER_ID,
  388 + </if>
  389 + <if test="shpaeo != null">
  390 + SHPAEO,
  391 + </if>
  392 + <if test="cneaeo != null">
  393 + CNEAEO,
  394 + </if>
  395 + <if test="shpcusid != null">
  396 + SHPCUSID,
  397 + </if>
  398 + <if test="cnecusid != null">
  399 + CNECUSID,
  400 + </if>
  401 + <if test="unlodingcode != null">
  402 + UNLODINGCODE,
  403 + </if>
  404 + </trim>
  405 + <trim prefix="values (" suffix=")" suffixOverrides=",">
  406 + <if test="id != null">
  407 + #{id,jdbcType=DECIMAL},
  408 + </if>
  409 + <if test="waybillnomaster != null">
  410 + #{waybillnomaster,jdbcType=VARCHAR},
  411 + </if>
  412 + <if test="waybillnosecondary != null">
  413 + #{waybillnosecondary,jdbcType=VARCHAR},
  414 + </if>
  415 + <if test="totalweight != null">
  416 + #{totalweight,jdbcType=VARCHAR},
  417 + </if>
  418 + <if test="totalpiece != null">
  419 + #{totalpiece,jdbcType=VARCHAR},
  420 + </if>
  421 + <if test="preparepiece != null">
  422 + #{preparepiece,jdbcType=VARCHAR},
  423 + </if>
  424 + <if test="prepareweight != null">
  425 + #{prepareweight,jdbcType=VARCHAR},
  426 + </if>
  427 + <if test="productname != null">
  428 + #{productname,jdbcType=VARCHAR},
  429 + </if>
  430 + <if test="stowagedate != null">
  431 + #{stowagedate,jdbcType=TIMESTAMP},
  432 + </if>
  433 + <if test="createdate != null">
  434 + #{createdate,jdbcType=TIMESTAMP},
  435 + </if>
  436 + <if test="preparemasterid != null">
  437 + #{preparemasterid,jdbcType=DECIMAL},
  438 + </if>
  439 + <if test="autoid != null">
  440 + #{autoid,jdbcType=DECIMAL},
  441 + </if>
  442 + <if test="modifyDate != null">
  443 + #{modifyDate,jdbcType=TIMESTAMP},
  444 + </if>
  445 + <if test="modifier != null">
  446 + #{modifier,jdbcType=DECIMAL},
  447 + </if>
  448 + <if test="isDelete != null">
  449 + #{isDelete,jdbcType=DECIMAL},
  450 + </if>
  451 + <if test="creator != null">
  452 + #{creator,jdbcType=DECIMAL},
  453 + </if>
  454 + <if test="createDate != null">
  455 + #{createDate,jdbcType=TIMESTAMP},
  456 + </if>
  457 + <if test="flightno != null">
  458 + #{flightno,jdbcType=VARCHAR},
  459 + </if>
  460 + <if test="flightdate != null">
  461 + #{flightdate,jdbcType=TIMESTAMP},
  462 + </if>
  463 + <if test="originatingstation != null">
  464 + #{originatingstation,jdbcType=VARCHAR},
  465 + </if>
  466 + <if test="destinationstation != null">
  467 + #{destinationstation,jdbcType=VARCHAR},
  468 + </if>
  469 + <if test="agentcompanycode != null">
  470 + #{agentcompanycode,jdbcType=VARCHAR},
  471 + </if>
  472 + <if test="status != null">
  473 + #{status,jdbcType=VARCHAR},
  474 + </if>
  475 + <if test="carrier != null">
  476 + #{carrier,jdbcType=VARCHAR},
  477 + </if>
  478 + <if test="customsstatus != null">
  479 + #{customsstatus,jdbcType=VARCHAR},
  480 + </if>
  481 + <if test="paymode != null">
  482 + #{paymode,jdbcType=VARCHAR},
  483 + </if>
  484 + <if test="specialgoodscode != null">
  485 + #{specialgoodscode,jdbcType=VARCHAR},
  486 + </if>
  487 + <if test="customscode != null">
  488 + #{customscode,jdbcType=VARCHAR},
  489 + </if>
  490 + <if test="agentman != null">
  491 + #{agentman,jdbcType=VARCHAR},
  492 + </if>
  493 + <if test="agentcompany != null">
  494 + #{agentcompany,jdbcType=VARCHAR},
  495 + </if>
  496 + <if test="receiptinformation != null">
  497 + #{receiptinformation,jdbcType=VARCHAR},
  498 + </if>
  499 + <if test="unnumber != null">
  500 + #{unnumber,jdbcType=VARCHAR},
  501 + </if>
  502 + <if test="category != null">
  503 + #{category,jdbcType=VARCHAR},
  504 + </if>
  505 + <if test="shCompany != null">
  506 + #{shCompany,jdbcType=VARCHAR},
  507 + </if>
  508 + <if test="shAddress != null">
  509 + #{shAddress,jdbcType=VARCHAR},
  510 + </if>
  511 + <if test="shZipcode != null">
  512 + #{shZipcode,jdbcType=VARCHAR},
  513 + </if>
  514 + <if test="shCity != null">
  515 + #{shCity,jdbcType=VARCHAR},
  516 + </if>
  517 + <if test="shDeltaname != null">
  518 + #{shDeltaname,jdbcType=VARCHAR},
  519 + </if>
  520 + <if test="shCountry != null">
  521 + #{shCountry,jdbcType=VARCHAR},
  522 + </if>
  523 + <if test="shTelephone != null">
  524 + #{shTelephone,jdbcType=VARCHAR},
  525 + </if>
  526 + <if test="shFax != null">
  527 + #{shFax,jdbcType=VARCHAR},
  528 + </if>
  529 + <if test="shName != null">
  530 + #{shName,jdbcType=VARCHAR},
  531 + </if>
  532 + <if test="coCompany != null">
  533 + #{coCompany,jdbcType=VARCHAR},
  534 + </if>
  535 + <if test="coAddress != null">
  536 + #{coAddress,jdbcType=VARCHAR},
  537 + </if>
  538 + <if test="coZipcode != null">
  539 + #{coZipcode,jdbcType=VARCHAR},
  540 + </if>
  541 + <if test="coCity != null">
  542 + #{coCity,jdbcType=VARCHAR},
  543 + </if>
  544 + <if test="coDeltaname != null">
  545 + #{coDeltaname,jdbcType=VARCHAR},
  546 + </if>
  547 + <if test="coCountry != null">
  548 + #{coCountry,jdbcType=VARCHAR},
  549 + </if>
  550 + <if test="coTelephone != null">
  551 + #{coTelephone,jdbcType=VARCHAR},
  552 + </if>
  553 + <if test="coFax != null">
  554 + #{coFax,jdbcType=VARCHAR},
  555 + </if>
  556 + <if test="coName != null">
  557 + #{coName,jdbcType=VARCHAR},
  558 + </if>
  559 + <if test="reachStation != null">
  560 + #{reachStation,jdbcType=VARCHAR},
  561 + </if>
  562 + <if test="carrier1 != null">
  563 + #{carrier1,jdbcType=VARCHAR},
  564 + </if>
  565 + <if test="reachStation1 != null">
  566 + #{reachStation1,jdbcType=VARCHAR},
  567 + </if>
  568 + <if test="carrier2 != null">
  569 + #{carrier2,jdbcType=VARCHAR},
  570 + </if>
  571 + <if test="reachStation2 != null">
  572 + #{reachStation2,jdbcType=VARCHAR},
  573 + </if>
  574 + <if test="nameOfgoods != null">
  575 + #{nameOfgoods,jdbcType=VARCHAR},
  576 + </if>
  577 + <if test="deliveryStation != null">
  578 + #{deliveryStation,jdbcType=VARCHAR},
  579 + </if>
  580 + <if test="shProvincecode != null">
  581 + #{shProvincecode,jdbcType=VARCHAR},
  582 + </if>
  583 + <if test="shProvincename != null">
  584 + #{shProvincename,jdbcType=VARCHAR},
  585 + </if>
  586 + <if test="deNumber != null">
  587 + #{deNumber,jdbcType=VARCHAR},
  588 + </if>
  589 + <if test="deWeight != null">
  590 + #{deWeight,jdbcType=VARCHAR},
  591 + </if>
  592 + <if test="deChweight != null">
  593 + #{deChweight,jdbcType=VARCHAR},
  594 + </if>
  595 + <if test="deSize != null">
  596 + #{deSize,jdbcType=VARCHAR},
  597 + </if>
  598 + <if test="deVolume != null">
  599 + #{deVolume,jdbcType=VARCHAR},
  600 + </if>
  601 + <if test="deType != null">
  602 + #{deType,jdbcType=VARCHAR},
  603 + </if>
  604 + <if test="deTrstation != null">
  605 + #{deTrstation,jdbcType=VARCHAR},
  606 + </if>
  607 + <if test="dePacking != null">
  608 + #{dePacking,jdbcType=VARCHAR},
  609 + </if>
  610 + <if test="deRemarks != null">
  611 + #{deRemarks,jdbcType=VARCHAR},
  612 + </if>
  613 + <if test="deIds != null">
  614 + #{deIds,jdbcType=DECIMAL},
  615 + </if>
  616 + <if test="responseCode != null">
  617 + #{responseCode,jdbcType=CHAR},
  618 + </if>
  619 + <if test="responseText != null">
  620 + #{responseText,jdbcType=CHAR},
  621 + </if>
  622 + <if test="saveTime != null">
  623 + #{saveTime,jdbcType=DECIMAL},
  624 + </if>
  625 + <if test="userId != null">
  626 + #{userId,jdbcType=DECIMAL},
  627 + </if>
  628 + <if test="shpaeo != null">
  629 + #{shpaeo,jdbcType=VARCHAR},
  630 + </if>
  631 + <if test="cneaeo != null">
  632 + #{cneaeo,jdbcType=VARCHAR},
  633 + </if>
  634 + <if test="shpcusid != null">
  635 + #{shpcusid,jdbcType=VARCHAR},
  636 + </if>
  637 + <if test="cnecusid != null">
  638 + #{cnecusid,jdbcType=VARCHAR},
  639 + </if>
  640 + <if test="unlodingcode != null">
  641 + #{unlodingcode,jdbcType=VARCHAR},
  642 + </if>
  643 + </trim>
  644 + </insert>
  645 + <update id="updateByPrimaryKeySelective" parameterType="com.tianbo.analysis.model.PREPARESECONDARY">
  646 + update PREPARESECONDARY
  647 + <set>
  648 + <if test="waybillnomaster != null">
  649 + WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR},
  650 + </if>
  651 + <if test="waybillnosecondary != null">
  652 + WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR},
  653 + </if>
  654 + <if test="totalweight != null">
  655 + TOTALWEIGHT = #{totalweight,jdbcType=VARCHAR},
  656 + </if>
  657 + <if test="totalpiece != null">
  658 + TOTALPIECE = #{totalpiece,jdbcType=VARCHAR},
  659 + </if>
  660 + <if test="preparepiece != null">
  661 + PREPAREPIECE = #{preparepiece,jdbcType=VARCHAR},
  662 + </if>
  663 + <if test="prepareweight != null">
  664 + PREPAREWEIGHT = #{prepareweight,jdbcType=VARCHAR},
  665 + </if>
  666 + <if test="productname != null">
  667 + PRODUCTNAME = #{productname,jdbcType=VARCHAR},
  668 + </if>
  669 + <if test="stowagedate != null">
  670 + STOWAGEDATE = #{stowagedate,jdbcType=TIMESTAMP},
  671 + </if>
  672 + <if test="createdate != null">
  673 + CREATEDATE = #{createdate,jdbcType=TIMESTAMP},
  674 + </if>
  675 + <if test="preparemasterid != null">
  676 + PREPAREMASTERID = #{preparemasterid,jdbcType=DECIMAL},
  677 + </if>
  678 + <if test="autoid != null">
  679 + AUTOID = #{autoid,jdbcType=DECIMAL},
  680 + </if>
  681 + <if test="modifyDate != null">
  682 + MODIFY_DATE = #{modifyDate,jdbcType=TIMESTAMP},
  683 + </if>
  684 + <if test="modifier != null">
  685 + MODIFIER = #{modifier,jdbcType=DECIMAL},
  686 + </if>
  687 + <if test="isDelete != null">
  688 + IS_DELETE = #{isDelete,jdbcType=DECIMAL},
  689 + </if>
  690 + <if test="creator != null">
  691 + CREATOR = #{creator,jdbcType=DECIMAL},
  692 + </if>
  693 + <if test="createDate != null">
  694 + CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
  695 + </if>
  696 + <if test="flightno != null">
  697 + FLIGHTNO = #{flightno,jdbcType=VARCHAR},
  698 + </if>
  699 + <if test="flightdate != null">
  700 + FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP},
  701 + </if>
  702 + <if test="originatingstation != null">
  703 + ORIGINATINGSTATION = #{originatingstation,jdbcType=VARCHAR},
  704 + </if>
  705 + <if test="destinationstation != null">
  706 + DESTINATIONSTATION = #{destinationstation,jdbcType=VARCHAR},
  707 + </if>
  708 + <if test="agentcompanycode != null">
  709 + AGENTCOMPANYCODE = #{agentcompanycode,jdbcType=VARCHAR},
  710 + </if>
  711 + <if test="status != null">
  712 + STATUS = #{status,jdbcType=VARCHAR},
  713 + </if>
  714 + <if test="carrier != null">
  715 + CARRIER = #{carrier,jdbcType=VARCHAR},
  716 + </if>
  717 + <if test="customsstatus != null">
  718 + CUSTOMSSTATUS = #{customsstatus,jdbcType=VARCHAR},
  719 + </if>
  720 + <if test="paymode != null">
  721 + PAYMODE = #{paymode,jdbcType=VARCHAR},
  722 + </if>
  723 + <if test="specialgoodscode != null">
  724 + SPECIALGOODSCODE = #{specialgoodscode,jdbcType=VARCHAR},
  725 + </if>
  726 + <if test="customscode != null">
  727 + CUSTOMSCODE = #{customscode,jdbcType=VARCHAR},
  728 + </if>
  729 + <if test="agentman != null">
  730 + AGENTMAN = #{agentman,jdbcType=VARCHAR},
  731 + </if>
  732 + <if test="agentcompany != null">
  733 + AGENTCOMPANY = #{agentcompany,jdbcType=VARCHAR},
  734 + </if>
  735 + <if test="receiptinformation != null">
  736 + RECEIPTINFORMATION = #{receiptinformation,jdbcType=VARCHAR},
  737 + </if>
  738 + <if test="unnumber != null">
  739 + UNNUMBER = #{unnumber,jdbcType=VARCHAR},
  740 + </if>
  741 + <if test="category != null">
  742 + CATEGORY = #{category,jdbcType=VARCHAR},
  743 + </if>
  744 + <if test="shCompany != null">
  745 + SH_COMPANY = #{shCompany,jdbcType=VARCHAR},
  746 + </if>
  747 + <if test="shAddress != null">
  748 + SH_ADDRESS = #{shAddress,jdbcType=VARCHAR},
  749 + </if>
  750 + <if test="shZipcode != null">
  751 + SH_ZIPCODE = #{shZipcode,jdbcType=VARCHAR},
  752 + </if>
  753 + <if test="shCity != null">
  754 + SH_CITY = #{shCity,jdbcType=VARCHAR},
  755 + </if>
  756 + <if test="shDeltaname != null">
  757 + SH_DELTANAME = #{shDeltaname,jdbcType=VARCHAR},
  758 + </if>
  759 + <if test="shCountry != null">
  760 + SH_COUNTRY = #{shCountry,jdbcType=VARCHAR},
  761 + </if>
  762 + <if test="shTelephone != null">
  763 + SH_TELEPHONE = #{shTelephone,jdbcType=VARCHAR},
  764 + </if>
  765 + <if test="shFax != null">
  766 + SH_FAX = #{shFax,jdbcType=VARCHAR},
  767 + </if>
  768 + <if test="shName != null">
  769 + SH_NAME = #{shName,jdbcType=VARCHAR},
  770 + </if>
  771 + <if test="coCompany != null">
  772 + CO_COMPANY = #{coCompany,jdbcType=VARCHAR},
  773 + </if>
  774 + <if test="coAddress != null">
  775 + CO_ADDRESS = #{coAddress,jdbcType=VARCHAR},
  776 + </if>
  777 + <if test="coZipcode != null">
  778 + CO_ZIPCODE = #{coZipcode,jdbcType=VARCHAR},
  779 + </if>
  780 + <if test="coCity != null">
  781 + CO_CITY = #{coCity,jdbcType=VARCHAR},
  782 + </if>
  783 + <if test="coDeltaname != null">
  784 + CO_DELTANAME = #{coDeltaname,jdbcType=VARCHAR},
  785 + </if>
  786 + <if test="coCountry != null">
  787 + CO_COUNTRY = #{coCountry,jdbcType=VARCHAR},
  788 + </if>
  789 + <if test="coTelephone != null">
  790 + CO_TELEPHONE = #{coTelephone,jdbcType=VARCHAR},
  791 + </if>
  792 + <if test="coFax != null">
  793 + CO_FAX = #{coFax,jdbcType=VARCHAR},
  794 + </if>
  795 + <if test="coName != null">
  796 + CO_NAME = #{coName,jdbcType=VARCHAR},
  797 + </if>
  798 + <if test="reachStation != null">
  799 + REACH_STATION = #{reachStation,jdbcType=VARCHAR},
  800 + </if>
  801 + <if test="carrier1 != null">
  802 + CARRIER1 = #{carrier1,jdbcType=VARCHAR},
  803 + </if>
  804 + <if test="reachStation1 != null">
  805 + REACH_STATION1 = #{reachStation1,jdbcType=VARCHAR},
  806 + </if>
  807 + <if test="carrier2 != null">
  808 + CARRIER2 = #{carrier2,jdbcType=VARCHAR},
  809 + </if>
  810 + <if test="reachStation2 != null">
  811 + REACH_STATION2 = #{reachStation2,jdbcType=VARCHAR},
  812 + </if>
  813 + <if test="nameOfgoods != null">
  814 + NAME_OFGOODS = #{nameOfgoods,jdbcType=VARCHAR},
  815 + </if>
  816 + <if test="deliveryStation != null">
  817 + DELIVERY_STATION = #{deliveryStation,jdbcType=VARCHAR},
  818 + </if>
  819 + <if test="shProvincecode != null">
  820 + SH_PROVINCECODE = #{shProvincecode,jdbcType=VARCHAR},
  821 + </if>
  822 + <if test="shProvincename != null">
  823 + SH_PROVINCENAME = #{shProvincename,jdbcType=VARCHAR},
  824 + </if>
  825 + <if test="deNumber != null">
  826 + DE_NUMBER = #{deNumber,jdbcType=VARCHAR},
  827 + </if>
  828 + <if test="deWeight != null">
  829 + DE_WEIGHT = #{deWeight,jdbcType=VARCHAR},
  830 + </if>
  831 + <if test="deChweight != null">
  832 + DE_CHWEIGHT = #{deChweight,jdbcType=VARCHAR},
  833 + </if>
  834 + <if test="deSize != null">
  835 + DE_SIZE = #{deSize,jdbcType=VARCHAR},
  836 + </if>
  837 + <if test="deVolume != null">
  838 + DE_VOLUME = #{deVolume,jdbcType=VARCHAR},
  839 + </if>
  840 + <if test="deType != null">
  841 + DE_TYPE = #{deType,jdbcType=VARCHAR},
  842 + </if>
  843 + <if test="deTrstation != null">
  844 + DE_TRSTATION = #{deTrstation,jdbcType=VARCHAR},
  845 + </if>
  846 + <if test="dePacking != null">
  847 + DE_PACKING = #{dePacking,jdbcType=VARCHAR},
  848 + </if>
  849 + <if test="deRemarks != null">
  850 + DE_REMARKS = #{deRemarks,jdbcType=VARCHAR},
  851 + </if>
  852 + <if test="deIds != null">
  853 + DE_IDS = #{deIds,jdbcType=DECIMAL},
  854 + </if>
  855 + <if test="responseCode != null">
  856 + RESPONSE_CODE = #{responseCode,jdbcType=CHAR},
  857 + </if>
  858 + <if test="responseText != null">
  859 + RESPONSE_TEXT = #{responseText,jdbcType=CHAR},
  860 + </if>
  861 + <if test="saveTime != null">
  862 + SAVE_TIME = #{saveTime,jdbcType=DECIMAL},
  863 + </if>
  864 + <if test="userId != null">
  865 + USER_ID = #{userId,jdbcType=DECIMAL},
  866 + </if>
  867 + <if test="shpaeo != null">
  868 + SHPAEO = #{shpaeo,jdbcType=VARCHAR},
  869 + </if>
  870 + <if test="cneaeo != null">
  871 + CNEAEO = #{cneaeo,jdbcType=VARCHAR},
  872 + </if>
  873 + <if test="shpcusid != null">
  874 + SHPCUSID = #{shpcusid,jdbcType=VARCHAR},
  875 + </if>
  876 + <if test="cnecusid != null">
  877 + CNECUSID = #{cnecusid,jdbcType=VARCHAR},
  878 + </if>
  879 + <if test="unlodingcode != null">
  880 + UNLODINGCODE = #{unlodingcode,jdbcType=VARCHAR},
  881 + </if>
  882 + </set>
  883 + where ID = #{id,jdbcType=DECIMAL}
  884 + </update>
  885 + <update id="updateByPrimaryKey" parameterType="com.tianbo.analysis.model.PREPARESECONDARY">
  886 + update PREPARESECONDARY
  887 + set WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR},
  888 + WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR},
  889 + TOTALWEIGHT = #{totalweight,jdbcType=VARCHAR},
  890 + TOTALPIECE = #{totalpiece,jdbcType=VARCHAR},
  891 + PREPAREPIECE = #{preparepiece,jdbcType=VARCHAR},
  892 + PREPAREWEIGHT = #{prepareweight,jdbcType=VARCHAR},
  893 + PRODUCTNAME = #{productname,jdbcType=VARCHAR},
  894 + STOWAGEDATE = #{stowagedate,jdbcType=TIMESTAMP},
  895 + CREATEDATE = #{createdate,jdbcType=TIMESTAMP},
  896 + PREPAREMASTERID = #{preparemasterid,jdbcType=DECIMAL},
  897 + AUTOID = #{autoid,jdbcType=DECIMAL},
  898 + MODIFY_DATE = #{modifyDate,jdbcType=TIMESTAMP},
  899 + MODIFIER = #{modifier,jdbcType=DECIMAL},
  900 + IS_DELETE = #{isDelete,jdbcType=DECIMAL},
  901 + CREATOR = #{creator,jdbcType=DECIMAL},
  902 + CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
  903 + FLIGHTNO = #{flightno,jdbcType=VARCHAR},
  904 + FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP},
  905 + ORIGINATINGSTATION = #{originatingstation,jdbcType=VARCHAR},
  906 + DESTINATIONSTATION = #{destinationstation,jdbcType=VARCHAR},
  907 + AGENTCOMPANYCODE = #{agentcompanycode,jdbcType=VARCHAR},
  908 + STATUS = #{status,jdbcType=VARCHAR},
  909 + CARRIER = #{carrier,jdbcType=VARCHAR},
  910 + CUSTOMSSTATUS = #{customsstatus,jdbcType=VARCHAR},
  911 + PAYMODE = #{paymode,jdbcType=VARCHAR},
  912 + SPECIALGOODSCODE = #{specialgoodscode,jdbcType=VARCHAR},
  913 + CUSTOMSCODE = #{customscode,jdbcType=VARCHAR},
  914 + AGENTMAN = #{agentman,jdbcType=VARCHAR},
  915 + AGENTCOMPANY = #{agentcompany,jdbcType=VARCHAR},
  916 + RECEIPTINFORMATION = #{receiptinformation,jdbcType=VARCHAR},
  917 + UNNUMBER = #{unnumber,jdbcType=VARCHAR},
  918 + CATEGORY = #{category,jdbcType=VARCHAR},
  919 + SH_COMPANY = #{shCompany,jdbcType=VARCHAR},
  920 + SH_ADDRESS = #{shAddress,jdbcType=VARCHAR},
  921 + SH_ZIPCODE = #{shZipcode,jdbcType=VARCHAR},
  922 + SH_CITY = #{shCity,jdbcType=VARCHAR},
  923 + SH_DELTANAME = #{shDeltaname,jdbcType=VARCHAR},
  924 + SH_COUNTRY = #{shCountry,jdbcType=VARCHAR},
  925 + SH_TELEPHONE = #{shTelephone,jdbcType=VARCHAR},
  926 + SH_FAX = #{shFax,jdbcType=VARCHAR},
  927 + SH_NAME = #{shName,jdbcType=VARCHAR},
  928 + CO_COMPANY = #{coCompany,jdbcType=VARCHAR},
  929 + CO_ADDRESS = #{coAddress,jdbcType=VARCHAR},
  930 + CO_ZIPCODE = #{coZipcode,jdbcType=VARCHAR},
  931 + CO_CITY = #{coCity,jdbcType=VARCHAR},
  932 + CO_DELTANAME = #{coDeltaname,jdbcType=VARCHAR},
  933 + CO_COUNTRY = #{coCountry,jdbcType=VARCHAR},
  934 + CO_TELEPHONE = #{coTelephone,jdbcType=VARCHAR},
  935 + CO_FAX = #{coFax,jdbcType=VARCHAR},
  936 + CO_NAME = #{coName,jdbcType=VARCHAR},
  937 + REACH_STATION = #{reachStation,jdbcType=VARCHAR},
  938 + CARRIER1 = #{carrier1,jdbcType=VARCHAR},
  939 + REACH_STATION1 = #{reachStation1,jdbcType=VARCHAR},
  940 + CARRIER2 = #{carrier2,jdbcType=VARCHAR},
  941 + REACH_STATION2 = #{reachStation2,jdbcType=VARCHAR},
  942 + NAME_OFGOODS = #{nameOfgoods,jdbcType=VARCHAR},
  943 + DELIVERY_STATION = #{deliveryStation,jdbcType=VARCHAR},
  944 + SH_PROVINCECODE = #{shProvincecode,jdbcType=VARCHAR},
  945 + SH_PROVINCENAME = #{shProvincename,jdbcType=VARCHAR},
  946 + DE_NUMBER = #{deNumber,jdbcType=VARCHAR},
  947 + DE_WEIGHT = #{deWeight,jdbcType=VARCHAR},
  948 + DE_CHWEIGHT = #{deChweight,jdbcType=VARCHAR},
  949 + DE_SIZE = #{deSize,jdbcType=VARCHAR},
  950 + DE_VOLUME = #{deVolume,jdbcType=VARCHAR},
  951 + DE_TYPE = #{deType,jdbcType=VARCHAR},
  952 + DE_TRSTATION = #{deTrstation,jdbcType=VARCHAR},
  953 + DE_PACKING = #{dePacking,jdbcType=VARCHAR},
  954 + DE_REMARKS = #{deRemarks,jdbcType=VARCHAR},
  955 + DE_IDS = #{deIds,jdbcType=DECIMAL},
  956 + RESPONSE_CODE = #{responseCode,jdbcType=CHAR},
  957 + RESPONSE_TEXT = #{responseText,jdbcType=CHAR},
  958 + SAVE_TIME = #{saveTime,jdbcType=DECIMAL},
  959 + USER_ID = #{userId,jdbcType=DECIMAL},
  960 + SHPAEO = #{shpaeo,jdbcType=VARCHAR},
  961 + CNEAEO = #{cneaeo,jdbcType=VARCHAR},
  962 + SHPCUSID = #{shpcusid,jdbcType=VARCHAR},
  963 + CNECUSID = #{cnecusid,jdbcType=VARCHAR},
  964 + UNLODINGCODE = #{unlodingcode,jdbcType=VARCHAR}
  965 + where ID = #{id,jdbcType=DECIMAL}
  966 + </update>
  967 + <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.PREPARESECONDARY">
  968 + <result column="AUTOID" jdbcType="VARCHAR" property="autoid" />
  969 + <result column="WAYBILLNOMASTER" jdbcType="VARCHAR" property="waybillnomaster" />
  970 + <result column="WAYBILLNOSECONDARY" jdbcType="VARCHAR" property="waybillnosecondary" />
  971 + <result column="TOTALWEIGHT" jdbcType="VARCHAR" property="totalweight" />
  972 + <result column="TOTALPIECE" jdbcType="VARCHAR" property="totalpiece" />
  973 + <result column="PREPAREPIECE" jdbcType="VARCHAR" property="preparepiece" />
  974 + <result column="PREPAREWEIGHT" jdbcType="VARCHAR" property="prepareweight" />
  975 + <result column="CREATEDATE" jdbcType="TIMESTAMP" property="createdate" />
  976 + <result column="PREPAREMASTERID" jdbcType="VARCHAR" property="preparemasterid" />
  977 + <result column="CARRIER" jdbcType="VARCHAR" property="carrier" />
  978 + <result column="FLIGHTNO" jdbcType="VARCHAR" property="flightno" />
  979 + <result column="FLIGHTDATE" jdbcType="TIMESTAMP" property="flightdate" />
  980 + <result column="ORIGINATINGSTATION" jdbcType="VARCHAR" property="originatingstation" />
  981 + <result column="DESTINATIONSTATION" jdbcType="VARCHAR" property="destinationstation" />
  982 + <result column="CUSTOMSSTATUS" jdbcType="VARCHAR" property="customsstatus" />
  983 + <result column="PAYMODE" jdbcType="VARCHAR" property="paymode" />
  984 + <result column="PRODUCTNAME" jdbcType="VARCHAR" property="productname" />
  985 + <result column="STOWAGEDATE" jdbcType="TIMESTAMP" property="stowagedate" />
  986 + <result column="CUSTOMSCODE" jdbcType="VARCHAR" property="customscode" />
  987 + <result column="SHIPPERNAME" jdbcType="VARCHAR" property="shippername" />
  988 + <result column="SHIPPERCITY" jdbcType="VARCHAR" property="shippercity" />
  989 + <result column="SHIPPERADDRESS" jdbcType="VARCHAR" property="shipperaddress" />
  990 + <result column="CONSIGNEENAME" jdbcType="VARCHAR" property="consigneename" />
  991 + <result column="CONSIGNEECITY" jdbcType="VARCHAR" property="consigneecity" />
  992 + <result column="CONSIGNEEADDRESS" jdbcType="VARCHAR" property="consigneeaddress" />
  993 + <result column="RECEIPTINFORMATION" jdbcType="VARCHAR" property="receiptinformation" />
  994 + <result column="AGENTCODE" jdbcType="VARCHAR" property="agentcode" />
  995 + <result column="AGENTNAME" jdbcType="VARCHAR" property="agentname" />
  996 + <result column="STATUS" jdbcType="VARCHAR" property="status" />
  997 + <result column="SHIPPER_CODE" jdbcType="VARCHAR" property="shipperCode" />
  998 + <result column="SHIPPER_COUNTRYCODE" jdbcType="VARCHAR" property="shipperCountrycode" />
  999 + <result column="SHIPPER_PHONE" jdbcType="VARCHAR" property="shipperPhone" />
  1000 + <result column="SHIPPER_FAX" jdbcType="VARCHAR" property="shipperFax" />
  1001 + <result column="CONSIGNEE_CODE" jdbcType="VARCHAR" property="consigneeCode" />
  1002 + <result column="CONSIGNEE_COUNTRYCODE" jdbcType="VARCHAR" property="consigneeCountrycode" />
  1003 + <result column="CONSIGNEE_PHONE" jdbcType="VARCHAR" property="consigneePhone" />
  1004 + <result column="CONSIGNEE_FAX" jdbcType="VARCHAR" property="consigneeFax" />
  1005 + <result column="SHIPPER_AEO" jdbcType="VARCHAR" property="shipperAeo" />
  1006 + <result column="CONSIGNEE_AEO" jdbcType="VARCHAR" property="consigneeAeo" />
  1007 + <result column="UNLOADINGSTATION" jdbcType="VARCHAR" property="unloadingstation" />
  1008 + </resultMap>
  1009 + <insert id="insert" parameterType="com.tianbo.analysis.model.PREPARESECONDARY">
  1010 + insert into PREPARESECONDARY (AUTOID, WAYBILLNOMASTER, WAYBILLNOSECONDARY,
  1011 + TOTALWEIGHT, TOTALPIECE, PREPAREPIECE,
  1012 + PREPAREWEIGHT, CREATEDATE, PREPAREMASTERID,
  1013 + CARRIER, FLIGHTNO, FLIGHTDATE,
  1014 + ORIGINATINGSTATION, DESTINATIONSTATION,
  1015 + CUSTOMSSTATUS, PAYMODE, PRODUCTNAME,
  1016 + STOWAGEDATE, CUSTOMSCODE, SHIPPERNAME,
  1017 + SHIPPERCITY, SHIPPERADDRESS, CONSIGNEENAME,
  1018 + CONSIGNEECITY, CONSIGNEEADDRESS, RECEIPTINFORMATION,
  1019 + AGENTCODE, AGENTNAME, STATUS,
  1020 + SHIPPER_CODE, SHIPPER_COUNTRYCODE, SHIPPER_PHONE,
  1021 + SHIPPER_FAX, CONSIGNEE_CODE, CONSIGNEE_COUNTRYCODE,
  1022 + CONSIGNEE_PHONE, CONSIGNEE_FAX, SHIPPER_AEO,
  1023 + CONSIGNEE_AEO, UNLOADINGSTATION)
  1024 + values (#{autoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{waybillnosecondary,jdbcType=VARCHAR},
  1025 + #{totalweight,jdbcType=VARCHAR}, #{totalpiece,jdbcType=VARCHAR}, #{preparepiece,jdbcType=VARCHAR},
  1026 + #{prepareweight,jdbcType=VARCHAR}, #{createdate,jdbcType=TIMESTAMP}, #{preparemasterid,jdbcType=VARCHAR},
  1027 + #{carrier,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=TIMESTAMP},
  1028 + #{originatingstation,jdbcType=VARCHAR}, #{destinationstation,jdbcType=VARCHAR},
  1029 + #{customsstatus,jdbcType=VARCHAR}, #{paymode,jdbcType=VARCHAR}, #{productname,jdbcType=VARCHAR},
  1030 + #{stowagedate,jdbcType=TIMESTAMP}, #{customscode,jdbcType=VARCHAR}, #{shippername,jdbcType=VARCHAR},
  1031 + #{shippercity,jdbcType=VARCHAR}, #{shipperaddress,jdbcType=VARCHAR}, #{consigneename,jdbcType=VARCHAR},
  1032 + #{consigneecity,jdbcType=VARCHAR}, #{consigneeaddress,jdbcType=VARCHAR}, #{receiptinformation,jdbcType=VARCHAR},
  1033 + #{agentcode,jdbcType=VARCHAR}, #{agentname,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR},
  1034 + #{shipperCode,jdbcType=VARCHAR}, #{shipperCountrycode,jdbcType=VARCHAR}, #{shipperPhone,jdbcType=VARCHAR},
  1035 + #{shipperFax,jdbcType=VARCHAR}, #{consigneeCode,jdbcType=VARCHAR}, #{consigneeCountrycode,jdbcType=VARCHAR},
  1036 + #{consigneePhone,jdbcType=VARCHAR}, #{consigneeFax,jdbcType=VARCHAR}, #{shipperAeo,jdbcType=VARCHAR},
  1037 + #{consigneeAeo,jdbcType=VARCHAR}, #{unloadingstation,jdbcType=VARCHAR})
  1038 + </insert>
  1039 + <insert id="insertSelective" parameterType="com.tianbo.analysis.model.PREPARESECONDARY">
  1040 + insert into PREPARESECONDARY
  1041 + <trim prefix="(" suffix=")" suffixOverrides=",">
  1042 + <if test="autoid != null">
  1043 + AUTOID,
  1044 + </if>
  1045 + <if test="waybillnomaster != null">
  1046 + WAYBILLNOMASTER,
  1047 + </if>
  1048 + <if test="waybillnosecondary != null">
  1049 + WAYBILLNOSECONDARY,
  1050 + </if>
  1051 + <if test="totalweight != null">
  1052 + TOTALWEIGHT,
  1053 + </if>
  1054 + <if test="totalpiece != null">
  1055 + TOTALPIECE,
  1056 + </if>
  1057 + <if test="preparepiece != null">
  1058 + PREPAREPIECE,
  1059 + </if>
  1060 + <if test="prepareweight != null">
  1061 + PREPAREWEIGHT,
  1062 + </if>
  1063 + <if test="createdate != null">
  1064 + CREATEDATE,
  1065 + </if>
  1066 + <if test="preparemasterid != null">
  1067 + PREPAREMASTERID,
  1068 + </if>
  1069 + <if test="carrier != null">
  1070 + CARRIER,
  1071 + </if>
  1072 + <if test="flightno != null">
  1073 + FLIGHTNO,
  1074 + </if>
  1075 + <if test="flightdate != null">
  1076 + FLIGHTDATE,
  1077 + </if>
  1078 + <if test="originatingstation != null">
  1079 + ORIGINATINGSTATION,
  1080 + </if>
  1081 + <if test="destinationstation != null">
  1082 + DESTINATIONSTATION,
  1083 + </if>
  1084 + <if test="customsstatus != null">
  1085 + CUSTOMSSTATUS,
  1086 + </if>
  1087 + <if test="paymode != null">
  1088 + PAYMODE,
  1089 + </if>
  1090 + <if test="productname != null">
  1091 + PRODUCTNAME,
  1092 + </if>
  1093 + <if test="stowagedate != null">
  1094 + STOWAGEDATE,
  1095 + </if>
  1096 + <if test="customscode != null">
  1097 + CUSTOMSCODE,
  1098 + </if>
  1099 + <if test="shippername != null">
  1100 + SHIPPERNAME,
  1101 + </if>
  1102 + <if test="shippercity != null">
  1103 + SHIPPERCITY,
  1104 + </if>
  1105 + <if test="shipperaddress != null">
  1106 + SHIPPERADDRESS,
  1107 + </if>
  1108 + <if test="consigneename != null">
  1109 + CONSIGNEENAME,
  1110 + </if>
  1111 + <if test="consigneecity != null">
  1112 + CONSIGNEECITY,
  1113 + </if>
  1114 + <if test="consigneeaddress != null">
  1115 + CONSIGNEEADDRESS,
  1116 + </if>
  1117 + <if test="receiptinformation != null">
  1118 + RECEIPTINFORMATION,
  1119 + </if>
  1120 + <if test="agentcode != null">
  1121 + AGENTCODE,
  1122 + </if>
  1123 + <if test="agentname != null">
  1124 + AGENTNAME,
  1125 + </if>
  1126 + <if test="status != null">
  1127 + STATUS,
  1128 + </if>
  1129 + <if test="shipperCode != null">
  1130 + SHIPPER_CODE,
  1131 + </if>
  1132 + <if test="shipperCountrycode != null">
  1133 + SHIPPER_COUNTRYCODE,
  1134 + </if>
  1135 + <if test="shipperPhone != null">
  1136 + SHIPPER_PHONE,
  1137 + </if>
  1138 + <if test="shipperFax != null">
  1139 + SHIPPER_FAX,
  1140 + </if>
  1141 + <if test="consigneeCode != null">
  1142 + CONSIGNEE_CODE,
  1143 + </if>
  1144 + <if test="consigneeCountrycode != null">
  1145 + CONSIGNEE_COUNTRYCODE,
  1146 + </if>
  1147 + <if test="consigneePhone != null">
  1148 + CONSIGNEE_PHONE,
  1149 + </if>
  1150 + <if test="consigneeFax != null">
  1151 + CONSIGNEE_FAX,
  1152 + </if>
  1153 + <if test="shipperAeo != null">
  1154 + SHIPPER_AEO,
  1155 + </if>
  1156 + <if test="consigneeAeo != null">
  1157 + CONSIGNEE_AEO,
  1158 + </if>
  1159 + <if test="unloadingstation != null">
  1160 + UNLOADINGSTATION,
  1161 + </if>
  1162 + </trim>
  1163 + <trim prefix="values (" suffix=")" suffixOverrides=",">
  1164 + <if test="autoid != null">
  1165 + #{autoid,jdbcType=VARCHAR},
  1166 + </if>
  1167 + <if test="waybillnomaster != null">
  1168 + #{waybillnomaster,jdbcType=VARCHAR},
  1169 + </if>
  1170 + <if test="waybillnosecondary != null">
  1171 + #{waybillnosecondary,jdbcType=VARCHAR},
  1172 + </if>
  1173 + <if test="totalweight != null">
  1174 + #{totalweight,jdbcType=VARCHAR},
  1175 + </if>
  1176 + <if test="totalpiece != null">
  1177 + #{totalpiece,jdbcType=VARCHAR},
  1178 + </if>
  1179 + <if test="preparepiece != null">
  1180 + #{preparepiece,jdbcType=VARCHAR},
  1181 + </if>
  1182 + <if test="prepareweight != null">
  1183 + #{prepareweight,jdbcType=VARCHAR},
  1184 + </if>
  1185 + <if test="createdate != null">
  1186 + #{createdate,jdbcType=TIMESTAMP},
  1187 + </if>
  1188 + <if test="preparemasterid != null">
  1189 + #{preparemasterid,jdbcType=VARCHAR},
  1190 + </if>
  1191 + <if test="carrier != null">
  1192 + #{carrier,jdbcType=VARCHAR},
  1193 + </if>
  1194 + <if test="flightno != null">
  1195 + #{flightno,jdbcType=VARCHAR},
  1196 + </if>
  1197 + <if test="flightdate != null">
  1198 + #{flightdate,jdbcType=TIMESTAMP},
  1199 + </if>
  1200 + <if test="originatingstation != null">
  1201 + #{originatingstation,jdbcType=VARCHAR},
  1202 + </if>
  1203 + <if test="destinationstation != null">
  1204 + #{destinationstation,jdbcType=VARCHAR},
  1205 + </if>
  1206 + <if test="customsstatus != null">
  1207 + #{customsstatus,jdbcType=VARCHAR},
  1208 + </if>
  1209 + <if test="paymode != null">
  1210 + #{paymode,jdbcType=VARCHAR},
  1211 + </if>
  1212 + <if test="productname != null">
  1213 + #{productname,jdbcType=VARCHAR},
  1214 + </if>
  1215 + <if test="stowagedate != null">
  1216 + #{stowagedate,jdbcType=TIMESTAMP},
  1217 + </if>
  1218 + <if test="customscode != null">
  1219 + #{customscode,jdbcType=VARCHAR},
  1220 + </if>
  1221 + <if test="shippername != null">
  1222 + #{shippername,jdbcType=VARCHAR},
  1223 + </if>
  1224 + <if test="shippercity != null">
  1225 + #{shippercity,jdbcType=VARCHAR},
  1226 + </if>
  1227 + <if test="shipperaddress != null">
  1228 + #{shipperaddress,jdbcType=VARCHAR},
  1229 + </if>
  1230 + <if test="consigneename != null">
  1231 + #{consigneename,jdbcType=VARCHAR},
  1232 + </if>
  1233 + <if test="consigneecity != null">
  1234 + #{consigneecity,jdbcType=VARCHAR},
  1235 + </if>
  1236 + <if test="consigneeaddress != null">
  1237 + #{consigneeaddress,jdbcType=VARCHAR},
  1238 + </if>
  1239 + <if test="receiptinformation != null">
  1240 + #{receiptinformation,jdbcType=VARCHAR},
  1241 + </if>
  1242 + <if test="agentcode != null">
  1243 + #{agentcode,jdbcType=VARCHAR},
  1244 + </if>
  1245 + <if test="agentname != null">
  1246 + #{agentname,jdbcType=VARCHAR},
  1247 + </if>
  1248 + <if test="status != null">
  1249 + #{status,jdbcType=VARCHAR},
  1250 + </if>
  1251 + <if test="shipperCode != null">
  1252 + #{shipperCode,jdbcType=VARCHAR},
  1253 + </if>
  1254 + <if test="shipperCountrycode != null">
  1255 + #{shipperCountrycode,jdbcType=VARCHAR},
  1256 + </if>
  1257 + <if test="shipperPhone != null">
  1258 + #{shipperPhone,jdbcType=VARCHAR},
  1259 + </if>
  1260 + <if test="shipperFax != null">
  1261 + #{shipperFax,jdbcType=VARCHAR},
  1262 + </if>
  1263 + <if test="consigneeCode != null">
  1264 + #{consigneeCode,jdbcType=VARCHAR},
  1265 + </if>
  1266 + <if test="consigneeCountrycode != null">
  1267 + #{consigneeCountrycode,jdbcType=VARCHAR},
  1268 + </if>
  1269 + <if test="consigneePhone != null">
  1270 + #{consigneePhone,jdbcType=VARCHAR},
  1271 + </if>
  1272 + <if test="consigneeFax != null">
  1273 + #{consigneeFax,jdbcType=VARCHAR},
  1274 + </if>
  1275 + <if test="shipperAeo != null">
  1276 + #{shipperAeo,jdbcType=VARCHAR},
  1277 + </if>
  1278 + <if test="consigneeAeo != null">
  1279 + #{consigneeAeo,jdbcType=VARCHAR},
  1280 + </if>
  1281 + <if test="unloadingstation != null">
  1282 + #{unloadingstation,jdbcType=VARCHAR},
  1283 + </if>
  1284 + </trim>
  1285 + </insert>
  1286 +
  1287 +
  1288 + <update id="updateRECEIPTION" parameterType="com.tianbo.analysis.model.PREPARESECONDARY" >
  1289 + UPDATE PREPARESECONDARY
  1290 + SET RECEIPTION= #{receiption,jdbcType=VARCHAR}
  1291 + WHERE WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
  1292 + AND WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}
  1293 + </update>
  1294 +
  1295 + <select id="selectAutoIdByawbAawbH" parameterType="com.tianbo.analysis.model.PREPARESECONDARY" resultType="com.tianbo.analysis.model.PREPARESECONDARY">
  1296 + SELECT AUTOID
  1297 + FROM PREPARESECONDARY
  1298 + WHERE
  1299 + WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR} AND WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}
  1300 + </select>
  1301 +</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.TALLYMASTERMapper" >
  4 + <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.TALLYMASTER" >
  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="TALLTYPE" property="talltype" jdbcType="VARCHAR" />
  10 + <result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" />
  11 + <result column="FLIGHTDATE" property="flightdate" jdbcType="TIMESTAMP" />
  12 + <result column="SEGMENT" property="segment" jdbcType="VARCHAR" />
  13 + <result column="ORIGINATINGSTATION" property="originatingstation" jdbcType="VARCHAR" />
  14 + <result column="O_NAME" property="oName" jdbcType="VARCHAR" />
  15 + <result column="DESTINATIONSTATION" property="destinationstation" jdbcType="VARCHAR" />
  16 + <result column="FD_NAME" property="fdName" jdbcType="VARCHAR" />
  17 + <result column="TOTALWEIGHT" property="totalweight" jdbcType="VARCHAR" />
  18 + <result column="TOTALGROSSWEIGHTMEASUREUC" property="totalgrossweightmeasureuc" jdbcType="VARCHAR" />
  19 + <result column="TOTALPIECE" property="totalpiece" jdbcType="VARCHAR" />
  20 + <result column="TALLYTOTALPIECE" property="tallytotalpiece" jdbcType="VARCHAR" />
  21 + <result column="TALLYTOTALWEIGHT" property="tallytotalweight" jdbcType="VARCHAR" />
  22 + <result column="GROSSWEIGHTMEASUREUC" property="grossweightmeasureuc" jdbcType="VARCHAR" />
  23 + <result column="LOADSTARTTIME" property="loadstarttime" jdbcType="TIMESTAMP" />
  24 + <result column="LOADENDTIME" property="loadendtime" jdbcType="TIMESTAMP" />
  25 + <result column="STATUS" property="status" jdbcType="VARCHAR" />
  26 + <result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" />
  27 + <result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" />
  28 + <result column="DISCHARGEDATE" property="dischargedate" jdbcType="TIMESTAMP" />
  29 + <result column="RECEIPTINFORMATION" property="receiptinformation" jdbcType="VARCHAR" />
  30 + <result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
  31 + <result column="DEAL_FLAG" property="dealFlag" jdbcType="VARCHAR" />
  32 + <result column="BILL_TALLY_FLAG" property="billTallyFlag" jdbcType="VARCHAR" />
  33 + <result column="DEAL_TIME" property="dealTime" jdbcType="TIMESTAMP" />
  34 + <result column="TRANSPORTSPLITDESCRIPTION" property="transportsplitdescription" jdbcType="VARCHAR" />
  35 + </resultMap>
  36 + <insert id="insert" parameterType="com.tianbo.analysis.model.TALLYMASTER" >
  37 + insert into TALLYMASTER (AUTOID, WAYBILLNOMASTER, TCD_NAME,
  38 + TCD_TYPECODE, TALLTYPE, FLIGHTNO,
  39 + FLIGHTDATE, SEGMENT, ORIGINATINGSTATION,
  40 + O_NAME, DESTINATIONSTATION, FD_NAME,
  41 + TOTALWEIGHT, TOTALGROSSWEIGHTMEASUREUC,
  42 + TOTALPIECE, TALLYTOTALPIECE, TALLYTOTALWEIGHT,
  43 + GROSSWEIGHTMEASUREUC, LOADSTARTTIME,
  44 + LOADENDTIME, STATUS, CUSTOMSCODE,
  45 + PRODUCTNAME, DISCHARGEDATE, RECEIPTINFORMATION,
  46 + CREATEDATE, DEAL_FLAG, BILL_TALLY_FLAG,
  47 + DEAL_TIME, TRANSPORTSPLITDESCRIPTION)
  48 + values (#{autoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{tcdName,jdbcType=VARCHAR},
  49 + #{tcdTypecode,jdbcType=VARCHAR}, #{talltype,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR},
  50 + #{flightdate,jdbcType=TIMESTAMP}, #{segment,jdbcType=VARCHAR}, #{originatingstation,jdbcType=VARCHAR},
  51 + #{oName,jdbcType=VARCHAR}, #{destinationstation,jdbcType=VARCHAR}, #{fdName,jdbcType=VARCHAR},
  52 + #{totalweight,jdbcType=VARCHAR}, #{totalgrossweightmeasureuc,jdbcType=VARCHAR},
  53 + #{totalpiece,jdbcType=VARCHAR}, #{tallytotalpiece,jdbcType=VARCHAR}, #{tallytotalweight,jdbcType=VARCHAR},
  54 + #{grossweightmeasureuc,jdbcType=VARCHAR}, #{loadstarttime,jdbcType=TIMESTAMP},
  55 + #{loadendtime,jdbcType=TIMESTAMP}, #{status,jdbcType=VARCHAR}, #{customscode,jdbcType=VARCHAR},
  56 + #{productname,jdbcType=VARCHAR}, #{dischargedate,jdbcType=TIMESTAMP}, #{receiptinformation,jdbcType=VARCHAR},
  57 + #{createdate,jdbcType=TIMESTAMP}, #{dealFlag,jdbcType=VARCHAR}, #{billTallyFlag,jdbcType=VARCHAR},
  58 + #{dealTime,jdbcType=TIMESTAMP}, #{transportsplitdescription,jdbcType=VARCHAR})
  59 + </insert>
  60 + <insert id="insertSelective" parameterType="com.tianbo.analysis.model.TALLYMASTER" >
  61 + insert into TALLYMASTER
  62 + <trim prefix="(" suffix=")" suffixOverrides="," >
  63 + <if test="autoid != null" >
  64 + AUTOID,
  65 + </if>
  66 + <if test="waybillnomaster != null" >
  67 + WAYBILLNOMASTER,
  68 + </if>
  69 + <if test="tcdName != null" >
  70 + TCD_NAME,
  71 + </if>
  72 + <if test="tcdTypecode != null" >
  73 + TCD_TYPECODE,
  74 + </if>
  75 + <if test="talltype != null" >
  76 + TALLTYPE,
  77 + </if>
  78 + <if test="flightno != null" >
  79 + FLIGHTNO,
  80 + </if>
  81 + <if test="flightdate != null" >
  82 + FLIGHTDATE,
  83 + </if>
  84 + <if test="segment != null" >
  85 + SEGMENT,
  86 + </if>
  87 + <if test="originatingstation != null" >
  88 + ORIGINATINGSTATION,
  89 + </if>
  90 + <if test="oName != null" >
  91 + O_NAME,
  92 + </if>
  93 + <if test="destinationstation != null" >
  94 + DESTINATIONSTATION,
  95 + </if>
  96 + <if test="fdName != null" >
  97 + FD_NAME,
  98 + </if>
  99 + <if test="totalweight != null" >
  100 + TOTALWEIGHT,
  101 + </if>
  102 + <if test="totalgrossweightmeasureuc != null" >
  103 + TOTALGROSSWEIGHTMEASUREUC,
  104 + </if>
  105 + <if test="totalpiece != null" >
  106 + TOTALPIECE,
  107 + </if>
  108 + <if test="tallytotalpiece != null" >
  109 + TALLYTOTALPIECE,
  110 + </if>
  111 + <if test="tallytotalweight != null" >
  112 + TALLYTOTALWEIGHT,
  113 + </if>
  114 + <if test="grossweightmeasureuc != null" >
  115 + GROSSWEIGHTMEASUREUC,
  116 + </if>
  117 + <if test="loadstarttime != null" >
  118 + LOADSTARTTIME,
  119 + </if>
  120 + <if test="loadendtime != null" >
  121 + LOADENDTIME,
  122 + </if>
  123 + <if test="status != null" >
  124 + STATUS,
  125 + </if>
  126 + <if test="customscode != null" >
  127 + CUSTOMSCODE,
  128 + </if>
  129 + <if test="productname != null" >
  130 + PRODUCTNAME,
  131 + </if>
  132 + <if test="dischargedate != null" >
  133 + DISCHARGEDATE,
  134 + </if>
  135 + <if test="receiptinformation != null" >
  136 + RECEIPTINFORMATION,
  137 + </if>
  138 + <if test="createdate != null" >
  139 + CREATEDATE,
  140 + </if>
  141 + <if test="dealFlag != null" >
  142 + DEAL_FLAG,
  143 + </if>
  144 + <if test="billTallyFlag != null" >
  145 + BILL_TALLY_FLAG,
  146 + </if>
  147 + <if test="dealTime != null" >
  148 + DEAL_TIME,
  149 + </if>
  150 + <if test="transportsplitdescription != null" >
  151 + TRANSPORTSPLITDESCRIPTION,
  152 + </if>
  153 + </trim>
  154 + <trim prefix="values (" suffix=")" suffixOverrides="," >
  155 + <if test="autoid != null" >
  156 + #{autoid,jdbcType=VARCHAR},
  157 + </if>
  158 + <if test="waybillnomaster != null" >
  159 + #{waybillnomaster,jdbcType=VARCHAR},
  160 + </if>
  161 + <if test="tcdName != null" >
  162 + #{tcdName,jdbcType=VARCHAR},
  163 + </if>
  164 + <if test="tcdTypecode != null" >
  165 + #{tcdTypecode,jdbcType=VARCHAR},
  166 + </if>
  167 + <if test="talltype != null" >
  168 + #{talltype,jdbcType=VARCHAR},
  169 + </if>
  170 + <if test="flightno != null" >
  171 + #{flightno,jdbcType=VARCHAR},
  172 + </if>
  173 + <if test="flightdate != null" >
  174 + #{flightdate,jdbcType=TIMESTAMP},
  175 + </if>
  176 + <if test="segment != null" >
  177 + #{segment,jdbcType=VARCHAR},
  178 + </if>
  179 + <if test="originatingstation != null" >
  180 + #{originatingstation,jdbcType=VARCHAR},
  181 + </if>
  182 + <if test="oName != null" >
  183 + #{oName,jdbcType=VARCHAR},
  184 + </if>
  185 + <if test="destinationstation != null" >
  186 + #{destinationstation,jdbcType=VARCHAR},
  187 + </if>
  188 + <if test="fdName != null" >
  189 + #{fdName,jdbcType=VARCHAR},
  190 + </if>
  191 + <if test="totalweight != null" >
  192 + #{totalweight,jdbcType=VARCHAR},
  193 + </if>
  194 + <if test="totalgrossweightmeasureuc != null" >
  195 + #{totalgrossweightmeasureuc,jdbcType=VARCHAR},
  196 + </if>
  197 + <if test="totalpiece != null" >
  198 + #{totalpiece,jdbcType=VARCHAR},
  199 + </if>
  200 + <if test="tallytotalpiece != null" >
  201 + #{tallytotalpiece,jdbcType=VARCHAR},
  202 + </if>
  203 + <if test="tallytotalweight != null" >
  204 + #{tallytotalweight,jdbcType=VARCHAR},
  205 + </if>
  206 + <if test="grossweightmeasureuc != null" >
  207 + #{grossweightmeasureuc,jdbcType=VARCHAR},
  208 + </if>
  209 + <if test="loadstarttime != null" >
  210 + #{loadstarttime,jdbcType=TIMESTAMP},
  211 + </if>
  212 + <if test="loadendtime != null" >
  213 + #{loadendtime,jdbcType=TIMESTAMP},
  214 + </if>
  215 + <if test="status != null" >
  216 + #{status,jdbcType=VARCHAR},
  217 + </if>
  218 + <if test="customscode != null" >
  219 + #{customscode,jdbcType=VARCHAR},
  220 + </if>
  221 + <if test="productname != null" >
  222 + #{productname,jdbcType=VARCHAR},
  223 + </if>
  224 + <if test="dischargedate != null" >
  225 + #{dischargedate,jdbcType=TIMESTAMP},
  226 + </if>
  227 + <if test="receiptinformation != null" >
  228 + #{receiptinformation,jdbcType=VARCHAR},
  229 + </if>
  230 + <if test="createdate != null" >
  231 + #{createdate,jdbcType=TIMESTAMP},
  232 + </if>
  233 + <if test="dealFlag != null" >
  234 + #{dealFlag,jdbcType=VARCHAR},
  235 + </if>
  236 + <if test="billTallyFlag != null" >
  237 + #{billTallyFlag,jdbcType=VARCHAR},
  238 + </if>
  239 + <if test="dealTime != null" >
  240 + #{dealTime,jdbcType=TIMESTAMP},
  241 + </if>
  242 + <if test="transportsplitdescription != null" >
  243 + #{transportsplitdescription,jdbcType=VARCHAR},
  244 + </if>
  245 + </trim>
  246 + </insert>
  247 +
  248 +
  249 +
  250 + <update id="updateRECEIPTION" parameterType="com.tianbo.analysis.model.TALLYMASTER" >
  251 + UPDATE TALLYMASTER
  252 + SET RECEIPTINFORMATION= #{receiptinformation,jdbcType=VARCHAR}
  253 + WHERE WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
  254 + AND WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}
  255 + </update>
  256 +
  257 + <select id="selectAutoIdByawbAawbH" parameterType="com.tianbo.analysis.model.TALLYMASTER" resultType="com.tianbo.analysis.model.TALLYMASTER">
  258 + SELECT AUTOID
  259 + FROM TALLYMASTER
  260 + WHERE
  261 + WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR} AND WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}
  262 + </select>
  263 +
  264 +</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.TALLYSECONDARYMapper" >
  4 + <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.TALLYSECONDARY" >
  5 + <result column="AUTOID" property="autoid" jdbcType="VARCHAR" />
  6 + <result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
  7 + <result column="WAYBILLNOSECONDARY" property="waybillnosecondary" jdbcType="VARCHAR" />
  8 + <result column="WEIGHT" property="weight" jdbcType="VARCHAR" />
  9 + <result column="PIECE" property="piece" jdbcType="VARCHAR" />
  10 + <result column="TALLYPIECE" property="tallypiece" jdbcType="VARCHAR" />
  11 + <result column="TALLYWEIGHT" property="tallyweight" jdbcType="VARCHAR" />
  12 + <result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" />
  13 + <result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" />
  14 + <result column="DISCHARGEDATE" property="dischargedate" jdbcType="TIMESTAMP" />
  15 + <result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
  16 + <result column="LOADSTARTTIME" property="loadstarttime" jdbcType="TIMESTAMP" />
  17 + <result column="LOADENDTIME" property="loadendtime" jdbcType="TIMESTAMP" />
  18 + <result column="TALLYMASTERID" property="tallymasterid" jdbcType="VARCHAR" />
  19 + <result column="DEAL_FLAG" property="dealFlag" jdbcType="VARCHAR" />
  20 + <result column="BILL_TALLY_FLAG" property="billTallyFlag" jdbcType="VARCHAR" />
  21 + <result column="DEAL_TIME" property="dealTime" jdbcType="TIMESTAMP" />
  22 + <result column="STATUS" property="status" jdbcType="VARCHAR" />
  23 + <result column="RECEIPTINFORMATION" property="receiptinformation" jdbcType="VARCHAR" />
  24 + </resultMap>
  25 + <insert id="insert" parameterType="com.tianbo.analysis.model.TALLYSECONDARY" >
  26 + insert into TALLYSECONDARY (AUTOID, WAYBILLNOMASTER, WAYBILLNOSECONDARY,
  27 + WEIGHT, PIECE, TALLYPIECE,
  28 + TALLYWEIGHT, CUSTOMSCODE, PRODUCTNAME,
  29 + DISCHARGEDATE, CREATEDATE, LOADSTARTTIME,
  30 + LOADENDTIME, TALLYMASTERID, DEAL_FLAG,
  31 + BILL_TALLY_FLAG, DEAL_TIME, STATUS,
  32 + RECEIPTINFORMATION)
  33 + values (#{autoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{waybillnosecondary,jdbcType=VARCHAR},
  34 + #{weight,jdbcType=VARCHAR}, #{piece,jdbcType=VARCHAR}, #{tallypiece,jdbcType=VARCHAR},
  35 + #{tallyweight,jdbcType=VARCHAR}, #{customscode,jdbcType=VARCHAR}, #{productname,jdbcType=VARCHAR},
  36 + #{dischargedate,jdbcType=TIMESTAMP}, #{createdate,jdbcType=TIMESTAMP}, #{loadstarttime,jdbcType=TIMESTAMP},
  37 + #{loadendtime,jdbcType=TIMESTAMP}, #{tallymasterid,jdbcType=VARCHAR}, #{dealFlag,jdbcType=VARCHAR},
  38 + #{billTallyFlag,jdbcType=VARCHAR}, #{dealTime,jdbcType=TIMESTAMP}, #{status,jdbcType=VARCHAR},
  39 + #{receiptinformation,jdbcType=VARCHAR})
  40 + </insert>
  41 + <insert id="insertSelective" parameterType="com.tianbo.analysis.model.TALLYSECONDARY" >
  42 + insert into TALLYSECONDARY
  43 + <trim prefix="(" suffix=")" suffixOverrides="," >
  44 + <if test="autoid != null" >
  45 + AUTOID,
  46 + </if>
  47 + <if test="waybillnomaster != null" >
  48 + WAYBILLNOMASTER,
  49 + </if>
  50 + <if test="waybillnosecondary != null" >
  51 + WAYBILLNOSECONDARY,
  52 + </if>
  53 + <if test="weight != null" >
  54 + WEIGHT,
  55 + </if>
  56 + <if test="piece != null" >
  57 + PIECE,
  58 + </if>
  59 + <if test="tallypiece != null" >
  60 + TALLYPIECE,
  61 + </if>
  62 + <if test="tallyweight != null" >
  63 + TALLYWEIGHT,
  64 + </if>
  65 + <if test="customscode != null" >
  66 + CUSTOMSCODE,
  67 + </if>
  68 + <if test="productname != null" >
  69 + PRODUCTNAME,
  70 + </if>
  71 + <if test="dischargedate != null" >
  72 + DISCHARGEDATE,
  73 + </if>
  74 + <if test="createdate != null" >
  75 + CREATEDATE,
  76 + </if>
  77 + <if test="loadstarttime != null" >
  78 + LOADSTARTTIME,
  79 + </if>
  80 + <if test="loadendtime != null" >
  81 + LOADENDTIME,
  82 + </if>
  83 + <if test="tallymasterid != null" >
  84 + TALLYMASTERID,
  85 + </if>
  86 + <if test="dealFlag != null" >
  87 + DEAL_FLAG,
  88 + </if>
  89 + <if test="billTallyFlag != null" >
  90 + BILL_TALLY_FLAG,
  91 + </if>
  92 + <if test="dealTime != null" >
  93 + DEAL_TIME,
  94 + </if>
  95 + <if test="status != null" >
  96 + STATUS,
  97 + </if>
  98 + <if test="receiptinformation != null" >
  99 + RECEIPTINFORMATION,
  100 + </if>
  101 + </trim>
  102 + <trim prefix="values (" suffix=")" suffixOverrides="," >
  103 + <if test="autoid != null" >
  104 + #{autoid,jdbcType=VARCHAR},
  105 + </if>
  106 + <if test="waybillnomaster != null" >
  107 + #{waybillnomaster,jdbcType=VARCHAR},
  108 + </if>
  109 + <if test="waybillnosecondary != null" >
  110 + #{waybillnosecondary,jdbcType=VARCHAR},
  111 + </if>
  112 + <if test="weight != null" >
  113 + #{weight,jdbcType=VARCHAR},
  114 + </if>
  115 + <if test="piece != null" >
  116 + #{piece,jdbcType=VARCHAR},
  117 + </if>
  118 + <if test="tallypiece != null" >
  119 + #{tallypiece,jdbcType=VARCHAR},
  120 + </if>
  121 + <if test="tallyweight != null" >
  122 + #{tallyweight,jdbcType=VARCHAR},
  123 + </if>
  124 + <if test="customscode != null" >
  125 + #{customscode,jdbcType=VARCHAR},
  126 + </if>
  127 + <if test="productname != null" >
  128 + #{productname,jdbcType=VARCHAR},
  129 + </if>
  130 + <if test="dischargedate != null" >
  131 + #{dischargedate,jdbcType=TIMESTAMP},
  132 + </if>
  133 + <if test="createdate != null" >
  134 + #{createdate,jdbcType=TIMESTAMP},
  135 + </if>
  136 + <if test="loadstarttime != null" >
  137 + #{loadstarttime,jdbcType=TIMESTAMP},
  138 + </if>
  139 + <if test="loadendtime != null" >
  140 + #{loadendtime,jdbcType=TIMESTAMP},
  141 + </if>
  142 + <if test="tallymasterid != null" >
  143 + #{tallymasterid,jdbcType=VARCHAR},
  144 + </if>
  145 + <if test="dealFlag != null" >
  146 + #{dealFlag,jdbcType=VARCHAR},
  147 + </if>
  148 + <if test="billTallyFlag != null" >
  149 + #{billTallyFlag,jdbcType=VARCHAR},
  150 + </if>
  151 + <if test="dealTime != null" >
  152 + #{dealTime,jdbcType=TIMESTAMP},
  153 + </if>
  154 + <if test="status != null" >
  155 + #{status,jdbcType=VARCHAR},
  156 + </if>
  157 + <if test="receiptinformation != null" >
  158 + #{receiptinformation,jdbcType=VARCHAR},
  159 + </if>
  160 + </trim>
  161 + </insert>
  162 +
  163 + <update id="updateRECEIPTION" parameterType="com.tianbo.analysis.model.TALLYSECONDARY" >
  164 + UPDATE TALLYSECONDARY
  165 + SET RECEIPTINFORMATION= #{receiptinformation,jdbcType=VARCHAR}
  166 + WHERE WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
  167 + AND WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}
  168 + </update>
  169 +
  170 + <select id="selectAutoIdByawbAawbH" parameterType="com.tianbo.analysis.model.TALLYSECONDARY" resultType="com.tianbo.analysis.model.TALLYSECONDARY">
  171 + SELECT AUTOID
  172 + FROM TALLYSECONDARY
  173 + WHERE
  174 + WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR} AND WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}
  175 + </select>
  176 +
  177 +</mapper>