作者 申海龙

大部分回执解析

正在显示 39 个修改的文件 包含 6677 行增加73 行删除
package com.tianbo.analysis.dao;
import com.tianbo.analysis.model.ARRIVEDMASTER;
import com.tianbo.analysis.model.ORIGINMANIFESTMASTER;
import java.util.List;
public interface ARRIVEDMASTERMapper {
int deleteByPrimaryKey(String autoid);
int insert(ARRIVEDMASTER record);
int insertSelective(ARRIVEDMASTER record);
ARRIVEDMASTER selectByPrimaryKey(String autoid);
int updateByPrimaryKeySelective(ARRIVEDMASTER record);
int updateByPrimaryKey(ARRIVEDMASTER record);
int insertRecept(ARRIVEDMASTER arrivedmaster);
int updateRECEIPTION(ARRIVEDMASTER record);
List<ARRIVEDMASTER> selectAutoIdByAwb(ARRIVEDMASTER record);
}
\ No newline at end of file
... ...
package com.tianbo.analysis.dao;
import com.tianbo.analysis.model.ARRIVEDSECONDARY;
import java.util.List;
public interface ARRIVEDSECONDARYMapper {
int insert(ARRIVEDSECONDARY record);
int insertSelective(ARRIVEDSECONDARY record);
int updateRECEIPTION(ARRIVEDSECONDARY record);
List<ARRIVEDSECONDARY> selectAutoIdByawbAawbH(ARRIVEDSECONDARY record);
}
\ No newline at end of file
... ...
package com.tianbo.analysis.dao;
import com.tianbo.analysis.model.CUSTOMSMESSAGEWithBLOBs;
public interface CUSTOMSMESSAGEMapper {
int insert(CUSTOMSMESSAGEWithBLOBs record);
int insertSelective(CUSTOMSMESSAGEWithBLOBs record);
CUSTOMSMESSAGEWithBLOBs selectMessage(String messageId);
}
\ No newline at end of file
... ...
package com.tianbo.analysis.dao;
import com.tianbo.analysis.model.DEPARTURESLOADING;
import java.util.List;
public interface DEPARTURESLOADINGMapper {
int insert(DEPARTURESLOADING record);
int insertSelective(DEPARTURESLOADING record);
int updateRECEIPTION(DEPARTURESLOADING record);
List<DEPARTURESLOADING> selectAutoIdByAwb(DEPARTURESLOADING record);
}
\ No newline at end of file
... ...
... ... @@ -11,5 +11,5 @@ public interface OriginmanifestsecondaryMapper {
int updateRECEIPTION(Originmanifestsecondary record);
List<Originmanifestsecondary> selectAutoIdByawbAawbH (Originmanifestsecondary record);
List<Originmanifestsecondary> selectAutoIdByawbAawbH(Originmanifestsecondary record);
}
\ No newline at end of file
... ...
package com.tianbo.analysis.dao;
import com.tianbo.analysis.model.ARRIVEDMASTER;
import com.tianbo.analysis.model.PREPAREMASTER;
import java.util.List;
public interface PREPAREMASTERMapper {
int insert(PREPAREMASTER record);
int insertSelective(PREPAREMASTER record);
int updateRECEIPTION(PREPAREMASTER record);
List<PREPAREMASTER> selectAutoIdByAwb(PREPAREMASTER record);
}
\ No newline at end of file
... ...
package com.tianbo.analysis.dao;
import com.tianbo.analysis.model.ARRIVEDSECONDARY;
import com.tianbo.analysis.model.PREPARESECONDARY;
import java.util.List;
public interface PREPARESECONDARYMapper {
int deleteByPrimaryKey(Short id);
int insert(PREPARESECONDARY record);
int insertSelective(PREPARESECONDARY record);
PREPARESECONDARY selectByPrimaryKey(Short id);
int updateByPrimaryKeySelective(PREPARESECONDARY record);
int updateByPrimaryKey(PREPARESECONDARY record);
int updateRECEIPTION(PREPARESECONDARY record);
List<PREPARESECONDARY> selectAutoIdByawbAawbH(PREPARESECONDARY record);
}
\ No newline at end of file
... ...
package com.tianbo.analysis.dao;
import com.tianbo.analysis.model.TALLYMASTER;
import java.util.List;
public interface TALLYMASTERMapper {
int insert(TALLYMASTER record);
int insertSelective(TALLYMASTER record);
int updateRECEIPTION(TALLYMASTER record);
List<TALLYMASTER> selectAutoIdByAwb(TALLYMASTER record);
}
\ No newline at end of file
... ...
package com.tianbo.analysis.dao;
import com.tianbo.analysis.model.TALLYSECONDARY;
import java.util.List;
public interface TALLYSECONDARYMapper {
int insert(TALLYSECONDARY record);
int insertSelective(TALLYSECONDARY record);
int updateRECEIPTION(TALLYSECONDARY record);
List<TALLYSECONDARY> selectAutoIdByawbAawbH(TALLYSECONDARY record);
}
\ No newline at end of file
... ...
package com.tianbo.analysis.handle;
import com.fasterxml.jackson.databind.annotation.JsonAppend;
import com.sun.xml.internal.ws.util.xml.XmlUtil;
import com.tianbo.analysis.model.CustomReception;
import com.tianbo.analysis.service.CoustomAnalysisService;
import com.tianbo.analysis.service.*;
import com.tianbo.util.XML.XMLXPath;
import org.apache.commons.io.FileUtils;
import org.dom4j.Document;
... ... @@ -24,7 +26,7 @@ import java.util.List;
* 海关新舱单回执解析xml文件
*/
@Component
public class CustomXmlHandle {
public class CustomXmlHandle{
private static CustomXmlHandle customXmlHandle;
//海关新舱单回执报头
... ... @@ -46,11 +48,31 @@ public class CustomXmlHandle {
@Autowired
private CoustomAnalysisService coustomAnalysisService;
@Autowired
private ARRIVEDMASTERService arrivedmasterService;
@Autowired
private TALLYMASTERService tallymasterService;
@Autowired
private DEPARTURESLOADINGService departuresloadingService;
@Autowired
private PREPAREMASTERService preparemasterService;
//通过@PostConstruct实现初始化bean之前进行的操作,解决service调用空指针问题
@PostConstruct
public void init() {
customXmlHandle = this;
customXmlHandle.coustomAnalysisService = this.coustomAnalysisService;
customXmlHandle.arrivedmasterService = this.arrivedmasterService;
customXmlHandle.tallymasterService = this.tallymasterService;
customXmlHandle.departuresloadingService = this.departuresloadingService;
customXmlHandle.preparemasterService = this.preparemasterService;
// 初使化时将已静态化的testService实例化
}
... ... @@ -64,6 +86,8 @@ public class CustomXmlHandle {
*/
public int handelXmlDocument(File file) throws DocumentException,UnsupportedEncodingException,SAXParseException {
int i = 0;
SAXReader saxReader = new SAXReader();
Document document = saxReader.read(file);
Element contentRoot = document.getRootElement();
... ... @@ -74,25 +98,36 @@ public class CustomXmlHandle {
//开始解析
// fzeFoh.setGrossweightmeasureuc(XMLXPath.getSingleValueByPath(document,GrossWeightMeasureUc));
String msgType = XMLXPath.getSingleValueByPath(document,MessageType);
if (type.equals(msgType)){
String journeyid = XMLXPath.getSingleValueByPath(document,JourneyID);
String[] flightList = journeyid.split("/");
String flightNo = flightList[0];
String flightDate = flightList[1];
String awbA = XMLXPath.getSingleValueByPath(document,waybillMaster);
//全格式的分单 如 17212345678_ADBD
String awbH = XMLXPath.getSingleValueByPath(document,waybillSecond);
String resCode = XMLXPath.getSingleValueByPath(document,responseCode);
String resText = XMLXPath.getSingleValueByPath(document,responseText);
CustomReception customReception = new CustomReception(msgType,flightNo,flightDate,awbA,awbH,resText);
int i = customXmlHandle.coustomAnalysisService.insertRecept(customReception);
return i;
String journeyid = XMLXPath.getSingleValueByPath(document,JourneyID);
// XMLXPath.getSingleValueByPath(document, )
String[] flightList = journeyid.split("/");
String flightNo = flightList[0];
String flightDate = flightList[1];
String awbA = XMLXPath.getSingleValueByPath(document,waybillMaster);
//全格式的分单 如 17212345678_ADBD
String awbH = XMLXPath.getSingleValueByPath(document,waybillSecond);
String resCode = XMLXPath.getSingleValueByPath(document,responseCode);
String resText = XMLXPath.getSingleValueByPath(document,responseText);
String messageId = XMLXPath.getSingleValueByPath(document, MessageID);
CustomReception customReception = new CustomReception(msgType,flightNo,flightDate,awbA,awbH,resText, messageId);
switch (msgType){
case "MT9999":
i = customXmlHandle.coustomAnalysisService.insertRecept(customReception);
case "MT3201":
i= customXmlHandle.arrivedmasterService.insertRecept(customReception);
case "MT5202":
i = customXmlHandle.tallymasterService.insertRecept(customReception, "MT5202");
case "MT5201":
i = customXmlHandle.tallymasterService.insertRecept(customReception, "MT5201");
case "MT4201":
i = customXmlHandle.departuresloadingService.insertRecept(customReception);
case "MT1201":
i = customXmlHandle.coustomAnalysisService.insertRecept(customReception);
case "MT2201":
i = customXmlHandle.preparemasterService.insertRecept(customReception);
}
return 0;
return i;
}
}
... ...
package com.tianbo.analysis.model;
import java.util.Date;
public class ARRIVEDMASTER {
private String autoid;
private String waybillnomaster;
private String tcdName;
private String tcdTypecode;
private String flightno;
private Date flightdate;
private String carrier;
private String originatingstation;
private String oName;
private String destinationstation;
private String fdName;
private String arrivedtotalpiece;
private String totalpiecequantity;
private String arrivedtotalweight;
private String grossweightmeasureuc;
private String totalgrossweightmeasure;
private String totalgrossweightmeasureuc;
private String chargeableweightmeasure;
private String chargeableweightmeasureuc;
private Date arriveddate;
private String transportsplitdescription;
private String customscode;
private String productname;
private String status;
private String receiptinformation;
private Date createdate;
public String getAutoid() {
return autoid;
}
public void setAutoid(String autoid) {
this.autoid = autoid == null ? null : autoid.trim();
}
public String getWaybillnomaster() {
return waybillnomaster;
}
public void setWaybillnomaster(String waybillnomaster) {
this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim();
}
public String getTcdName() {
return tcdName;
}
public void setTcdName(String tcdName) {
this.tcdName = tcdName == null ? null : tcdName.trim();
}
public String getTcdTypecode() {
return tcdTypecode;
}
public void setTcdTypecode(String tcdTypecode) {
this.tcdTypecode = tcdTypecode == null ? null : tcdTypecode.trim();
}
public String getFlightno() {
return flightno;
}
public void setFlightno(String flightno) {
this.flightno = flightno == null ? null : flightno.trim();
}
public Date getFlightdate() {
return flightdate;
}
public void setFlightdate(Date flightdate) {
this.flightdate = flightdate;
}
public String getCarrier() {
return carrier;
}
public void setCarrier(String carrier) {
this.carrier = carrier == null ? null : carrier.trim();
}
public String getOriginatingstation() {
return originatingstation;
}
public void setOriginatingstation(String originatingstation) {
this.originatingstation = originatingstation == null ? null : originatingstation.trim();
}
public String getoName() {
return oName;
}
public void setoName(String oName) {
this.oName = oName == null ? null : oName.trim();
}
public String getDestinationstation() {
return destinationstation;
}
public void setDestinationstation(String destinationstation) {
this.destinationstation = destinationstation == null ? null : destinationstation.trim();
}
public String getFdName() {
return fdName;
}
public void setFdName(String fdName) {
this.fdName = fdName == null ? null : fdName.trim();
}
public String getArrivedtotalpiece() {
return arrivedtotalpiece;
}
public void setArrivedtotalpiece(String arrivedtotalpiece) {
this.arrivedtotalpiece = arrivedtotalpiece == null ? null : arrivedtotalpiece.trim();
}
public String getTotalpiecequantity() {
return totalpiecequantity;
}
public void setTotalpiecequantity(String totalpiecequantity) {
this.totalpiecequantity = totalpiecequantity == null ? null : totalpiecequantity.trim();
}
public String getArrivedtotalweight() {
return arrivedtotalweight;
}
public void setArrivedtotalweight(String arrivedtotalweight) {
this.arrivedtotalweight = arrivedtotalweight == null ? null : arrivedtotalweight.trim();
}
public String getGrossweightmeasureuc() {
return grossweightmeasureuc;
}
public void setGrossweightmeasureuc(String grossweightmeasureuc) {
this.grossweightmeasureuc = grossweightmeasureuc == null ? null : grossweightmeasureuc.trim();
}
public String getTotalgrossweightmeasure() {
return totalgrossweightmeasure;
}
public void setTotalgrossweightmeasure(String totalgrossweightmeasure) {
this.totalgrossweightmeasure = totalgrossweightmeasure == null ? null : totalgrossweightmeasure.trim();
}
public String getTotalgrossweightmeasureuc() {
return totalgrossweightmeasureuc;
}
public void setTotalgrossweightmeasureuc(String totalgrossweightmeasureuc) {
this.totalgrossweightmeasureuc = totalgrossweightmeasureuc == null ? null : totalgrossweightmeasureuc.trim();
}
public String getChargeableweightmeasure() {
return chargeableweightmeasure;
}
public void setChargeableweightmeasure(String chargeableweightmeasure) {
this.chargeableweightmeasure = chargeableweightmeasure == null ? null : chargeableweightmeasure.trim();
}
public String getChargeableweightmeasureuc() {
return chargeableweightmeasureuc;
}
public void setChargeableweightmeasureuc(String chargeableweightmeasureuc) {
this.chargeableweightmeasureuc = chargeableweightmeasureuc == null ? null : chargeableweightmeasureuc.trim();
}
public Date getArriveddate() {
return arriveddate;
}
public void setArriveddate(Date arriveddate) {
this.arriveddate = arriveddate;
}
public String getTransportsplitdescription() {
return transportsplitdescription;
}
public void setTransportsplitdescription(String transportsplitdescription) {
this.transportsplitdescription = transportsplitdescription == null ? null : transportsplitdescription.trim();
}
public String getCustomscode() {
return customscode;
}
public void setCustomscode(String customscode) {
this.customscode = customscode == null ? null : customscode.trim();
}
public String getProductname() {
return productname;
}
public void setProductname(String productname) {
this.productname = productname == null ? null : productname.trim();
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status == null ? null : status.trim();
}
public String getReceiptinformation() {
return receiptinformation;
}
public void setReceiptinformation(String receiptinformation) {
this.receiptinformation = receiptinformation == null ? null : receiptinformation.trim();
}
public Date getCreatedate() {
return createdate;
}
public void setCreatedate(Date createdate) {
this.createdate = createdate;
}
}
\ No newline at end of file
... ...
package com.tianbo.analysis.model;
import java.util.Date;
public class ARRIVEDSECONDARY {
private String autoid;
private String waybillnomaster;
private String tcdName;
private String tcdTypecode;
private String waybillnosecondary;
private String carrier;
private String oId;
private String oName;
private String fdId;
private String fdName;
private String flightno;
private Date flightdate;
private String arrivedtotalpiece;
private String totalpiecequantity;
private String arrivedtotalweight;
private String grossweightmeasureuc;
private String totalgrossweightmeasure;
private String totalgrossweightmeasureuc;
private String chargeableweightmeasure;
private String chargeableweightmeasureuc;
private Date arriveddate;
private String customscode;
private String productname;
private Date createdate;
private String arrivedmasterid;
private String transportsplitdescription;
private String receiption;
private String status;
public String getAutoid() {
return autoid;
}
public void setAutoid(String autoid) {
this.autoid = autoid == null ? null : autoid.trim();
}
public String getWaybillnomaster() {
return waybillnomaster;
}
public void setWaybillnomaster(String waybillnomaster) {
this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim();
}
public String getTcdName() {
return tcdName;
}
public void setTcdName(String tcdName) {
this.tcdName = tcdName == null ? null : tcdName.trim();
}
public String getTcdTypecode() {
return tcdTypecode;
}
public void setTcdTypecode(String tcdTypecode) {
this.tcdTypecode = tcdTypecode == null ? null : tcdTypecode.trim();
}
public String getWaybillnosecondary() {
return waybillnosecondary;
}
public void setWaybillnosecondary(String waybillnosecondary) {
this.waybillnosecondary = waybillnosecondary == null ? null : waybillnosecondary.trim();
}
public String getCarrier() {
return carrier;
}
public void setCarrier(String carrier) {
this.carrier = carrier == null ? null : carrier.trim();
}
public String getoId() {
return oId;
}
public void setoId(String oId) {
this.oId = oId == null ? null : oId.trim();
}
public String getoName() {
return oName;
}
public void setoName(String oName) {
this.oName = oName == null ? null : oName.trim();
}
public String getFdId() {
return fdId;
}
public void setFdId(String fdId) {
this.fdId = fdId == null ? null : fdId.trim();
}
public String getFdName() {
return fdName;
}
public void setFdName(String fdName) {
this.fdName = fdName == null ? null : fdName.trim();
}
public String getFlightno() {
return flightno;
}
public void setFlightno(String flightno) {
this.flightno = flightno == null ? null : flightno.trim();
}
public Date getFlightdate() {
return flightdate;
}
public void setFlightdate(Date flightdate) {
this.flightdate = flightdate;
}
public String getArrivedtotalpiece() {
return arrivedtotalpiece;
}
public void setArrivedtotalpiece(String arrivedtotalpiece) {
this.arrivedtotalpiece = arrivedtotalpiece == null ? null : arrivedtotalpiece.trim();
}
public String getTotalpiecequantity() {
return totalpiecequantity;
}
public void setTotalpiecequantity(String totalpiecequantity) {
this.totalpiecequantity = totalpiecequantity == null ? null : totalpiecequantity.trim();
}
public String getArrivedtotalweight() {
return arrivedtotalweight;
}
public void setArrivedtotalweight(String arrivedtotalweight) {
this.arrivedtotalweight = arrivedtotalweight == null ? null : arrivedtotalweight.trim();
}
public String getGrossweightmeasureuc() {
return grossweightmeasureuc;
}
public void setGrossweightmeasureuc(String grossweightmeasureuc) {
this.grossweightmeasureuc = grossweightmeasureuc == null ? null : grossweightmeasureuc.trim();
}
public String getTotalgrossweightmeasure() {
return totalgrossweightmeasure;
}
public void setTotalgrossweightmeasure(String totalgrossweightmeasure) {
this.totalgrossweightmeasure = totalgrossweightmeasure == null ? null : totalgrossweightmeasure.trim();
}
public String getTotalgrossweightmeasureuc() {
return totalgrossweightmeasureuc;
}
public void setTotalgrossweightmeasureuc(String totalgrossweightmeasureuc) {
this.totalgrossweightmeasureuc = totalgrossweightmeasureuc == null ? null : totalgrossweightmeasureuc.trim();
}
public String getChargeableweightmeasure() {
return chargeableweightmeasure;
}
public void setChargeableweightmeasure(String chargeableweightmeasure) {
this.chargeableweightmeasure = chargeableweightmeasure == null ? null : chargeableweightmeasure.trim();
}
public String getChargeableweightmeasureuc() {
return chargeableweightmeasureuc;
}
public void setChargeableweightmeasureuc(String chargeableweightmeasureuc) {
this.chargeableweightmeasureuc = chargeableweightmeasureuc == null ? null : chargeableweightmeasureuc.trim();
}
public Date getArriveddate() {
return arriveddate;
}
public void setArriveddate(Date arriveddate) {
this.arriveddate = arriveddate;
}
public String getCustomscode() {
return customscode;
}
public void setCustomscode(String customscode) {
this.customscode = customscode == null ? null : customscode.trim();
}
public String getProductname() {
return productname;
}
public void setProductname(String productname) {
this.productname = productname == null ? null : productname.trim();
}
public Date getCreatedate() {
return createdate;
}
public void setCreatedate(Date createdate) {
this.createdate = createdate;
}
public String getArrivedmasterid() {
return arrivedmasterid;
}
public void setArrivedmasterid(String arrivedmasterid) {
this.arrivedmasterid = arrivedmasterid == null ? null : arrivedmasterid.trim();
}
public String getTransportsplitdescription() {
return transportsplitdescription;
}
public void setTransportsplitdescription(String transportsplitdescription) {
this.transportsplitdescription = transportsplitdescription == null ? null : transportsplitdescription.trim();
}
public String getReceiption() {
return receiption;
}
public void setReceiption(String receiption) {
this.receiption = receiption == null ? null : receiption.trim();
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status == null ? null : status.trim();
}
}
\ No newline at end of file
... ...
package com.tianbo.analysis.model;
import java.math.BigDecimal;
import java.util.Date;
public class CUSTOMSMESSAGE {
private String autoid;
private String messageid;
private String messagetype;
private String messagestatus;
private Date sendtime;
private Date receivetime;
private String objectid;
private String flightno;
private Date flightdate;
private String masterautoid;
private String waybillnomaster;
private String secondaryautoid;
private String waybillnosecondary;
private BigDecimal pcs;
private BigDecimal wt;
private String responsecode;
private String responsetext;
private Date createtime;
public String getAutoid() {
return autoid;
}
public void setAutoid(String autoid) {
this.autoid = autoid == null ? null : autoid.trim();
}
public String getMessageid() {
return messageid;
}
public void setMessageid(String messageid) {
this.messageid = messageid == null ? null : messageid.trim();
}
public String getMessagetype() {
return messagetype;
}
public void setMessagetype(String messagetype) {
this.messagetype = messagetype == null ? null : messagetype.trim();
}
public String getMessagestatus() {
return messagestatus;
}
public void setMessagestatus(String messagestatus) {
this.messagestatus = messagestatus == null ? null : messagestatus.trim();
}
public Date getSendtime() {
return sendtime;
}
public void setSendtime(Date sendtime) {
this.sendtime = sendtime;
}
public Date getReceivetime() {
return receivetime;
}
public void setReceivetime(Date receivetime) {
this.receivetime = receivetime;
}
public String getObjectid() {
return objectid;
}
public void setObjectid(String objectid) {
this.objectid = objectid == null ? null : objectid.trim();
}
public String getFlightno() {
return flightno;
}
public void setFlightno(String flightno) {
this.flightno = flightno == null ? null : flightno.trim();
}
public Date getFlightdate() {
return flightdate;
}
public void setFlightdate(Date flightdate) {
this.flightdate = flightdate;
}
public String getMasterautoid() {
return masterautoid;
}
public void setMasterautoid(String masterautoid) {
this.masterautoid = masterautoid == null ? null : masterautoid.trim();
}
public String getWaybillnomaster() {
return waybillnomaster;
}
public void setWaybillnomaster(String waybillnomaster) {
this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim();
}
public String getSecondaryautoid() {
return secondaryautoid;
}
public void setSecondaryautoid(String secondaryautoid) {
this.secondaryautoid = secondaryautoid == null ? null : secondaryautoid.trim();
}
public String getWaybillnosecondary() {
return waybillnosecondary;
}
public void setWaybillnosecondary(String waybillnosecondary) {
this.waybillnosecondary = waybillnosecondary == null ? null : waybillnosecondary.trim();
}
public BigDecimal getPcs() {
return pcs;
}
public void setPcs(BigDecimal pcs) {
this.pcs = pcs;
}
public BigDecimal getWt() {
return wt;
}
public void setWt(BigDecimal wt) {
this.wt = wt;
}
public String getResponsecode() {
return responsecode;
}
public void setResponsecode(String responsecode) {
this.responsecode = responsecode == null ? null : responsecode.trim();
}
public String getResponsetext() {
return responsetext;
}
public void setResponsetext(String responsetext) {
this.responsetext = responsetext == null ? null : responsetext.trim();
}
public Date getCreatetime() {
return createtime;
}
public void setCreatetime(Date createtime) {
this.createtime = createtime;
}
}
\ No newline at end of file
... ...
package com.tianbo.analysis.model;
public class CUSTOMSMESSAGEWithBLOBs extends CUSTOMSMESSAGE {
private String messagecontent;
private String receivecontent;
public String getMessagecontent() {
return messagecontent;
}
public void setMessagecontent(String messagecontent) {
this.messagecontent = messagecontent == null ? null : messagecontent.trim();
}
public String getReceivecontent() {
return receivecontent;
}
public void setReceivecontent(String receivecontent) {
this.receivecontent = receivecontent == null ? null : receivecontent.trim();
}
}
\ No newline at end of file
... ...
... ... @@ -23,13 +23,14 @@ public class CustomReception {
String flightDate,
String wayBillMaster,
String wayBillSecond,
String responseText
){
String responseText,
String messageID){
this.messageType = messageType;
this.flightNo = flightNo;
this.flightDate = flightDate;
this.wayBillMaster = wayBillMaster;
this.wayBillSecond = wayBillSecond;
this.responseText = responseText;
this.messageID = messageID;
}
}
... ...
package com.tianbo.analysis.model;
import java.util.Date;
public class DEPARTURESLOADING {
private String id;
private Date createdate;
private String waybillno;
private String flightno;
private Date flightdate;
private String originatingstation;
private String destinationstation;
private String stowagepieces;
private String stowageweight;
private String waybillpieces;
private String waybillweight;
private Date stowagedate;
private String productname;
private String specialcode;
private String customs;
private String receiption;
private String status;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id == null ? null : id.trim();
}
public Date getCreatedate() {
return createdate;
}
public void setCreatedate(Date createdate) {
this.createdate = createdate;
}
public String getWaybillno() {
return waybillno;
}
public void setWaybillno(String waybillno) {
this.waybillno = waybillno == null ? null : waybillno.trim();
}
public String getFlightno() {
return flightno;
}
public void setFlightno(String flightno) {
this.flightno = flightno == null ? null : flightno.trim();
}
public Date getFlightdate() {
return flightdate;
}
public void setFlightdate(Date flightdate) {
this.flightdate = flightdate;
}
public String getOriginatingstation() {
return originatingstation;
}
public void setOriginatingstation(String originatingstation) {
this.originatingstation = originatingstation == null ? null : originatingstation.trim();
}
public String getDestinationstation() {
return destinationstation;
}
public void setDestinationstation(String destinationstation) {
this.destinationstation = destinationstation == null ? null : destinationstation.trim();
}
public String getStowagepieces() {
return stowagepieces;
}
public void setStowagepieces(String stowagepieces) {
this.stowagepieces = stowagepieces == null ? null : stowagepieces.trim();
}
public String getStowageweight() {
return stowageweight;
}
public void setStowageweight(String stowageweight) {
this.stowageweight = stowageweight == null ? null : stowageweight.trim();
}
public String getWaybillpieces() {
return waybillpieces;
}
public void setWaybillpieces(String waybillpieces) {
this.waybillpieces = waybillpieces == null ? null : waybillpieces.trim();
}
public String getWaybillweight() {
return waybillweight;
}
public void setWaybillweight(String waybillweight) {
this.waybillweight = waybillweight == null ? null : waybillweight.trim();
}
public Date getStowagedate() {
return stowagedate;
}
public void setStowagedate(Date stowagedate) {
this.stowagedate = stowagedate;
}
public String getProductname() {
return productname;
}
public void setProductname(String productname) {
this.productname = productname == null ? null : productname.trim();
}
public String getSpecialcode() {
return specialcode;
}
public void setSpecialcode(String specialcode) {
this.specialcode = specialcode == null ? null : specialcode.trim();
}
public String getCustoms() {
return customs;
}
public void setCustoms(String customs) {
this.customs = customs == null ? null : customs.trim();
}
public String getReceiption() {
return receiption;
}
public void setReceiption(String receiption) {
this.receiption = receiption == null ? null : receiption.trim();
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status == null ? null : status.trim();
}
}
\ No newline at end of file
... ...
package com.tianbo.analysis.model;
import java.util.Date;
public class PREPAREMASTER {
private String autoid;
private String flightno;
private Date flightdate;
private String originatingstation;
private String destinationstation;
private String waybillnomaster;
private String totalweight;
private String totalpiece;
private String preparetotalpiece;
private String preparetotalweight;
private Date stowagedate;
private String status;
private String carrier;
private String customsstatus;
private String paymode;
private String customscode;
private String agentcode;
private String agentname;
private String shippername;
private String shippercity;
private String shipperaddress;
private String consigneename;
private String consigneecity;
private String consigneeaddress;
private String receiptinformation;
private Date createdate;
private String productname;
private String shipperCode;
private String shipperCountrycode;
private String shipperPhone;
private String shipperFax;
private String consigneeCode;
private String consigneeCountrycode;
private String consigneeFax;
private String consigneePhone;
private String shipperAeo;
private String consigneeAeo;
private String unloadingstation;
public String getAutoid() {
return autoid;
}
public void setAutoid(String autoid) {
this.autoid = autoid == null ? null : autoid.trim();
}
public String getFlightno() {
return flightno;
}
public void setFlightno(String flightno) {
this.flightno = flightno == null ? null : flightno.trim();
}
public Date getFlightdate() {
return flightdate;
}
public void setFlightdate(Date flightdate) {
this.flightdate = flightdate;
}
public String getOriginatingstation() {
return originatingstation;
}
public void setOriginatingstation(String originatingstation) {
this.originatingstation = originatingstation == null ? null : originatingstation.trim();
}
public String getDestinationstation() {
return destinationstation;
}
public void setDestinationstation(String destinationstation) {
this.destinationstation = destinationstation == null ? null : destinationstation.trim();
}
public String getWaybillnomaster() {
return waybillnomaster;
}
public void setWaybillnomaster(String waybillnomaster) {
this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim();
}
public String getTotalweight() {
return totalweight;
}
public void setTotalweight(String totalweight) {
this.totalweight = totalweight == null ? null : totalweight.trim();
}
public String getTotalpiece() {
return totalpiece;
}
public void setTotalpiece(String totalpiece) {
this.totalpiece = totalpiece == null ? null : totalpiece.trim();
}
public String getPreparetotalpiece() {
return preparetotalpiece;
}
public void setPreparetotalpiece(String preparetotalpiece) {
this.preparetotalpiece = preparetotalpiece == null ? null : preparetotalpiece.trim();
}
public String getPreparetotalweight() {
return preparetotalweight;
}
public void setPreparetotalweight(String preparetotalweight) {
this.preparetotalweight = preparetotalweight == null ? null : preparetotalweight.trim();
}
public Date getStowagedate() {
return stowagedate;
}
public void setStowagedate(Date stowagedate) {
this.stowagedate = stowagedate;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status == null ? null : status.trim();
}
public String getCarrier() {
return carrier;
}
public void setCarrier(String carrier) {
this.carrier = carrier == null ? null : carrier.trim();
}
public String getCustomsstatus() {
return customsstatus;
}
public void setCustomsstatus(String customsstatus) {
this.customsstatus = customsstatus == null ? null : customsstatus.trim();
}
public String getPaymode() {
return paymode;
}
public void setPaymode(String paymode) {
this.paymode = paymode == null ? null : paymode.trim();
}
public String getCustomscode() {
return customscode;
}
public void setCustomscode(String customscode) {
this.customscode = customscode == null ? null : customscode.trim();
}
public String getAgentcode() {
return agentcode;
}
public void setAgentcode(String agentcode) {
this.agentcode = agentcode == null ? null : agentcode.trim();
}
public String getAgentname() {
return agentname;
}
public void setAgentname(String agentname) {
this.agentname = agentname == null ? null : agentname.trim();
}
public String getShippername() {
return shippername;
}
public void setShippername(String shippername) {
this.shippername = shippername == null ? null : shippername.trim();
}
public String getShippercity() {
return shippercity;
}
public void setShippercity(String shippercity) {
this.shippercity = shippercity == null ? null : shippercity.trim();
}
public String getShipperaddress() {
return shipperaddress;
}
public void setShipperaddress(String shipperaddress) {
this.shipperaddress = shipperaddress == null ? null : shipperaddress.trim();
}
public String getConsigneename() {
return consigneename;
}
public void setConsigneename(String consigneename) {
this.consigneename = consigneename == null ? null : consigneename.trim();
}
public String getConsigneecity() {
return consigneecity;
}
public void setConsigneecity(String consigneecity) {
this.consigneecity = consigneecity == null ? null : consigneecity.trim();
}
public String getConsigneeaddress() {
return consigneeaddress;
}
public void setConsigneeaddress(String consigneeaddress) {
this.consigneeaddress = consigneeaddress == null ? null : consigneeaddress.trim();
}
public String getReceiptinformation() {
return receiptinformation;
}
public void setReceiptinformation(String receiptinformation) {
this.receiptinformation = receiptinformation == null ? null : receiptinformation.trim();
}
public Date getCreatedate() {
return createdate;
}
public void setCreatedate(Date createdate) {
this.createdate = createdate;
}
public String getProductname() {
return productname;
}
public void setProductname(String productname) {
this.productname = productname == null ? null : productname.trim();
}
public String getShipperCode() {
return shipperCode;
}
public void setShipperCode(String shipperCode) {
this.shipperCode = shipperCode == null ? null : shipperCode.trim();
}
public String getShipperCountrycode() {
return shipperCountrycode;
}
public void setShipperCountrycode(String shipperCountrycode) {
this.shipperCountrycode = shipperCountrycode == null ? null : shipperCountrycode.trim();
}
public String getShipperPhone() {
return shipperPhone;
}
public void setShipperPhone(String shipperPhone) {
this.shipperPhone = shipperPhone == null ? null : shipperPhone.trim();
}
public String getShipperFax() {
return shipperFax;
}
public void setShipperFax(String shipperFax) {
this.shipperFax = shipperFax == null ? null : shipperFax.trim();
}
public String getConsigneeCode() {
return consigneeCode;
}
public void setConsigneeCode(String consigneeCode) {
this.consigneeCode = consigneeCode == null ? null : consigneeCode.trim();
}
public String getConsigneeCountrycode() {
return consigneeCountrycode;
}
public void setConsigneeCountrycode(String consigneeCountrycode) {
this.consigneeCountrycode = consigneeCountrycode == null ? null : consigneeCountrycode.trim();
}
public String getConsigneeFax() {
return consigneeFax;
}
public void setConsigneeFax(String consigneeFax) {
this.consigneeFax = consigneeFax == null ? null : consigneeFax.trim();
}
public String getConsigneePhone() {
return consigneePhone;
}
public void setConsigneePhone(String consigneePhone) {
this.consigneePhone = consigneePhone == null ? null : consigneePhone.trim();
}
public String getShipperAeo() {
return shipperAeo;
}
public void setShipperAeo(String shipperAeo) {
this.shipperAeo = shipperAeo == null ? null : shipperAeo.trim();
}
public String getConsigneeAeo() {
return consigneeAeo;
}
public void setConsigneeAeo(String consigneeAeo) {
this.consigneeAeo = consigneeAeo == null ? null : consigneeAeo.trim();
}
public String getUnloadingstation() {
return unloadingstation;
}
public void setUnloadingstation(String unloadingstation) {
this.unloadingstation = unloadingstation == null ? null : unloadingstation.trim();
}
}
\ No newline at end of file
... ...
package com.tianbo.analysis.model;
import java.math.BigDecimal;
import java.util.Date;
public class PREPARESECONDARY {
private String id;
private String waybillnomaster;
private String waybillnosecondary;
private String totalweight;
private String totalpiece;
private String preparepiece;
private String prepareweight;
private String productname;
private Date stowagedate;
private Date createdate;
private Short preparemasterid;
private String autoid;
private Date modifyDate;
private BigDecimal modifier;
private BigDecimal isDelete;
private BigDecimal creator;
private Date createDate;
private String flightno;
private Date flightdate;
private String originatingstation;
private String destinationstation;
private String agentcompanycode;
private String status;
private String carrier;
private String customsstatus;
private String paymode;
private String specialgoodscode;
private String customscode;
private String agentman;
private String agentcompany;
private String receiptinformation;
private String unnumber;
private String category;
private String shCompany;
private String shAddress;
private String shZipcode;
private String shCity;
private String shDeltaname;
private String shCountry;
private String shTelephone;
private String shFax;
private String shName;
private String coCompany;
private String coAddress;
private String coZipcode;
private String coCity;
private String coDeltaname;
private String coCountry;
private String coTelephone;
private String coFax;
private String coName;
private String reachStation;
private String carrier1;
private String reachStation1;
private String carrier2;
private String reachStation2;
private String nameOfgoods;
private String deliveryStation;
private String shProvincecode;
private String shProvincename;
private String deNumber;
private String deWeight;
private String deChweight;
private String deSize;
private String deVolume;
private String deType;
private String deTrstation;
private String dePacking;
private String deRemarks;
private Short deIds;
private String responseCode;
private String responseText;
private Short saveTime;
private Short userId;
private String shpaeo;
private String cneaeo;
private String shpcusid;
private String cnecusid;
private String unlodingcode;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getWaybillnomaster() {
return waybillnomaster;
}
public void setWaybillnomaster(String waybillnomaster) {
this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim();
}
public String getWaybillnosecondary() {
return waybillnosecondary;
}
public void setWaybillnosecondary(String waybillnosecondary) {
this.waybillnosecondary = waybillnosecondary == null ? null : waybillnosecondary.trim();
}
public String getTotalweight() {
return totalweight;
}
public void setTotalweight(String totalweight) {
this.totalweight = totalweight == null ? null : totalweight.trim();
}
public String getTotalpiece() {
return totalpiece;
}
public void setTotalpiece(String totalpiece) {
this.totalpiece = totalpiece == null ? null : totalpiece.trim();
}
public String getPreparepiece() {
return preparepiece;
}
public void setPreparepiece(String preparepiece) {
this.preparepiece = preparepiece == null ? null : preparepiece.trim();
}
public String getPrepareweight() {
return prepareweight;
}
public void setPrepareweight(String prepareweight) {
this.prepareweight = prepareweight == null ? null : prepareweight.trim();
}
public String getProductname() {
return productname;
}
public void setProductname(String productname) {
this.productname = productname == null ? null : productname.trim();
}
public Date getStowagedate() {
return stowagedate;
}
public void setStowagedate(Date stowagedate) {
this.stowagedate = stowagedate;
}
public Date getCreatedate() {
return createdate;
}
public void setCreatedate(Date createdate) {
this.createdate = createdate;
}
public Short getPreparemasterid() {
return preparemasterid;
}
public void setPreparemasterid(Short preparemasterid) {
this.preparemasterid = preparemasterid;
}
public String getAutoid() {
return autoid;
}
public void setAutoid(String autoid) {
this.autoid = autoid;
}
public Date getModifyDate() {
return modifyDate;
}
public void setModifyDate(Date modifyDate) {
this.modifyDate = modifyDate;
}
public BigDecimal getModifier() {
return modifier;
}
public void setModifier(BigDecimal modifier) {
this.modifier = modifier;
}
public BigDecimal getIsDelete() {
return isDelete;
}
public void setIsDelete(BigDecimal isDelete) {
this.isDelete = isDelete;
}
public BigDecimal getCreator() {
return creator;
}
public void setCreator(BigDecimal creator) {
this.creator = creator;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public String getFlightno() {
return flightno;
}
public void setFlightno(String flightno) {
this.flightno = flightno == null ? null : flightno.trim();
}
public Date getFlightdate() {
return flightdate;
}
public void setFlightdate(Date flightdate) {
this.flightdate = flightdate;
}
public String getOriginatingstation() {
return originatingstation;
}
public void setOriginatingstation(String originatingstation) {
this.originatingstation = originatingstation == null ? null : originatingstation.trim();
}
public String getDestinationstation() {
return destinationstation;
}
public void setDestinationstation(String destinationstation) {
this.destinationstation = destinationstation == null ? null : destinationstation.trim();
}
public String getAgentcompanycode() {
return agentcompanycode;
}
public void setAgentcompanycode(String agentcompanycode) {
this.agentcompanycode = agentcompanycode == null ? null : agentcompanycode.trim();
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status == null ? null : status.trim();
}
public String getCarrier() {
return carrier;
}
public void setCarrier(String carrier) {
this.carrier = carrier == null ? null : carrier.trim();
}
public String getCustomsstatus() {
return customsstatus;
}
public void setCustomsstatus(String customsstatus) {
this.customsstatus = customsstatus == null ? null : customsstatus.trim();
}
public String getPaymode() {
return paymode;
}
public void setPaymode(String paymode) {
this.paymode = paymode == null ? null : paymode.trim();
}
public String getSpecialgoodscode() {
return specialgoodscode;
}
public void setSpecialgoodscode(String specialgoodscode) {
this.specialgoodscode = specialgoodscode == null ? null : specialgoodscode.trim();
}
public String getCustomscode() {
return customscode;
}
public void setCustomscode(String customscode) {
this.customscode = customscode == null ? null : customscode.trim();
}
public String getAgentman() {
return agentman;
}
public void setAgentman(String agentman) {
this.agentman = agentman == null ? null : agentman.trim();
}
public String getAgentcompany() {
return agentcompany;
}
public void setAgentcompany(String agentcompany) {
this.agentcompany = agentcompany == null ? null : agentcompany.trim();
}
public String getReceiptinformation() {
return receiptinformation;
}
public void setReceiptinformation(String receiptinformation) {
this.receiptinformation = receiptinformation == null ? null : receiptinformation.trim();
}
public String getUnnumber() {
return unnumber;
}
public void setUnnumber(String unnumber) {
this.unnumber = unnumber == null ? null : unnumber.trim();
}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category == null ? null : category.trim();
}
public String getShCompany() {
return shCompany;
}
public void setShCompany(String shCompany) {
this.shCompany = shCompany == null ? null : shCompany.trim();
}
public String getShAddress() {
return shAddress;
}
public void setShAddress(String shAddress) {
this.shAddress = shAddress == null ? null : shAddress.trim();
}
public String getShZipcode() {
return shZipcode;
}
public void setShZipcode(String shZipcode) {
this.shZipcode = shZipcode == null ? null : shZipcode.trim();
}
public String getShCity() {
return shCity;
}
public void setShCity(String shCity) {
this.shCity = shCity == null ? null : shCity.trim();
}
public String getShDeltaname() {
return shDeltaname;
}
public void setShDeltaname(String shDeltaname) {
this.shDeltaname = shDeltaname == null ? null : shDeltaname.trim();
}
public String getShCountry() {
return shCountry;
}
public void setShCountry(String shCountry) {
this.shCountry = shCountry == null ? null : shCountry.trim();
}
public String getShTelephone() {
return shTelephone;
}
public void setShTelephone(String shTelephone) {
this.shTelephone = shTelephone == null ? null : shTelephone.trim();
}
public String getShFax() {
return shFax;
}
public void setShFax(String shFax) {
this.shFax = shFax == null ? null : shFax.trim();
}
public String getShName() {
return shName;
}
public void setShName(String shName) {
this.shName = shName == null ? null : shName.trim();
}
public String getCoCompany() {
return coCompany;
}
public void setCoCompany(String coCompany) {
this.coCompany = coCompany == null ? null : coCompany.trim();
}
public String getCoAddress() {
return coAddress;
}
public void setCoAddress(String coAddress) {
this.coAddress = coAddress == null ? null : coAddress.trim();
}
public String getCoZipcode() {
return coZipcode;
}
public void setCoZipcode(String coZipcode) {
this.coZipcode = coZipcode == null ? null : coZipcode.trim();
}
public String getCoCity() {
return coCity;
}
public void setCoCity(String coCity) {
this.coCity = coCity == null ? null : coCity.trim();
}
public String getCoDeltaname() {
return coDeltaname;
}
public void setCoDeltaname(String coDeltaname) {
this.coDeltaname = coDeltaname == null ? null : coDeltaname.trim();
}
public String getCoCountry() {
return coCountry;
}
public void setCoCountry(String coCountry) {
this.coCountry = coCountry == null ? null : coCountry.trim();
}
public String getCoTelephone() {
return coTelephone;
}
public void setCoTelephone(String coTelephone) {
this.coTelephone = coTelephone == null ? null : coTelephone.trim();
}
public String getCoFax() {
return coFax;
}
public void setCoFax(String coFax) {
this.coFax = coFax == null ? null : coFax.trim();
}
public String getCoName() {
return coName;
}
public void setCoName(String coName) {
this.coName = coName == null ? null : coName.trim();
}
public String getReachStation() {
return reachStation;
}
public void setReachStation(String reachStation) {
this.reachStation = reachStation == null ? null : reachStation.trim();
}
public String getCarrier1() {
return carrier1;
}
public void setCarrier1(String carrier1) {
this.carrier1 = carrier1 == null ? null : carrier1.trim();
}
public String getReachStation1() {
return reachStation1;
}
public void setReachStation1(String reachStation1) {
this.reachStation1 = reachStation1 == null ? null : reachStation1.trim();
}
public String getCarrier2() {
return carrier2;
}
public void setCarrier2(String carrier2) {
this.carrier2 = carrier2 == null ? null : carrier2.trim();
}
public String getReachStation2() {
return reachStation2;
}
public void setReachStation2(String reachStation2) {
this.reachStation2 = reachStation2 == null ? null : reachStation2.trim();
}
public String getNameOfgoods() {
return nameOfgoods;
}
public void setNameOfgoods(String nameOfgoods) {
this.nameOfgoods = nameOfgoods == null ? null : nameOfgoods.trim();
}
public String getDeliveryStation() {
return deliveryStation;
}
public void setDeliveryStation(String deliveryStation) {
this.deliveryStation = deliveryStation == null ? null : deliveryStation.trim();
}
public String getShProvincecode() {
return shProvincecode;
}
public void setShProvincecode(String shProvincecode) {
this.shProvincecode = shProvincecode == null ? null : shProvincecode.trim();
}
public String getShProvincename() {
return shProvincename;
}
public void setShProvincename(String shProvincename) {
this.shProvincename = shProvincename == null ? null : shProvincename.trim();
}
public String getDeNumber() {
return deNumber;
}
public void setDeNumber(String deNumber) {
this.deNumber = deNumber == null ? null : deNumber.trim();
}
public String getDeWeight() {
return deWeight;
}
public void setDeWeight(String deWeight) {
this.deWeight = deWeight == null ? null : deWeight.trim();
}
public String getDeChweight() {
return deChweight;
}
public void setDeChweight(String deChweight) {
this.deChweight = deChweight == null ? null : deChweight.trim();
}
public String getDeSize() {
return deSize;
}
public void setDeSize(String deSize) {
this.deSize = deSize == null ? null : deSize.trim();
}
public String getDeVolume() {
return deVolume;
}
public void setDeVolume(String deVolume) {
this.deVolume = deVolume == null ? null : deVolume.trim();
}
public String getDeType() {
return deType;
}
public void setDeType(String deType) {
this.deType = deType == null ? null : deType.trim();
}
public String getDeTrstation() {
return deTrstation;
}
public void setDeTrstation(String deTrstation) {
this.deTrstation = deTrstation == null ? null : deTrstation.trim();
}
public String getDePacking() {
return dePacking;
}
public void setDePacking(String dePacking) {
this.dePacking = dePacking == null ? null : dePacking.trim();
}
public String getDeRemarks() {
return deRemarks;
}
public void setDeRemarks(String deRemarks) {
this.deRemarks = deRemarks == null ? null : deRemarks.trim();
}
public Short getDeIds() {
return deIds;
}
public void setDeIds(Short deIds) {
this.deIds = deIds;
}
public String getResponseCode() {
return responseCode;
}
public void setResponseCode(String responseCode) {
this.responseCode = responseCode == null ? null : responseCode.trim();
}
public String getResponseText() {
return responseText;
}
public void setResponseText(String responseText) {
this.responseText = responseText == null ? null : responseText.trim();
}
public Short getSaveTime() {
return saveTime;
}
public void setSaveTime(Short saveTime) {
this.saveTime = saveTime;
}
public Short getUserId() {
return userId;
}
public void setUserId(Short userId) {
this.userId = userId;
}
public String getShpaeo() {
return shpaeo;
}
public void setShpaeo(String shpaeo) {
this.shpaeo = shpaeo == null ? null : shpaeo.trim();
}
public String getCneaeo() {
return cneaeo;
}
public void setCneaeo(String cneaeo) {
this.cneaeo = cneaeo == null ? null : cneaeo.trim();
}
public String getShpcusid() {
return shpcusid;
}
public void setShpcusid(String shpcusid) {
this.shpcusid = shpcusid == null ? null : shpcusid.trim();
}
public String getCnecusid() {
return cnecusid;
}
public void setCnecusid(String cnecusid) {
this.cnecusid = cnecusid == null ? null : cnecusid.trim();
}
public String getUnlodingcode() {
return unlodingcode;
}
public void setUnlodingcode(String unlodingcode) {
this.unlodingcode = unlodingcode == null ? null : unlodingcode.trim();
}
}
\ No newline at end of file
... ...
package com.tianbo.analysis.model;
import java.util.Date;
public class TALLYMASTER {
private String autoid;
private String waybillnomaster;
private String tcdName;
private String tcdTypecode;
private String talltype;
private String flightno;
private Date flightdate;
private String segment;
private String originatingstation;
private String oName;
private String destinationstation;
private String fdName;
private String totalweight;
private String totalgrossweightmeasureuc;
private String totalpiece;
private String tallytotalpiece;
private String tallytotalweight;
private String grossweightmeasureuc;
private Date loadstarttime;
private Date loadendtime;
private String status;
private String customscode;
private String productname;
private Date dischargedate;
private String receiptinformation;
private Date createdate;
private String dealFlag;
private String billTallyFlag;
private Date dealTime;
private String transportsplitdescription;
public String getAutoid() {
return autoid;
}
public void setAutoid(String autoid) {
this.autoid = autoid == null ? null : autoid.trim();
}
public String getWaybillnomaster() {
return waybillnomaster;
}
public void setWaybillnomaster(String waybillnomaster) {
this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim();
}
public String getTcdName() {
return tcdName;
}
public void setTcdName(String tcdName) {
this.tcdName = tcdName == null ? null : tcdName.trim();
}
public String getTcdTypecode() {
return tcdTypecode;
}
public void setTcdTypecode(String tcdTypecode) {
this.tcdTypecode = tcdTypecode == null ? null : tcdTypecode.trim();
}
public String getTalltype() {
return talltype;
}
public void setTalltype(String talltype) {
this.talltype = talltype == null ? null : talltype.trim();
}
public String getFlightno() {
return flightno;
}
public void setFlightno(String flightno) {
this.flightno = flightno == null ? null : flightno.trim();
}
public Date getFlightdate() {
return flightdate;
}
public void setFlightdate(Date flightdate) {
this.flightdate = flightdate;
}
public String getSegment() {
return segment;
}
public void setSegment(String segment) {
this.segment = segment == null ? null : segment.trim();
}
public String getOriginatingstation() {
return originatingstation;
}
public void setOriginatingstation(String originatingstation) {
this.originatingstation = originatingstation == null ? null : originatingstation.trim();
}
public String getoName() {
return oName;
}
public void setoName(String oName) {
this.oName = oName == null ? null : oName.trim();
}
public String getDestinationstation() {
return destinationstation;
}
public void setDestinationstation(String destinationstation) {
this.destinationstation = destinationstation == null ? null : destinationstation.trim();
}
public String getFdName() {
return fdName;
}
public void setFdName(String fdName) {
this.fdName = fdName == null ? null : fdName.trim();
}
public String getTotalweight() {
return totalweight;
}
public void setTotalweight(String totalweight) {
this.totalweight = totalweight == null ? null : totalweight.trim();
}
public String getTotalgrossweightmeasureuc() {
return totalgrossweightmeasureuc;
}
public void setTotalgrossweightmeasureuc(String totalgrossweightmeasureuc) {
this.totalgrossweightmeasureuc = totalgrossweightmeasureuc == null ? null : totalgrossweightmeasureuc.trim();
}
public String getTotalpiece() {
return totalpiece;
}
public void setTotalpiece(String totalpiece) {
this.totalpiece = totalpiece == null ? null : totalpiece.trim();
}
public String getTallytotalpiece() {
return tallytotalpiece;
}
public void setTallytotalpiece(String tallytotalpiece) {
this.tallytotalpiece = tallytotalpiece == null ? null : tallytotalpiece.trim();
}
public String getTallytotalweight() {
return tallytotalweight;
}
public void setTallytotalweight(String tallytotalweight) {
this.tallytotalweight = tallytotalweight == null ? null : tallytotalweight.trim();
}
public String getGrossweightmeasureuc() {
return grossweightmeasureuc;
}
public void setGrossweightmeasureuc(String grossweightmeasureuc) {
this.grossweightmeasureuc = grossweightmeasureuc == null ? null : grossweightmeasureuc.trim();
}
public Date getLoadstarttime() {
return loadstarttime;
}
public void setLoadstarttime(Date loadstarttime) {
this.loadstarttime = loadstarttime;
}
public Date getLoadendtime() {
return loadendtime;
}
public void setLoadendtime(Date loadendtime) {
this.loadendtime = loadendtime;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status == null ? null : status.trim();
}
public String getCustomscode() {
return customscode;
}
public void setCustomscode(String customscode) {
this.customscode = customscode == null ? null : customscode.trim();
}
public String getProductname() {
return productname;
}
public void setProductname(String productname) {
this.productname = productname == null ? null : productname.trim();
}
public Date getDischargedate() {
return dischargedate;
}
public void setDischargedate(Date dischargedate) {
this.dischargedate = dischargedate;
}
public String getReceiptinformation() {
return receiptinformation;
}
public void setReceiptinformation(String receiptinformation) {
this.receiptinformation = receiptinformation == null ? null : receiptinformation.trim();
}
public Date getCreatedate() {
return createdate;
}
public void setCreatedate(Date createdate) {
this.createdate = createdate;
}
public String getDealFlag() {
return dealFlag;
}
public void setDealFlag(String dealFlag) {
this.dealFlag = dealFlag == null ? null : dealFlag.trim();
}
public String getBillTallyFlag() {
return billTallyFlag;
}
public void setBillTallyFlag(String billTallyFlag) {
this.billTallyFlag = billTallyFlag == null ? null : billTallyFlag.trim();
}
public Date getDealTime() {
return dealTime;
}
public void setDealTime(Date dealTime) {
this.dealTime = dealTime;
}
public String getTransportsplitdescription() {
return transportsplitdescription;
}
public void setTransportsplitdescription(String transportsplitdescription) {
this.transportsplitdescription = transportsplitdescription == null ? null : transportsplitdescription.trim();
}
}
\ No newline at end of file
... ...
package com.tianbo.analysis.model;
import java.util.Date;
public class TALLYSECONDARY {
private String autoid;
private String waybillnomaster;
private String waybillnosecondary;
private String weight;
private String piece;
private String tallypiece;
private String tallyweight;
private String customscode;
private String productname;
private Date dischargedate;
private Date createdate;
private Date loadstarttime;
private Date loadendtime;
private String tallymasterid;
private String dealFlag;
private String billTallyFlag;
private Date dealTime;
private String status;
private String receiptinformation;
public String getAutoid() {
return autoid;
}
public void setAutoid(String autoid) {
this.autoid = autoid == null ? null : autoid.trim();
}
public String getWaybillnomaster() {
return waybillnomaster;
}
public void setWaybillnomaster(String waybillnomaster) {
this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim();
}
public String getWaybillnosecondary() {
return waybillnosecondary;
}
public void setWaybillnosecondary(String waybillnosecondary) {
this.waybillnosecondary = waybillnosecondary == null ? null : waybillnosecondary.trim();
}
public String getWeight() {
return weight;
}
public void setWeight(String weight) {
this.weight = weight == null ? null : weight.trim();
}
public String getPiece() {
return piece;
}
public void setPiece(String piece) {
this.piece = piece == null ? null : piece.trim();
}
public String getTallypiece() {
return tallypiece;
}
public void setTallypiece(String tallypiece) {
this.tallypiece = tallypiece == null ? null : tallypiece.trim();
}
public String getTallyweight() {
return tallyweight;
}
public void setTallyweight(String tallyweight) {
this.tallyweight = tallyweight == null ? null : tallyweight.trim();
}
public String getCustomscode() {
return customscode;
}
public void setCustomscode(String customscode) {
this.customscode = customscode == null ? null : customscode.trim();
}
public String getProductname() {
return productname;
}
public void setProductname(String productname) {
this.productname = productname == null ? null : productname.trim();
}
public Date getDischargedate() {
return dischargedate;
}
public void setDischargedate(Date dischargedate) {
this.dischargedate = dischargedate;
}
public Date getCreatedate() {
return createdate;
}
public void setCreatedate(Date createdate) {
this.createdate = createdate;
}
public Date getLoadstarttime() {
return loadstarttime;
}
public void setLoadstarttime(Date loadstarttime) {
this.loadstarttime = loadstarttime;
}
public Date getLoadendtime() {
return loadendtime;
}
public void setLoadendtime(Date loadendtime) {
this.loadendtime = loadendtime;
}
public String getTallymasterid() {
return tallymasterid;
}
public void setTallymasterid(String tallymasterid) {
this.tallymasterid = tallymasterid == null ? null : tallymasterid.trim();
}
public String getDealFlag() {
return dealFlag;
}
public void setDealFlag(String dealFlag) {
this.dealFlag = dealFlag == null ? null : dealFlag.trim();
}
public String getBillTallyFlag() {
return billTallyFlag;
}
public void setBillTallyFlag(String billTallyFlag) {
this.billTallyFlag = billTallyFlag == null ? null : billTallyFlag.trim();
}
public Date getDealTime() {
return dealTime;
}
public void setDealTime(Date dealTime) {
this.dealTime = dealTime;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status == null ? null : status.trim();
}
public String getReceiptinformation() {
return receiptinformation;
}
public void setReceiptinformation(String receiptinformation) {
this.receiptinformation = receiptinformation == null ? null : receiptinformation.trim();
}
}
\ No newline at end of file
... ...
package com.tianbo.analysis.service;
import com.tianbo.analysis.model.CustomReception;
/**
* @Auther: shenhl
* @Date: 2019/8/23 14:59
*/
public interface ARRIVEDMASTERService {
int insertRecept(CustomReception customReception);
}
... ...
package com.tianbo.analysis.service;
import com.tianbo.analysis.model.CustomReception;
/**
* @Auther: shenhl
* @Date: 2019/8/26 10:23
*/
public interface DEPARTURESLOADINGService {
int insertRecept(CustomReception customReception);
}
... ...
package com.tianbo.analysis.service;
import com.tianbo.analysis.model.CustomReception;
/**
* @Auther: shenhl
* @Date: 2019/8/26 15:29
*/
public interface PREPAREMASTERService {
int insertRecept(CustomReception customReception);
}
... ...
package com.tianbo.analysis.service;
import com.tianbo.analysis.model.CustomReception;
/**
* @Auther: shenhl
* @Date: 2019/8/23 17:16
*/
public interface TALLYMASTERService {
int insertRecept(CustomReception customReception, String mt);
}
... ...
package com.tianbo.analysis.service.imp;
import com.tianbo.analysis.dao.ARRIVEDMASTERMapper;
import com.tianbo.analysis.dao.ARRIVEDSECONDARYMapper;
import com.tianbo.analysis.model.ARRIVEDMASTER;
import com.tianbo.analysis.model.ARRIVEDSECONDARY;
import com.tianbo.analysis.model.CustomReception;
import com.tianbo.analysis.service.ARRIVEDMASTERService;
import com.tianbo.util.Date.DateUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;
/**
* @Auther: shenhl
* @Date: 2019/8/23 15:02
*/
@Service
@Slf4j
public class ARRIVEDMASTERServiceImp implements ARRIVEDMASTERService {
@Autowired
ARRIVEDMASTERMapper arrivedmasterMapper;
@Autowired
ARRIVEDSECONDARYMapper arrivedsecondaryMapper;
@Override
// 货物接收运抵主分单
public int insertRecept(CustomReception customReception) {
// 发送日志 插入
CoustomAnalysisServiceImp coustomAnalysisServiceImp = new CoustomAnalysisServiceImp();
// 主单号
String awbA = customReception.getWayBillMaster();
String awbH = customReception.getWayBillSecond();
//回执内容
String reception = customReception.getResponseText();
String flightDateStr = customReception.getFlightDate();
Date flightDate = DateUtil.formatByyyyyMMdd(flightDateStr);
// 设置 接收运抵分单 回执
ARRIVEDSECONDARY arrivedsecondary = new ARRIVEDSECONDARY();
arrivedsecondary.setReceiption(reception);
//设置主单回执、航班号、航班日期
ARRIVEDMASTER arrivedmaster = new ARRIVEDMASTER();
arrivedmaster.setReceiptinformation(reception);
arrivedmaster.setFlightno(customReception.getFlightNo());
arrivedmaster.setFlightdate(flightDate);
// 判断航班号 航班日期 是否为空
if (flightDate != null && customReception.getFlightNo() != null){
if (awbA!=null && awbA.length()>0){
StringBuffer stringBuffer = new StringBuffer(awbA);
stringBuffer.insert(3,"-");
awbA = stringBuffer.toString();
//设置主分单的 主单号
arrivedsecondary.setWaybillnomaster(awbA);
arrivedmaster.setWaybillnomaster(awbA);
}
//有分单号 更新分单
if(awbA!=null && awbA.length()>0 && awbH!=null && awbH.length()> 0){
//取分单号
String[] awbhArr = awbH.split("_");
String awbh = awbhArr[1];
arrivedsecondary.setWaybillnosecondary(awbh);
//更新分单回执
int i = arrivedsecondaryMapper.updateRECEIPTION(arrivedsecondary);
//获取分单autoid
List<ARRIVEDSECONDARY> arrivedsecondaryList = arrivedsecondaryMapper.selectAutoIdByawbAawbH(arrivedsecondary);
if(!arrivedsecondaryList.isEmpty()){
ARRIVEDSECONDARY arrivedSecond = arrivedsecondaryList.get(0);
String autoId = arrivedSecond.getAutoid();
//插入sendlog记录表
log.info("即将插入日志运单号为:"+awbH+"->autoid="+autoId);
int ii = coustomAnalysisServiceImp.insertSendlog("MT3201",reception,autoId);
if (i>0 && ii>0){
return 1;
}
}
return 0;
}
//处理主单格式,将海关回执的主单号58019316861,变为580-19316861
if (awbA!=null && awbA.length()>0){
//更新主单回执
int i = arrivedmasterMapper.updateRECEIPTION(arrivedmaster);
//获取分单autoid
List<ARRIVEDMASTER> arrivedmasterList = arrivedmasterMapper.selectAutoIdByAwb(arrivedmaster);
if(!arrivedmasterList.isEmpty()){
ARRIVEDMASTER originMaster = arrivedmasterList.get(0);
String autoId = originMaster.getAutoid();
//插入sendlog记录表
log.info("即将插入日志运单号为:"+awbA+"->autoid="+autoId);
int ii =coustomAnalysisServiceImp.insertSendlog("MT3201",reception,autoId);
if (i>0 && ii>0){
return 1;
}
}
return 0;
}
}else {
ShareServiceImp shareServiceImp = new ShareServiceImp();
return shareServiceImp.share("MT3201", customReception);
}
//未进入主分单解析 返回0 失败
return 0;
}
}
... ...
... ... @@ -35,81 +35,89 @@ public class CoustomAnalysisServiceImp implements CoustomAnalysisService {
String awbA = customReception.getWayBillMaster();
String awbH = customReception.getWayBillSecond();
//回执内容
// 回执内容
String reception = customReception.getResponseText();
String flightDateStr = customReception.getFlightDate();
Date flightDate = DateUtil.formatByyyyyMMdd(flightDateStr);
//设置分单回执
// 设置分单回执
Originmanifestsecondary originmanifestsecondary = new Originmanifestsecondary();
originmanifestsecondary.setReceiption(reception);
//设置主单回执、航班号、航班日期
// 设置主单回执、航班号、航班日期
ORIGINMANIFESTMASTER originmanifestmaster = new ORIGINMANIFESTMASTER();
originmanifestmaster.setReceiptinformation(reception);
originmanifestmaster.setFlightno(customReception.getFlightNo());
originmanifestmaster.setFlightDate(flightDate);
if (awbA!=null && awbA.length()>0){
StringBuffer stringBuffer = new StringBuffer(awbA);
stringBuffer.insert(3,"-");
awbA = stringBuffer.toString();
// 判断航班号 航班日期 是否为空
if (flightDate != null && customReception.getFlightNo() != null){
if (awbA!=null && awbA.length()>0){
StringBuffer stringBuffer = new StringBuffer(awbA);
stringBuffer.insert(3,"-");
awbA = stringBuffer.toString();
//设置主分单的 主单号
originmanifestsecondary.setWaybillnomaster(awbA);
originmanifestmaster.setWaybillnomaster(awbA);
}
//设置主分单的 主单号
originmanifestsecondary.setWaybillnomaster(awbA);
originmanifestmaster.setWaybillnomaster(awbA);
}
//有分单号 更新分单
if(awbA!=null && awbA.length()>0 && awbH!=null && awbH.length()> 0){
//取分单号
String[] awbhArr = awbH.split("_");
String awbh = awbhArr[1];
originmanifestsecondary.setWaybillnosecondary(awbh);
//更新分单回执
int i = originmanifestsecondaryMapper.updateRECEIPTION(originmanifestsecondary);
//获取分单autoid
List<Originmanifestsecondary> originmanifestsecondaryList = originmanifestsecondaryMapper.selectAutoIdByawbAawbH(originmanifestsecondary);
if(!originmanifestsecondaryList.isEmpty()){
Originmanifestsecondary originSecond = originmanifestsecondaryList.get(0);
String autoId = originSecond.getAutoid();
//插入sendlog记录表
log.info("即将插入日志运单号为:"+awbH+"->autoid="+autoId);
int ii = insertSendlog("MT1201",reception,autoId);
if (i>0 && ii>0){
return 1;
//有分单号 更新分单
if(awbA!=null && awbA.length()>0 && awbH!=null && awbH.length()> 0){
//取分单号
String[] awbhArr = awbH.split("_");
String awbh = awbhArr[1];
originmanifestsecondary.setWaybillnosecondary(awbh);
//更新分单回执
int i = originmanifestsecondaryMapper.updateRECEIPTION(originmanifestsecondary);
//获取分单autoid
List<Originmanifestsecondary> originmanifestsecondaryList = originmanifestsecondaryMapper.selectAutoIdByawbAawbH(originmanifestsecondary);
if(!originmanifestsecondaryList.isEmpty()){
Originmanifestsecondary originSecond = originmanifestsecondaryList.get(0);
String autoId = originSecond.getAutoid();
//插入sendlog记录表
log.info("即将插入日志运单号为:"+awbH+"->autoid="+autoId);
int ii = insertSendlog("MT1201",reception,autoId);
if (i>0 && ii>0){
return 1;
}
}
return 0;
}
return 0;
}
//处理主单格式,将海关回执的主单号58019316861,变为580-19316861
if (awbA!=null && awbA.length()>0){
//更新主单回执
int i = originmanifestmasterMapper.updateRECEIPTION(originmanifestmaster);
//获取分单autoid
List<ORIGINMANIFESTMASTER> originmanifestmasterList = originmanifestmasterMapper.selectAutoIdByAwb(originmanifestmaster);
if(!originmanifestmasterList.isEmpty()){
ORIGINMANIFESTMASTER originMaster = originmanifestmasterList.get(0);
String autoId = originMaster.getAutoid();
//插入sendlog记录表
log.info("即将插入日志运单号为:"+awbA+"->autoid="+autoId);
int ii =insertSendlog("MT1201",reception,autoId);
if (i>0 && ii>0){
return 1;
//处理主单格式,将海关回执的主单号58019316861,变为580-19316861
if (awbA!=null && awbA.length()>0){
//更新主单回执
int i = originmanifestmasterMapper.updateRECEIPTION(originmanifestmaster);
//获取分单autoid
List<ORIGINMANIFESTMASTER> originmanifestmasterList = originmanifestmasterMapper.selectAutoIdByAwb(originmanifestmaster);
if(!originmanifestmasterList.isEmpty()){
ORIGINMANIFESTMASTER originMaster = originmanifestmasterList.get(0);
String autoId = originMaster.getAutoid();
//插入sendlog记录表
log.info("即将插入日志运单号为:"+awbA+"->autoid="+autoId);
int ii =insertSendlog("MT1201",reception,autoId);
if (i>0 && ii>0){
return 1;
}
}
return 0;
}
return 0;
}else {
ShareServiceImp shareServiceImp = new ShareServiceImp();
return shareServiceImp.share("MT1201", customReception);
}
//未进入主分单解析 返回0 失败
return 0;
}
private int insertSendlog(String type,String reception,String autoId){
public int insertSendlog(String type,String reception,String autoId){
SENDLOG sendlog = new SENDLOG();
sendlog.setAutoid(Helper.getUUID());
sendlog.setCreatedate(new Date());
... ...
package com.tianbo.analysis.service.imp;
import com.tianbo.analysis.dao.DEPARTURESLOADINGMapper;
import com.tianbo.analysis.model.CustomReception;
import com.tianbo.analysis.model.DEPARTURESLOADING;
import com.tianbo.analysis.service.DEPARTURESLOADINGService;
import com.tianbo.util.Date.DateUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;
/**
* @Auther: shenhl
* @Date: 2019/8/26 10:24
*/
@Service
@Slf4j
public class DEPARTURESLOADINGServiceImp implements DEPARTURESLOADINGService{
@Autowired
DEPARTURESLOADINGMapper departuresloadingMapper;
@Override
public int insertRecept(CustomReception customReception) {
// 发送日志 插入
CoustomAnalysisServiceImp coustomAnalysisServiceImp = new CoustomAnalysisServiceImp();
// 主单号
String awbA = customReception.getWayBillMaster();
String awbH = customReception.getWayBillSecond();
//回执内容
String reception = customReception.getResponseText();
String flightDateStr = customReception.getFlightDate();
Date flightDate = DateUtil.formatByyyyyMMdd(flightDateStr);
//设置主单回执、航班号、航班日期
DEPARTURESLOADING departuresloading = new DEPARTURESLOADING();
departuresloading.setReceiption(reception);
departuresloading.setFlightno(customReception.getFlightNo());
departuresloading.setFlightdate(flightDate);
if (awbA!=null && awbA.length()>0){
StringBuffer stringBuffer = new StringBuffer(awbA);
stringBuffer.insert(3,"-");
awbA = stringBuffer.toString();
//设置主分单的 主单号
departuresloading.setWaybillno(awbA);
}
// 判断航班号 航班日期 是否为空
if (flightDate != null && customReception.getFlightNo() != null){
//处理主单格式,将海关回执的主单号58019316861,变为580-19316861
if (awbA!=null && awbA.length()>0){
//更新主单回执
int i = departuresloadingMapper.updateRECEIPTION(departuresloading);
//获取分单autoid
List<DEPARTURESLOADING> arrivedmasterList = departuresloadingMapper.selectAutoIdByAwb(departuresloading);
if(!arrivedmasterList.isEmpty()){
DEPARTURESLOADING departuresloading1 = arrivedmasterList.get(0);
String autoId = departuresloading1.getId();
//插入sendlog记录表
log.info("即将插入日志运单号为:"+awbA+"->autoid="+autoId);
int ii =coustomAnalysisServiceImp.insertSendlog("MT4201",reception,autoId);
if (i>0 && ii>0){
return 1;
}
}
return 0;
}
}else {
ShareServiceImp shareServiceImp = new ShareServiceImp();
return shareServiceImp.share("MT4201", customReception);
}
//未进入主分单解析 返回0 失败
return 0;
}
}
... ...
package com.tianbo.analysis.service.imp;
import com.tianbo.analysis.dao.PREPAREMASTERMapper;
import com.tianbo.analysis.dao.PREPARESECONDARYMapper;
import com.tianbo.analysis.model.CustomReception;
import com.tianbo.analysis.model.PREPAREMASTER;
import com.tianbo.analysis.model.PREPARESECONDARY;
import com.tianbo.analysis.service.PREPAREMASTERService;
import com.tianbo.util.Date.DateUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;
/**
* @Auther: shenhl
* @Date: 2019/8/26 15:29
*/
@Service
@Slf4j
public class PREPAREMASTERServiceImp implements PREPAREMASTERService {
@Autowired
PREPAREMASTERMapper preparemasterMapper;
@Autowired
PREPARESECONDARYMapper preparesecondaryMapper;
@Override
// 货物接收运抵主分单
public int insertRecept(CustomReception customReception) {
// 发送日志 插入
CoustomAnalysisServiceImp coustomAnalysisServiceImp = new CoustomAnalysisServiceImp();
// 主单号
String awbA = customReception.getWayBillMaster();
String awbH = customReception.getWayBillSecond();
//回执内容
String reception = customReception.getResponseText();
String flightDateStr = customReception.getFlightDate();
Date flightDate = DateUtil.formatByyyyyMMdd(flightDateStr);
// 设置 接收运抵分单 回执
PREPARESECONDARY preparesecondary = new PREPARESECONDARY();
preparesecondary.setReceiptinformation(reception);
//设置主单回执、航班号、航班日期
PREPAREMASTER preparemaster = new PREPAREMASTER();
preparemaster.setReceiptinformation(reception);
preparemaster.setFlightno(customReception.getFlightNo());
preparemaster.setFlightdate(flightDate);
if (awbA!=null && awbA.length()>0){
StringBuffer stringBuffer = new StringBuffer(awbA);
stringBuffer.insert(3,"-");
awbA = stringBuffer.toString();
//设置主分单的 主单号
preparesecondary.setWaybillnomaster(awbA);
preparemaster.setWaybillnomaster(awbA);
}
// 判断航班号 航班日期 是否为空
if (flightDate != null && customReception.getFlightNo() != null){
//有分单号 更新分单
if(awbA!=null && awbA.length()>0 && awbH!=null && awbH.length()> 0){
//取分单号
String[] awbhArr = awbH.split("_");
String awbh = awbhArr[1];
preparesecondary.setWaybillnosecondary(awbh);
//更新分单回执
int i = preparesecondaryMapper.updateRECEIPTION(preparesecondary);
//获取分单autoid
List<PREPARESECONDARY> arrivedsecondaryList = preparesecondaryMapper.selectAutoIdByawbAawbH(preparesecondary);
if(!arrivedsecondaryList.isEmpty()){
PREPARESECONDARY preparesecondary1 = arrivedsecondaryList.get(0);
String autoId = preparesecondary1.getAutoid();
//插入sendlog记录表
log.info("即将插入日志运单号为:"+awbH+"->autoid="+autoId);
int ii = coustomAnalysisServiceImp.insertSendlog("MT3201",reception,autoId);
if (i>0 && ii>0){
return 1;
}
}
return 0;
}
//处理主单格式,将海关回执的主单号58019316861,变为580-19316861
if (awbA!=null && awbA.length()>0){
//更新主单回执
int i = preparemasterMapper.updateRECEIPTION(preparemaster);
//获取分单autoid
List<PREPAREMASTER> arrivedmasterList = preparemasterMapper.selectAutoIdByAwb(preparemaster);
if(!arrivedmasterList.isEmpty()){
PREPAREMASTER originMaster = arrivedmasterList.get(0);
String autoId = originMaster.getAutoid();
//插入sendlog记录表
log.info("即将插入日志运单号为:"+awbA+"->autoid="+autoId);
int ii =coustomAnalysisServiceImp.insertSendlog("MT3201",reception,autoId);
if (i>0 && ii>0){
return 1;
}
}
return 0;
}
}else {
ShareServiceImp shareServiceImp = new ShareServiceImp();
return shareServiceImp.share("MT2201", customReception);
}
//未进入主分单解析 返回0 失败
return 0;
}
}
... ...
package com.tianbo.analysis.service.imp;
import com.tianbo.analysis.dao.*;
import com.tianbo.analysis.model.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* @Auther: shenhl
* @Date: 2019/8/26 17:15
*/
@Service
@Slf4j
/**
*
* 共享
*/
public class ShareServiceImp {
@Autowired
ARRIVEDMASTERMapper arrivedmasterMapper;
@Autowired
ARRIVEDSECONDARYMapper arrivedsecondaryMapper;
@Autowired
DEPARTURESLOADINGMapper departuresloadingMapper;
@Autowired
PREPAREMASTERMapper preparemasterMapper;
@Autowired
PREPARESECONDARYMapper preparesecondaryMapper;
@Autowired
TALLYMASTERMapper tallymasterMapper;
@Autowired
TALLYSECONDARYMapper tallysecondaryMapper;
@Autowired
ORIGINMANIFESTMASTERMapper originmanifestmasterMapper;
@Autowired
OriginmanifestsecondaryMapper originmanifestsecondaryMapper;
@Autowired
CUSTOMSMESSAGEMapper customsmessageMapper;
public int share(String type, CustomReception customReception){
// 发送日志 插入
CoustomAnalysisServiceImp coustomAnalysisServiceImp = new CoustomAnalysisServiceImp();
CUSTOMSMESSAGEWithBLOBs cus = customsmessageMapper.selectMessage(customReception.getMessageID());
switch (type){
case "MT9999":
return MT1201MT9999(customReception, cus, type);
case "MT3201":
// 判断 主单id 主单号是否为空
if (cus.getMasterautoid() != null && cus.getWaybillnomaster() != null){
String waybill = waybill(cus.getWaybillnomaster());
ARRIVEDMASTER arrivedmaster = new ARRIVEDMASTER();
arrivedmaster.setFlightno(cus.getFlightno());
arrivedmaster.setFlightdate(cus.getFlightdate());
arrivedmaster.setReceiptinformation(customReception.getResponseText());
arrivedmaster.setAutoid(cus.getMasterautoid());
arrivedmaster.setWaybillnomaster(waybill);
int i = arrivedmasterMapper.updateRECEIPTION(arrivedmaster);
//插入sendlog记录表
log.info("即将插入日志运单号为:"+waybill+"->autoid="+cus.getMasterautoid());
int ii = coustomAnalysisServiceImp.insertSendlog(type,customReception.getResponseText(),cus.getMasterautoid());
if (i > 0 && ii > 0){
return 1;
}
return 0;
}else {
// 分单
ARRIVEDSECONDARY arrivedsecondary = new ARRIVEDSECONDARY();
arrivedsecondary.setReceiption(customReception.getResponseText());
arrivedsecondary.setAutoid(cus.getSecondaryautoid());
arrivedsecondary.setWaybillnomaster(cus.getWaybillnomaster());
arrivedsecondary.setWaybillnosecondary(cus.getWaybillnosecondary());
int i = arrivedsecondaryMapper.updateRECEIPTION(arrivedsecondary);
//插入sendlog记录表
log.info("即将插入日志运单号为:"+cus.getWaybillnosecondary()+"->autoid="+cus.getSecondaryautoid());
int ii = coustomAnalysisServiceImp.insertSendlog(type,customReception.getResponseText(),cus.getSecondaryautoid());
if (i > 0 && ii > 0){
return 1;
}
}
case "MT5202":
return tallAWB_H(customReception, cus, type);
case "MT5201":
return tallAWB_H(customReception, cus, type);
case "MT4201":
String waybill = waybill(cus.getWaybillnomaster());
DEPARTURESLOADING departuresloading = new DEPARTURESLOADING();
departuresloading.setFlightno(cus.getFlightno());
departuresloading.setFlightdate(cus.getFlightdate());
departuresloading.setReceiption(customReception.getResponseText());
departuresloading.setId(cus.getMasterautoid());
departuresloading.setWaybillno(waybill);
int i = departuresloadingMapper.updateRECEIPTION(departuresloading);
//插入sendlog记录表
log.info("即将插入日志运单号为:"+waybill+"->autoid="+cus.getMasterautoid());
int ii = coustomAnalysisServiceImp.insertSendlog(type,customReception.getResponseText(),cus.getMasterautoid());
if (i > 0 && ii > 0){
return 1;
}
case "MT1201":
return MT1201MT9999(customReception, cus, type);
case "MT2201":
// 判断 主单id 主单号是否为空
if (cus.getMasterautoid() != null && cus.getWaybillnomaster() != null){
String waybill1 = waybill(cus.getWaybillnomaster());
PREPAREMASTER preparemaster = new PREPAREMASTER();
preparemaster.setFlightno(cus.getFlightno());
preparemaster.setFlightdate(cus.getFlightdate());
preparemaster.setReceiptinformation(customReception.getResponseText());
preparemaster.setAutoid(cus.getMasterautoid());
preparemaster.setWaybillnomaster(waybill1);
int i1 = preparemasterMapper.updateRECEIPTION(preparemaster);
//插入sendlog记录表
log.info("即将插入日志运单号为:"+waybill1+"->autoid="+cus.getMasterautoid());
int ii1 = coustomAnalysisServiceImp.insertSendlog(type,customReception.getResponseText(),cus.getMasterautoid());
if (i1 > 0 && ii1 > 0){
return 1;
}
return 0;
}else {
// 分单
PREPARESECONDARY preparesecondary = new PREPARESECONDARY();
preparesecondary.setReceiptinformation(customReception.getResponseText());
preparesecondary.setAutoid(cus.getSecondaryautoid());
preparesecondary.setWaybillnomaster(cus.getWaybillnomaster());
preparesecondary.setWaybillnosecondary(cus.getWaybillnosecondary());
int i1 = preparesecondaryMapper.updateRECEIPTION(preparesecondary);
//插入sendlog记录表
log.info("即将插入日志运单号为:"+cus.getWaybillnosecondary()+"->autoid="+cus.getSecondaryautoid());
int ii1 = coustomAnalysisServiceImp.insertSendlog(type,customReception.getResponseText(),cus.getSecondaryautoid());
if (i1 > 0 && ii1 > 0){
return 1;
}
}
}
return 0;
}
public String waybill (String waybill){
StringBuffer stringBuffer = new StringBuffer(waybill);
StringBuffer insert = stringBuffer.insert(3, "-");
return insert.toString();
}
// 主分单
public int tallAWB_H(CustomReception customReception, CUSTOMSMESSAGEWithBLOBs cus, String type){
// 发送日志 插入
CoustomAnalysisServiceImp coustomAnalysisServiceImp = new CoustomAnalysisServiceImp();
// 判断 主单id 主单号是否为空
if (cus.getMasterautoid() != null && cus.getWaybillnomaster() != null){
String waybill = waybill(cus.getWaybillnomaster());
TALLYMASTER tallymaster = new TALLYMASTER();
tallymaster.setFlightno(cus.getFlightno());
tallymaster.setFlightdate(cus.getFlightdate());
tallymaster.setReceiptinformation(customReception.getResponseText());
tallymaster.setAutoid(cus.getMasterautoid());
tallymaster.setWaybillnomaster(waybill);
int i = tallymasterMapper.updateRECEIPTION(tallymaster);
//插入sendlog记录表
log.info("即将插入日志运单号为:"+waybill+"->autoid="+cus.getMasterautoid());
int ii = coustomAnalysisServiceImp.insertSendlog(type,customReception.getResponseText(),cus.getMasterautoid());
if (i > 0 && ii > 0){
return 1;
}
return 0;
}else {
// 分单
TALLYSECONDARY tallysecondary = new TALLYSECONDARY();
tallysecondary.setReceiptinformation(customReception.getResponseText());
tallysecondary.setAutoid(cus.getSecondaryautoid());
tallysecondary.setWaybillnomaster(cus.getWaybillnomaster());
tallysecondary.setWaybillnosecondary(cus.getWaybillnosecondary());
int i = tallysecondaryMapper.updateRECEIPTION(tallysecondary);
//插入sendlog记录表
log.info("即将插入日志运单号为:"+cus.getWaybillnosecondary()+"->autoid="+cus.getSecondaryautoid());
int ii = coustomAnalysisServiceImp.insertSendlog(type,customReception.getResponseText(),cus.getSecondaryautoid());
if (i > 0 && ii > 0){
return 1;
}
return 0;
}
}
// MT9999 MT1201
public int MT1201MT9999(CustomReception customReception, CUSTOMSMESSAGEWithBLOBs cus, String type) {
// 发送日志 插入
CoustomAnalysisServiceImp coustomAnalysisServiceImp = new CoustomAnalysisServiceImp();
// 判断 主单id 主单号是否为空
if (cus.getMasterautoid() != null && cus.getWaybillnomaster() != null) {
String waybill = waybill(cus.getWaybillnomaster());
ORIGINMANIFESTMASTER or = new ORIGINMANIFESTMASTER();
or.setFlightno(cus.getFlightno());
or.setFlightDate(cus.getFlightdate());
or.setReceiptinformation(customReception.getResponseText());
or.setAutoid(cus.getMasterautoid());
or.setWaybillnomaster(waybill);
int i = originmanifestmasterMapper.updateRECEIPTION(or);
//插入sendlog记录表
log.info("即将插入日志运单号为:" + waybill + "->autoid=" + cus.getMasterautoid());
int ii = coustomAnalysisServiceImp.insertSendlog(type, customReception.getResponseText(), cus.getMasterautoid());
if (i > 0 && ii > 0) {
return 1;
}
return 0;
} else {
// 分单
Originmanifestsecondary or = new Originmanifestsecondary();
or.setReceiption(customReception.getResponseText());
or.setAutoid(cus.getSecondaryautoid());
or.setWaybillnomaster(cus.getWaybillnomaster());
or.setWaybillnosecondary(cus.getWaybillnosecondary());
int i = originmanifestsecondaryMapper.updateRECEIPTION(or);
//插入sendlog记录表
log.info("即将插入日志运单号为:" + cus.getWaybillnosecondary() + "->autoid=" + cus.getSecondaryautoid());
int ii = coustomAnalysisServiceImp.insertSendlog(type, customReception.getResponseText(), cus.getSecondaryautoid());
if (i > 0 && ii > 0) {
return 1;
}
return 0;
}
}
}
... ...
package com.tianbo.analysis.service.imp;
import com.tianbo.analysis.dao.TALLYMASTERMapper;
import com.tianbo.analysis.dao.TALLYSECONDARYMapper;
import com.tianbo.analysis.model.CustomReception;
import com.tianbo.analysis.model.TALLYMASTER;
import com.tianbo.analysis.model.TALLYSECONDARY;
import com.tianbo.analysis.service.TALLYMASTERService;
import com.tianbo.util.Date.DateUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;
/**
* @Auther: shenhl
* @Date: 2019/8/23 17:17
*/
@Service
@Slf4j
public class TALLYMASTERServiceImp implements TALLYMASTERService{
@Autowired
TALLYMASTERMapper tallymasterMapper;
@Autowired
TALLYSECONDARYMapper tallysecondaryMapper;
@Override
// 进出港理货
public int insertRecept(CustomReception customReception, String mt) {
// 发送日志 插入
CoustomAnalysisServiceImp coustomAnalysisServiceImp = new CoustomAnalysisServiceImp();
// 主单号
String awbA = customReception.getWayBillMaster();
String awbH = customReception.getWayBillSecond();
//回执内容
String reception = customReception.getResponseText();
String flightDateStr = customReception.getFlightDate();
Date flightDate = DateUtil.formatByyyyyMMdd(flightDateStr);
// 设置 进出港理货 回执
TALLYSECONDARY tallysecondary = new TALLYSECONDARY();
tallysecondary.setReceiptinformation(reception);
//设置进出港理货回执、航班号、航班日期
TALLYMASTER tallymaster = new TALLYMASTER();
tallymaster.setReceiptinformation(reception);
tallymaster.setFlightno(customReception.getFlightNo());
tallymaster.setFlightdate(flightDate);
// 判断航班号 航班日期 是否为空
if (flightDate != null && customReception.getFlightNo() != null){
if (awbA!=null && awbA.length()>0){
StringBuffer stringBuffer = new StringBuffer(awbA);
stringBuffer.insert(3,"-");
awbA = stringBuffer.toString();
//设置主分单的 主单号
tallysecondary.setWaybillnomaster(awbA);
tallymaster.setWaybillnomaster(awbA);
}
//有分单号 更新分单
if(awbA!=null && awbA.length()>0 && awbH!=null && awbH.length()> 0){
//取分单号
String[] awbhArr = awbH.split("_");
String awbh = awbhArr[1];
tallysecondary.setWaybillnosecondary(awbh);
//更新分单回执
int i = tallysecondaryMapper.updateRECEIPTION(tallysecondary);
//获取分单autoid
List<TALLYSECONDARY> tallysecondaryList = tallysecondaryMapper.selectAutoIdByawbAawbH(tallysecondary);
if(!tallysecondaryList.isEmpty()){
TALLYSECONDARY arrivedSecond = tallysecondaryList.get(0);
String autoId = arrivedSecond.getAutoid();
//插入sendlog记录表
log.info("即将插入日志运单号为:"+awbH+"->autoid="+autoId);
int ii = coustomAnalysisServiceImp.insertSendlog(mt,reception,autoId);
if (i>0 && ii>0){
return 1;
}
}
return 0;
}
//处理主单格式,将海关回执的主单号58019316861,变为580-19316861
if (awbA!=null && awbA.length()>0){
//更新主单回执
int i = tallymasterMapper.updateRECEIPTION(tallymaster);
//获取分单autoid
List<TALLYMASTER> arrivedmasterList = tallymasterMapper.selectAutoIdByAwb(tallymaster);
if(!arrivedmasterList.isEmpty()){
TALLYMASTER originMaster = arrivedmasterList.get(0);
String autoId = originMaster.getAutoid();
//插入sendlog记录表
log.info("即将插入日志运单号为:"+awbA+"->autoid="+autoId);
int ii =coustomAnalysisServiceImp.insertSendlog(mt,reception,autoId);
if (i>0 && ii>0){
return 1;
}
}
return 0;
}
}else {
ShareServiceImp shareServiceImp = new ShareServiceImp();
return shareServiceImp.share("MT5202", customReception);
}
//未进入主分单解析 返回0 失败
return 0;
}
}
... ...
... ... @@ -34,7 +34,7 @@ public class TaskAnalysis {
@Scheduled(fixedDelay = 20000)
@Scheduled(fixedDelay = 5000)
public void startTask(){
String today = DateUtil.getTodayBy_yyyyMMdd();
String readDir = receptDir + "/" + today;
... ...
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.tianbo.analysis.dao.ARRIVEDMASTERMapper" >
<resultMap id="BaseResultMap" type="com.tianbo.analysis.model.ARRIVEDMASTER" >
<id column="AUTOID" property="autoid" jdbcType="VARCHAR" />
<result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
<result column="TCD_NAME" property="tcdName" jdbcType="VARCHAR" />
<result column="TCD_TYPECODE" property="tcdTypecode" jdbcType="VARCHAR" />
<result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" />
<result column="FLIGHTDATE" property="flightdate" jdbcType="TIMESTAMP" />
<result column="CARRIER" property="carrier" jdbcType="VARCHAR" />
<result column="ORIGINATINGSTATION" property="originatingstation" jdbcType="VARCHAR" />
<result column="O_NAME" property="oName" jdbcType="VARCHAR" />
<result column="DESTINATIONSTATION" property="destinationstation" jdbcType="VARCHAR" />
<result column="FD_NAME" property="fdName" jdbcType="VARCHAR" />
<result column="ARRIVEDTOTALPIECE" property="arrivedtotalpiece" jdbcType="VARCHAR" />
<result column="TOTALPIECEQUANTITY" property="totalpiecequantity" jdbcType="VARCHAR" />
<result column="ARRIVEDTOTALWEIGHT" property="arrivedtotalweight" jdbcType="VARCHAR" />
<result column="GROSSWEIGHTMEASUREUC" property="grossweightmeasureuc" jdbcType="VARCHAR" />
<result column="TOTALGROSSWEIGHTMEASURE" property="totalgrossweightmeasure" jdbcType="VARCHAR" />
<result column="TOTALGROSSWEIGHTMEASUREUC" property="totalgrossweightmeasureuc" jdbcType="VARCHAR" />
<result column="CHARGEABLEWEIGHTMEASURE" property="chargeableweightmeasure" jdbcType="VARCHAR" />
<result column="CHARGEABLEWEIGHTMEASUREUC" property="chargeableweightmeasureuc" jdbcType="VARCHAR" />
<result column="ARRIVEDDATE" property="arriveddate" jdbcType="TIMESTAMP" />
<result column="TRANSPORTSPLITDESCRIPTION" property="transportsplitdescription" jdbcType="VARCHAR" />
<result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" />
<result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" />
<result column="STATUS" property="status" jdbcType="VARCHAR" />
<result column="RECEIPTINFORMATION" property="receiptinformation" jdbcType="VARCHAR" />
<result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
</resultMap>
<sql id="Base_Column_List" >
AUTOID, WAYBILLNOMASTER, TCD_NAME, TCD_TYPECODE, FLIGHTNO, FLIGHTDATE, CARRIER, ORIGINATINGSTATION,
O_NAME, DESTINATIONSTATION, FD_NAME, ARRIVEDTOTALPIECE, TOTALPIECEQUANTITY, ARRIVEDTOTALWEIGHT,
GROSSWEIGHTMEASUREUC, TOTALGROSSWEIGHTMEASURE, TOTALGROSSWEIGHTMEASUREUC, CHARGEABLEWEIGHTMEASURE,
CHARGEABLEWEIGHTMEASUREUC, ARRIVEDDATE, TRANSPORTSPLITDESCRIPTION, CUSTOMSCODE, PRODUCTNAME,
STATUS, RECEIPTINFORMATION, CREATEDATE
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from ARRIVEDMASTER
where AUTOID = #{autoid,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from ARRIVEDMASTER
where AUTOID = #{autoid,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" >
insert into ARRIVEDMASTER (AUTOID, WAYBILLNOMASTER, TCD_NAME,
TCD_TYPECODE, FLIGHTNO, FLIGHTDATE,
CARRIER, ORIGINATINGSTATION, O_NAME,
DESTINATIONSTATION, FD_NAME, ARRIVEDTOTALPIECE,
TOTALPIECEQUANTITY, ARRIVEDTOTALWEIGHT,
GROSSWEIGHTMEASUREUC, TOTALGROSSWEIGHTMEASURE,
TOTALGROSSWEIGHTMEASUREUC, CHARGEABLEWEIGHTMEASURE,
CHARGEABLEWEIGHTMEASUREUC, ARRIVEDDATE,
TRANSPORTSPLITDESCRIPTION, CUSTOMSCODE,
PRODUCTNAME, STATUS, RECEIPTINFORMATION,
CREATEDATE)
values (#{autoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{tcdName,jdbcType=VARCHAR},
#{tcdTypecode,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=TIMESTAMP},
#{carrier,jdbcType=VARCHAR}, #{originatingstation,jdbcType=VARCHAR}, #{oName,jdbcType=VARCHAR},
#{destinationstation,jdbcType=VARCHAR}, #{fdName,jdbcType=VARCHAR}, #{arrivedtotalpiece,jdbcType=VARCHAR},
#{totalpiecequantity,jdbcType=VARCHAR}, #{arrivedtotalweight,jdbcType=VARCHAR},
#{grossweightmeasureuc,jdbcType=VARCHAR}, #{totalgrossweightmeasure,jdbcType=VARCHAR},
#{totalgrossweightmeasureuc,jdbcType=VARCHAR}, #{chargeableweightmeasure,jdbcType=VARCHAR},
#{chargeableweightmeasureuc,jdbcType=VARCHAR}, #{arriveddate,jdbcType=TIMESTAMP},
#{transportsplitdescription,jdbcType=VARCHAR}, #{customscode,jdbcType=VARCHAR},
#{productname,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{receiptinformation,jdbcType=VARCHAR},
#{createdate,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" >
insert into ARRIVEDMASTER
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="autoid != null" >
AUTOID,
</if>
<if test="waybillnomaster != null" >
WAYBILLNOMASTER,
</if>
<if test="tcdName != null" >
TCD_NAME,
</if>
<if test="tcdTypecode != null" >
TCD_TYPECODE,
</if>
<if test="flightno != null" >
FLIGHTNO,
</if>
<if test="flightdate != null" >
FLIGHTDATE,
</if>
<if test="carrier != null" >
CARRIER,
</if>
<if test="originatingstation != null" >
ORIGINATINGSTATION,
</if>
<if test="oName != null" >
O_NAME,
</if>
<if test="destinationstation != null" >
DESTINATIONSTATION,
</if>
<if test="fdName != null" >
FD_NAME,
</if>
<if test="arrivedtotalpiece != null" >
ARRIVEDTOTALPIECE,
</if>
<if test="totalpiecequantity != null" >
TOTALPIECEQUANTITY,
</if>
<if test="arrivedtotalweight != null" >
ARRIVEDTOTALWEIGHT,
</if>
<if test="grossweightmeasureuc != null" >
GROSSWEIGHTMEASUREUC,
</if>
<if test="totalgrossweightmeasure != null" >
TOTALGROSSWEIGHTMEASURE,
</if>
<if test="totalgrossweightmeasureuc != null" >
TOTALGROSSWEIGHTMEASUREUC,
</if>
<if test="chargeableweightmeasure != null" >
CHARGEABLEWEIGHTMEASURE,
</if>
<if test="chargeableweightmeasureuc != null" >
CHARGEABLEWEIGHTMEASUREUC,
</if>
<if test="arriveddate != null" >
ARRIVEDDATE,
</if>
<if test="transportsplitdescription != null" >
TRANSPORTSPLITDESCRIPTION,
</if>
<if test="customscode != null" >
CUSTOMSCODE,
</if>
<if test="productname != null" >
PRODUCTNAME,
</if>
<if test="status != null" >
STATUS,
</if>
<if test="receiptinformation != null" >
RECEIPTINFORMATION,
</if>
<if test="createdate != null" >
CREATEDATE,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="autoid != null" >
#{autoid,jdbcType=VARCHAR},
</if>
<if test="waybillnomaster != null" >
#{waybillnomaster,jdbcType=VARCHAR},
</if>
<if test="tcdName != null" >
#{tcdName,jdbcType=VARCHAR},
</if>
<if test="tcdTypecode != null" >
#{tcdTypecode,jdbcType=VARCHAR},
</if>
<if test="flightno != null" >
#{flightno,jdbcType=VARCHAR},
</if>
<if test="flightdate != null" >
#{flightdate,jdbcType=TIMESTAMP},
</if>
<if test="carrier != null" >
#{carrier,jdbcType=VARCHAR},
</if>
<if test="originatingstation != null" >
#{originatingstation,jdbcType=VARCHAR},
</if>
<if test="oName != null" >
#{oName,jdbcType=VARCHAR},
</if>
<if test="destinationstation != null" >
#{destinationstation,jdbcType=VARCHAR},
</if>
<if test="fdName != null" >
#{fdName,jdbcType=VARCHAR},
</if>
<if test="arrivedtotalpiece != null" >
#{arrivedtotalpiece,jdbcType=VARCHAR},
</if>
<if test="totalpiecequantity != null" >
#{totalpiecequantity,jdbcType=VARCHAR},
</if>
<if test="arrivedtotalweight != null" >
#{arrivedtotalweight,jdbcType=VARCHAR},
</if>
<if test="grossweightmeasureuc != null" >
#{grossweightmeasureuc,jdbcType=VARCHAR},
</if>
<if test="totalgrossweightmeasure != null" >
#{totalgrossweightmeasure,jdbcType=VARCHAR},
</if>
<if test="totalgrossweightmeasureuc != null" >
#{totalgrossweightmeasureuc,jdbcType=VARCHAR},
</if>
<if test="chargeableweightmeasure != null" >
#{chargeableweightmeasure,jdbcType=VARCHAR},
</if>
<if test="chargeableweightmeasureuc != null" >
#{chargeableweightmeasureuc,jdbcType=VARCHAR},
</if>
<if test="arriveddate != null" >
#{arriveddate,jdbcType=TIMESTAMP},
</if>
<if test="transportsplitdescription != null" >
#{transportsplitdescription,jdbcType=VARCHAR},
</if>
<if test="customscode != null" >
#{customscode,jdbcType=VARCHAR},
</if>
<if test="productname != null" >
#{productname,jdbcType=VARCHAR},
</if>
<if test="status != null" >
#{status,jdbcType=VARCHAR},
</if>
<if test="receiptinformation != null" >
#{receiptinformation,jdbcType=VARCHAR},
</if>
<if test="createdate != null" >
#{createdate,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" >
update ARRIVEDMASTER
<set >
<if test="waybillnomaster != null" >
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR},
</if>
<if test="tcdName != null" >
TCD_NAME = #{tcdName,jdbcType=VARCHAR},
</if>
<if test="tcdTypecode != null" >
TCD_TYPECODE = #{tcdTypecode,jdbcType=VARCHAR},
</if>
<if test="flightno != null" >
FLIGHTNO = #{flightno,jdbcType=VARCHAR},
</if>
<if test="flightdate != null" >
FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP},
</if>
<if test="carrier != null" >
CARRIER = #{carrier,jdbcType=VARCHAR},
</if>
<if test="originatingstation != null" >
ORIGINATINGSTATION = #{originatingstation,jdbcType=VARCHAR},
</if>
<if test="oName != null" >
O_NAME = #{oName,jdbcType=VARCHAR},
</if>
<if test="destinationstation != null" >
DESTINATIONSTATION = #{destinationstation,jdbcType=VARCHAR},
</if>
<if test="fdName != null" >
FD_NAME = #{fdName,jdbcType=VARCHAR},
</if>
<if test="arrivedtotalpiece != null" >
ARRIVEDTOTALPIECE = #{arrivedtotalpiece,jdbcType=VARCHAR},
</if>
<if test="totalpiecequantity != null" >
TOTALPIECEQUANTITY = #{totalpiecequantity,jdbcType=VARCHAR},
</if>
<if test="arrivedtotalweight != null" >
ARRIVEDTOTALWEIGHT = #{arrivedtotalweight,jdbcType=VARCHAR},
</if>
<if test="grossweightmeasureuc != null" >
GROSSWEIGHTMEASUREUC = #{grossweightmeasureuc,jdbcType=VARCHAR},
</if>
<if test="totalgrossweightmeasure != null" >
TOTALGROSSWEIGHTMEASURE = #{totalgrossweightmeasure,jdbcType=VARCHAR},
</if>
<if test="totalgrossweightmeasureuc != null" >
TOTALGROSSWEIGHTMEASUREUC = #{totalgrossweightmeasureuc,jdbcType=VARCHAR},
</if>
<if test="chargeableweightmeasure != null" >
CHARGEABLEWEIGHTMEASURE = #{chargeableweightmeasure,jdbcType=VARCHAR},
</if>
<if test="chargeableweightmeasureuc != null" >
CHARGEABLEWEIGHTMEASUREUC = #{chargeableweightmeasureuc,jdbcType=VARCHAR},
</if>
<if test="arriveddate != null" >
ARRIVEDDATE = #{arriveddate,jdbcType=TIMESTAMP},
</if>
<if test="transportsplitdescription != null" >
TRANSPORTSPLITDESCRIPTION = #{transportsplitdescription,jdbcType=VARCHAR},
</if>
<if test="customscode != null" >
CUSTOMSCODE = #{customscode,jdbcType=VARCHAR},
</if>
<if test="productname != null" >
PRODUCTNAME = #{productname,jdbcType=VARCHAR},
</if>
<if test="status != null" >
STATUS = #{status,jdbcType=VARCHAR},
</if>
<if test="receiptinformation != null" >
RECEIPTINFORMATION = #{receiptinformation,jdbcType=VARCHAR},
</if>
<if test="createdate != null" >
CREATEDATE = #{createdate,jdbcType=TIMESTAMP},
</if>
</set>
where AUTOID = #{autoid,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" >
update ARRIVEDMASTER
set WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR},
TCD_NAME = #{tcdName,jdbcType=VARCHAR},
TCD_TYPECODE = #{tcdTypecode,jdbcType=VARCHAR},
FLIGHTNO = #{flightno,jdbcType=VARCHAR},
FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP},
CARRIER = #{carrier,jdbcType=VARCHAR},
ORIGINATINGSTATION = #{originatingstation,jdbcType=VARCHAR},
O_NAME = #{oName,jdbcType=VARCHAR},
DESTINATIONSTATION = #{destinationstation,jdbcType=VARCHAR},
FD_NAME = #{fdName,jdbcType=VARCHAR},
ARRIVEDTOTALPIECE = #{arrivedtotalpiece,jdbcType=VARCHAR},
TOTALPIECEQUANTITY = #{totalpiecequantity,jdbcType=VARCHAR},
ARRIVEDTOTALWEIGHT = #{arrivedtotalweight,jdbcType=VARCHAR},
GROSSWEIGHTMEASUREUC = #{grossweightmeasureuc,jdbcType=VARCHAR},
TOTALGROSSWEIGHTMEASURE = #{totalgrossweightmeasure,jdbcType=VARCHAR},
TOTALGROSSWEIGHTMEASUREUC = #{totalgrossweightmeasureuc,jdbcType=VARCHAR},
CHARGEABLEWEIGHTMEASURE = #{chargeableweightmeasure,jdbcType=VARCHAR},
CHARGEABLEWEIGHTMEASUREUC = #{chargeableweightmeasureuc,jdbcType=VARCHAR},
ARRIVEDDATE = #{arriveddate,jdbcType=TIMESTAMP},
TRANSPORTSPLITDESCRIPTION = #{transportsplitdescription,jdbcType=VARCHAR},
CUSTOMSCODE = #{customscode,jdbcType=VARCHAR},
PRODUCTNAME = #{productname,jdbcType=VARCHAR},
STATUS = #{status,jdbcType=VARCHAR},
RECEIPTINFORMATION = #{receiptinformation,jdbcType=VARCHAR},
CREATEDATE = #{createdate,jdbcType=TIMESTAMP}
where AUTOID = #{autoid,jdbcType=VARCHAR}
</update>
<update id="updateRECEIPTION" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" >
UPDATE ARRIVEDMASTER
SET RECEIPTINFORMATION= #{receiptinformation,jdbcType=VARCHAR}
WHERE WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
AND
FLIGHTDATE= #{flightDate,jdbcType=TIMESTAMP}
AND
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
</update>
<select id="selectAutoIdByAwb" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" resultType="com.tianbo.analysis.model.ARRIVEDMASTER">
SELECT AUTOID
FROM ARRIVEDMASTER
WHERE
FLIGHTNO= #{flightno,jdbcType=VARCHAR}
AND
FLIGHTDATE= #{flightDate,jdbcType=TIMESTAMP}
AND
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
</select>
</mapper>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.tianbo.analysis.dao.ARRIVEDSECONDARYMapper" >
<resultMap id="BaseResultMap" type="com.tianbo.analysis.model.ARRIVEDSECONDARY" >
<result column="AUTOID" property="autoid" jdbcType="VARCHAR" />
<result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
<result column="TCD_NAME" property="tcdName" jdbcType="VARCHAR" />
<result column="TCD_TYPECODE" property="tcdTypecode" jdbcType="VARCHAR" />
<result column="WAYBILLNOSECONDARY" property="waybillnosecondary" jdbcType="VARCHAR" />
<result column="CARRIER" property="carrier" jdbcType="VARCHAR" />
<result column="O_ID" property="oId" jdbcType="VARCHAR" />
<result column="O_NAME" property="oName" jdbcType="VARCHAR" />
<result column="FD_ID" property="fdId" jdbcType="VARCHAR" />
<result column="FD_NAME" property="fdName" jdbcType="VARCHAR" />
<result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" />
<result column="FLIGHTDATE" property="flightdate" jdbcType="TIMESTAMP" />
<result column="ARRIVEDTOTALPIECE" property="arrivedtotalpiece" jdbcType="VARCHAR" />
<result column="TOTALPIECEQUANTITY" property="totalpiecequantity" jdbcType="VARCHAR" />
<result column="ARRIVEDTOTALWEIGHT" property="arrivedtotalweight" jdbcType="VARCHAR" />
<result column="GROSSWEIGHTMEASUREUC" property="grossweightmeasureuc" jdbcType="VARCHAR" />
<result column="TOTALGROSSWEIGHTMEASURE" property="totalgrossweightmeasure" jdbcType="VARCHAR" />
<result column="TOTALGROSSWEIGHTMEASUREUC" property="totalgrossweightmeasureuc" jdbcType="VARCHAR" />
<result column="CHARGEABLEWEIGHTMEASURE" property="chargeableweightmeasure" jdbcType="VARCHAR" />
<result column="CHARGEABLEWEIGHTMEASUREUC" property="chargeableweightmeasureuc" jdbcType="VARCHAR" />
<result column="ARRIVEDDATE" property="arriveddate" jdbcType="TIMESTAMP" />
<result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" />
<result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" />
<result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
<result column="ARRIVEDMASTERID" property="arrivedmasterid" jdbcType="VARCHAR" />
<result column="TRANSPORTSPLITDESCRIPTION" property="transportsplitdescription" jdbcType="VARCHAR" />
<result column="RECEIPTION" property="receiption" jdbcType="VARCHAR" />
<result column="STATUS" property="status" jdbcType="VARCHAR" />
</resultMap>
<insert id="insert" parameterType="com.tianbo.analysis.model.ARRIVEDSECONDARY" >
insert into ARRIVEDSECONDARY (AUTOID, WAYBILLNOMASTER, TCD_NAME,
TCD_TYPECODE, WAYBILLNOSECONDARY, CARRIER,
O_ID, O_NAME, FD_ID, FD_NAME,
FLIGHTNO, FLIGHTDATE, ARRIVEDTOTALPIECE,
TOTALPIECEQUANTITY, ARRIVEDTOTALWEIGHT,
GROSSWEIGHTMEASUREUC, TOTALGROSSWEIGHTMEASURE,
TOTALGROSSWEIGHTMEASUREUC, CHARGEABLEWEIGHTMEASURE,
CHARGEABLEWEIGHTMEASUREUC, ARRIVEDDATE,
CUSTOMSCODE, PRODUCTNAME, CREATEDATE,
ARRIVEDMASTERID, TRANSPORTSPLITDESCRIPTION,
RECEIPTION, STATUS)
values (#{autoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{tcdName,jdbcType=VARCHAR},
#{tcdTypecode,jdbcType=VARCHAR}, #{waybillnosecondary,jdbcType=VARCHAR}, #{carrier,jdbcType=VARCHAR},
#{oId,jdbcType=VARCHAR}, #{oName,jdbcType=VARCHAR}, #{fdId,jdbcType=VARCHAR}, #{fdName,jdbcType=VARCHAR},
#{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=TIMESTAMP}, #{arrivedtotalpiece,jdbcType=VARCHAR},
#{totalpiecequantity,jdbcType=VARCHAR}, #{arrivedtotalweight,jdbcType=VARCHAR},
#{grossweightmeasureuc,jdbcType=VARCHAR}, #{totalgrossweightmeasure,jdbcType=VARCHAR},
#{totalgrossweightmeasureuc,jdbcType=VARCHAR}, #{chargeableweightmeasure,jdbcType=VARCHAR},
#{chargeableweightmeasureuc,jdbcType=VARCHAR}, #{arriveddate,jdbcType=TIMESTAMP},
#{customscode,jdbcType=VARCHAR}, #{productname,jdbcType=VARCHAR}, #{createdate,jdbcType=TIMESTAMP},
#{arrivedmasterid,jdbcType=VARCHAR}, #{transportsplitdescription,jdbcType=VARCHAR},
#{receiption,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.tianbo.analysis.model.ARRIVEDSECONDARY" >
insert into ARRIVEDSECONDARY
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="autoid != null" >
AUTOID,
</if>
<if test="waybillnomaster != null" >
WAYBILLNOMASTER,
</if>
<if test="tcdName != null" >
TCD_NAME,
</if>
<if test="tcdTypecode != null" >
TCD_TYPECODE,
</if>
<if test="waybillnosecondary != null" >
WAYBILLNOSECONDARY,
</if>
<if test="carrier != null" >
CARRIER,
</if>
<if test="oId != null" >
O_ID,
</if>
<if test="oName != null" >
O_NAME,
</if>
<if test="fdId != null" >
FD_ID,
</if>
<if test="fdName != null" >
FD_NAME,
</if>
<if test="flightno != null" >
FLIGHTNO,
</if>
<if test="flightdate != null" >
FLIGHTDATE,
</if>
<if test="arrivedtotalpiece != null" >
ARRIVEDTOTALPIECE,
</if>
<if test="totalpiecequantity != null" >
TOTALPIECEQUANTITY,
</if>
<if test="arrivedtotalweight != null" >
ARRIVEDTOTALWEIGHT,
</if>
<if test="grossweightmeasureuc != null" >
GROSSWEIGHTMEASUREUC,
</if>
<if test="totalgrossweightmeasure != null" >
TOTALGROSSWEIGHTMEASURE,
</if>
<if test="totalgrossweightmeasureuc != null" >
TOTALGROSSWEIGHTMEASUREUC,
</if>
<if test="chargeableweightmeasure != null" >
CHARGEABLEWEIGHTMEASURE,
</if>
<if test="chargeableweightmeasureuc != null" >
CHARGEABLEWEIGHTMEASUREUC,
</if>
<if test="arriveddate != null" >
ARRIVEDDATE,
</if>
<if test="customscode != null" >
CUSTOMSCODE,
</if>
<if test="productname != null" >
PRODUCTNAME,
</if>
<if test="createdate != null" >
CREATEDATE,
</if>
<if test="arrivedmasterid != null" >
ARRIVEDMASTERID,
</if>
<if test="transportsplitdescription != null" >
TRANSPORTSPLITDESCRIPTION,
</if>
<if test="receiption != null" >
RECEIPTION,
</if>
<if test="status != null" >
STATUS,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="autoid != null" >
#{autoid,jdbcType=VARCHAR},
</if>
<if test="waybillnomaster != null" >
#{waybillnomaster,jdbcType=VARCHAR},
</if>
<if test="tcdName != null" >
#{tcdName,jdbcType=VARCHAR},
</if>
<if test="tcdTypecode != null" >
#{tcdTypecode,jdbcType=VARCHAR},
</if>
<if test="waybillnosecondary != null" >
#{waybillnosecondary,jdbcType=VARCHAR},
</if>
<if test="carrier != null" >
#{carrier,jdbcType=VARCHAR},
</if>
<if test="oId != null" >
#{oId,jdbcType=VARCHAR},
</if>
<if test="oName != null" >
#{oName,jdbcType=VARCHAR},
</if>
<if test="fdId != null" >
#{fdId,jdbcType=VARCHAR},
</if>
<if test="fdName != null" >
#{fdName,jdbcType=VARCHAR},
</if>
<if test="flightno != null" >
#{flightno,jdbcType=VARCHAR},
</if>
<if test="flightdate != null" >
#{flightdate,jdbcType=TIMESTAMP},
</if>
<if test="arrivedtotalpiece != null" >
#{arrivedtotalpiece,jdbcType=VARCHAR},
</if>
<if test="totalpiecequantity != null" >
#{totalpiecequantity,jdbcType=VARCHAR},
</if>
<if test="arrivedtotalweight != null" >
#{arrivedtotalweight,jdbcType=VARCHAR},
</if>
<if test="grossweightmeasureuc != null" >
#{grossweightmeasureuc,jdbcType=VARCHAR},
</if>
<if test="totalgrossweightmeasure != null" >
#{totalgrossweightmeasure,jdbcType=VARCHAR},
</if>
<if test="totalgrossweightmeasureuc != null" >
#{totalgrossweightmeasureuc,jdbcType=VARCHAR},
</if>
<if test="chargeableweightmeasure != null" >
#{chargeableweightmeasure,jdbcType=VARCHAR},
</if>
<if test="chargeableweightmeasureuc != null" >
#{chargeableweightmeasureuc,jdbcType=VARCHAR},
</if>
<if test="arriveddate != null" >
#{arriveddate,jdbcType=TIMESTAMP},
</if>
<if test="customscode != null" >
#{customscode,jdbcType=VARCHAR},
</if>
<if test="productname != null" >
#{productname,jdbcType=VARCHAR},
</if>
<if test="createdate != null" >
#{createdate,jdbcType=TIMESTAMP},
</if>
<if test="arrivedmasterid != null" >
#{arrivedmasterid,jdbcType=VARCHAR},
</if>
<if test="transportsplitdescription != null" >
#{transportsplitdescription,jdbcType=VARCHAR},
</if>
<if test="receiption != null" >
#{receiption,jdbcType=VARCHAR},
</if>
<if test="status != null" >
#{status,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateRECEIPTION" parameterType="com.tianbo.analysis.model.ARRIVEDSECONDARY" >
UPDATE ARRIVEDSECONDARY
SET RECEIPTION= #{receiption,jdbcType=VARCHAR}
WHERE WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
AND WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}
</update>
<select id="selectAutoIdByawbAawbH" parameterType="com.tianbo.analysis.model.ARRIVEDSECONDARY" resultType="com.tianbo.analysis.model.ARRIVEDSECONDARY">
SELECT AUTOID
FROM ARRIVEDSECONDARY
WHERE
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR} AND WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}
</select>
</mapper>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.tianbo.analysis.dao.CUSTOMSMESSAGEMapper" >
<resultMap id="BaseResultMap" type="com.tianbo.analysis.model.CUSTOMSMESSAGE" >
<result column="AUTOID" property="autoid" jdbcType="VARCHAR" />
<result column="MESSAGEID" property="messageid" jdbcType="VARCHAR" />
<result column="MESSAGETYPE" property="messagetype" jdbcType="VARCHAR" />
<result column="MESSAGESTATUS" property="messagestatus" jdbcType="VARCHAR" />
<result column="SENDTIME" property="sendtime" jdbcType="TIMESTAMP" />
<result column="RECEIVETIME" property="receivetime" jdbcType="TIMESTAMP" />
<result column="OBJECTID" property="objectid" jdbcType="VARCHAR" />
<result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" />
<result column="FLIGHTDATE" property="flightdate" jdbcType="TIMESTAMP" />
<result column="MASTERAUTOID" property="masterautoid" jdbcType="VARCHAR" />
<result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
<result column="SECONDARYAUTOID" property="secondaryautoid" jdbcType="VARCHAR" />
<result column="WAYBILLNOSECONDARY" property="waybillnosecondary" jdbcType="VARCHAR" />
<result column="PCS" property="pcs" jdbcType="DECIMAL" />
<result column="WT" property="wt" jdbcType="DECIMAL" />
<result column="RESPONSECODE" property="responsecode" jdbcType="VARCHAR" />
<result column="RESPONSETEXT" property="responsetext" jdbcType="VARCHAR" />
<result column="CREATETIME" property="createtime" jdbcType="TIMESTAMP" />
</resultMap>
<resultMap id="ResultMapWithBLOBs" type="com.tianbo.analysis.model.CUSTOMSMESSAGEWithBLOBs" extends="BaseResultMap" >
<result column="MESSAGECONTENT" property="messagecontent" jdbcType="CLOB" />
<result column="RECEIVECONTENT" property="receivecontent" jdbcType="CLOB" />
</resultMap>
<sql id="Blob_Column_List" >
MESSAGECONTENT, RECEIVECONTENT
</sql>
<insert id="insert" parameterType="com.tianbo.analysis.model.CUSTOMSMESSAGEWithBLOBs" >
insert into CUSTOMSMESSAGE (AUTOID, MESSAGEID, MESSAGETYPE,
MESSAGESTATUS, SENDTIME, RECEIVETIME,
OBJECTID, FLIGHTNO, FLIGHTDATE,
MASTERAUTOID, WAYBILLNOMASTER, SECONDARYAUTOID,
WAYBILLNOSECONDARY, PCS, WT,
RESPONSECODE, RESPONSETEXT, CREATETIME,
MESSAGECONTENT, RECEIVECONTENT)
values (#{autoid,jdbcType=VARCHAR}, #{messageid,jdbcType=VARCHAR}, #{messagetype,jdbcType=VARCHAR},
#{messagestatus,jdbcType=VARCHAR}, #{sendtime,jdbcType=TIMESTAMP}, #{receivetime,jdbcType=TIMESTAMP},
#{objectid,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=TIMESTAMP},
#{masterautoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{secondaryautoid,jdbcType=VARCHAR},
#{waybillnosecondary,jdbcType=VARCHAR}, #{pcs,jdbcType=DECIMAL}, #{wt,jdbcType=DECIMAL},
#{responsecode,jdbcType=VARCHAR}, #{responsetext,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP},
#{messagecontent,jdbcType=CLOB}, #{receivecontent,jdbcType=CLOB})
</insert>
<insert id="insertSelective" parameterType="com.tianbo.analysis.model.CUSTOMSMESSAGEWithBLOBs" >
insert into CUSTOMSMESSAGE
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="autoid != null" >
AUTOID,
</if>
<if test="messageid != null" >
MESSAGEID,
</if>
<if test="messagetype != null" >
MESSAGETYPE,
</if>
<if test="messagestatus != null" >
MESSAGESTATUS,
</if>
<if test="sendtime != null" >
SENDTIME,
</if>
<if test="receivetime != null" >
RECEIVETIME,
</if>
<if test="objectid != null" >
OBJECTID,
</if>
<if test="flightno != null" >
FLIGHTNO,
</if>
<if test="flightdate != null" >
FLIGHTDATE,
</if>
<if test="masterautoid != null" >
MASTERAUTOID,
</if>
<if test="waybillnomaster != null" >
WAYBILLNOMASTER,
</if>
<if test="secondaryautoid != null" >
SECONDARYAUTOID,
</if>
<if test="waybillnosecondary != null" >
WAYBILLNOSECONDARY,
</if>
<if test="pcs != null" >
PCS,
</if>
<if test="wt != null" >
WT,
</if>
<if test="responsecode != null" >
RESPONSECODE,
</if>
<if test="responsetext != null" >
RESPONSETEXT,
</if>
<if test="createtime != null" >
CREATETIME,
</if>
<if test="messagecontent != null" >
MESSAGECONTENT,
</if>
<if test="receivecontent != null" >
RECEIVECONTENT,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="autoid != null" >
#{autoid,jdbcType=VARCHAR},
</if>
<if test="messageid != null" >
#{messageid,jdbcType=VARCHAR},
</if>
<if test="messagetype != null" >
#{messagetype,jdbcType=VARCHAR},
</if>
<if test="messagestatus != null" >
#{messagestatus,jdbcType=VARCHAR},
</if>
<if test="sendtime != null" >
#{sendtime,jdbcType=TIMESTAMP},
</if>
<if test="receivetime != null" >
#{receivetime,jdbcType=TIMESTAMP},
</if>
<if test="objectid != null" >
#{objectid,jdbcType=VARCHAR},
</if>
<if test="flightno != null" >
#{flightno,jdbcType=VARCHAR},
</if>
<if test="flightdate != null" >
#{flightdate,jdbcType=TIMESTAMP},
</if>
<if test="masterautoid != null" >
#{masterautoid,jdbcType=VARCHAR},
</if>
<if test="waybillnomaster != null" >
#{waybillnomaster,jdbcType=VARCHAR},
</if>
<if test="secondaryautoid != null" >
#{secondaryautoid,jdbcType=VARCHAR},
</if>
<if test="waybillnosecondary != null" >
#{waybillnosecondary,jdbcType=VARCHAR},
</if>
<if test="pcs != null" >
#{pcs,jdbcType=DECIMAL},
</if>
<if test="wt != null" >
#{wt,jdbcType=DECIMAL},
</if>
<if test="responsecode != null" >
#{responsecode,jdbcType=VARCHAR},
</if>
<if test="responsetext != null" >
#{responsetext,jdbcType=VARCHAR},
</if>
<if test="createtime != null" >
#{createtime,jdbcType=TIMESTAMP},
</if>
<if test="messagecontent != null" >
#{messagecontent,jdbcType=CLOB},
</if>
<if test="receivecontent != null" >
#{receivecontent,jdbcType=CLOB},
</if>
</trim>
</insert>
<select id="selectMessage" parameterType="string" resultType="com.tianbo.analysis.model.CUSTOMSMESSAGEWithBLOBs">
select * from CUSTOMSMESSAGE where MESSAGEID = #{value}
</select>
</mapper>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.tianbo.analysis.dao.DEPARTURESLOADINGMapper" >
<resultMap id="BaseResultMap" type="com.tianbo.analysis.model.DEPARTURESLOADING" >
<result column="ID" property="id" jdbcType="VARCHAR" />
<result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
<result column="WAYBILLNO" property="waybillno" jdbcType="VARCHAR" />
<result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" />
<result column="FLIGHTDATE" property="flightdate" jdbcType="TIMESTAMP" />
<result column="ORIGINATINGSTATION" property="originatingstation" jdbcType="VARCHAR" />
<result column="DESTINATIONSTATION" property="destinationstation" jdbcType="VARCHAR" />
<result column="STOWAGEPIECES" property="stowagepieces" jdbcType="VARCHAR" />
<result column="STOWAGEWEIGHT" property="stowageweight" jdbcType="VARCHAR" />
<result column="WAYBILLPIECES" property="waybillpieces" jdbcType="VARCHAR" />
<result column="WAYBILLWEIGHT" property="waybillweight" jdbcType="VARCHAR" />
<result column="STOWAGEDATE" property="stowagedate" jdbcType="TIMESTAMP" />
<result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" />
<result column="SPECIALCODE" property="specialcode" jdbcType="VARCHAR" />
<result column="CUSTOMS" property="customs" jdbcType="VARCHAR" />
<result column="RECEIPTION" property="receiption" jdbcType="VARCHAR" />
<result column="STATUS" property="status" jdbcType="VARCHAR" />
</resultMap>
<insert id="insert" parameterType="com.tianbo.analysis.model.DEPARTURESLOADING" >
insert into DEPARTURESLOADING (ID, CREATEDATE, WAYBILLNO,
FLIGHTNO, FLIGHTDATE, ORIGINATINGSTATION,
DESTINATIONSTATION, STOWAGEPIECES, STOWAGEWEIGHT,
WAYBILLPIECES, WAYBILLWEIGHT, STOWAGEDATE,
PRODUCTNAME, SPECIALCODE, CUSTOMS,
RECEIPTION, STATUS)
values (#{id,jdbcType=VARCHAR}, #{createdate,jdbcType=TIMESTAMP}, #{waybillno,jdbcType=VARCHAR},
#{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=TIMESTAMP}, #{originatingstation,jdbcType=VARCHAR},
#{destinationstation,jdbcType=VARCHAR}, #{stowagepieces,jdbcType=VARCHAR}, #{stowageweight,jdbcType=VARCHAR},
#{waybillpieces,jdbcType=VARCHAR}, #{waybillweight,jdbcType=VARCHAR}, #{stowagedate,jdbcType=TIMESTAMP},
#{productname,jdbcType=VARCHAR}, #{specialcode,jdbcType=VARCHAR}, #{customs,jdbcType=VARCHAR},
#{receiption,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.tianbo.analysis.model.DEPARTURESLOADING" >
insert into DEPARTURESLOADING
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
ID,
</if>
<if test="createdate != null" >
CREATEDATE,
</if>
<if test="waybillno != null" >
WAYBILLNO,
</if>
<if test="flightno != null" >
FLIGHTNO,
</if>
<if test="flightdate != null" >
FLIGHTDATE,
</if>
<if test="originatingstation != null" >
ORIGINATINGSTATION,
</if>
<if test="destinationstation != null" >
DESTINATIONSTATION,
</if>
<if test="stowagepieces != null" >
STOWAGEPIECES,
</if>
<if test="stowageweight != null" >
STOWAGEWEIGHT,
</if>
<if test="waybillpieces != null" >
WAYBILLPIECES,
</if>
<if test="waybillweight != null" >
WAYBILLWEIGHT,
</if>
<if test="stowagedate != null" >
STOWAGEDATE,
</if>
<if test="productname != null" >
PRODUCTNAME,
</if>
<if test="specialcode != null" >
SPECIALCODE,
</if>
<if test="customs != null" >
CUSTOMS,
</if>
<if test="receiption != null" >
RECEIPTION,
</if>
<if test="status != null" >
STATUS,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=VARCHAR},
</if>
<if test="createdate != null" >
#{createdate,jdbcType=TIMESTAMP},
</if>
<if test="waybillno != null" >
#{waybillno,jdbcType=VARCHAR},
</if>
<if test="flightno != null" >
#{flightno,jdbcType=VARCHAR},
</if>
<if test="flightdate != null" >
#{flightdate,jdbcType=TIMESTAMP},
</if>
<if test="originatingstation != null" >
#{originatingstation,jdbcType=VARCHAR},
</if>
<if test="destinationstation != null" >
#{destinationstation,jdbcType=VARCHAR},
</if>
<if test="stowagepieces != null" >
#{stowagepieces,jdbcType=VARCHAR},
</if>
<if test="stowageweight != null" >
#{stowageweight,jdbcType=VARCHAR},
</if>
<if test="waybillpieces != null" >
#{waybillpieces,jdbcType=VARCHAR},
</if>
<if test="waybillweight != null" >
#{waybillweight,jdbcType=VARCHAR},
</if>
<if test="stowagedate != null" >
#{stowagedate,jdbcType=TIMESTAMP},
</if>
<if test="productname != null" >
#{productname,jdbcType=VARCHAR},
</if>
<if test="specialcode != null" >
#{specialcode,jdbcType=VARCHAR},
</if>
<if test="customs != null" >
#{customs,jdbcType=VARCHAR},
</if>
<if test="receiption != null" >
#{receiption,jdbcType=VARCHAR},
</if>
<if test="status != null" >
#{status,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateRECEIPTION" parameterType="com.tianbo.analysis.model.DEPARTURESLOADING" >
UPDATE DEPARTURESLOADING
SET RECEIPTINO= #{receiptino,jdbcType=VARCHAR}
WHERE WAYBILLNO = #{waybillno,jdbcType=VARCHAR}
AND
FLIGHTDATE= #{flightDate,jdbcType=TIMESTAMP}
AND
WAYBILLNO = #{waybillno,jdbcType=VARCHAR}
</update>
<select id="selectAutoIdByAwb" parameterType="com.tianbo.analysis.model.DEPARTURESLOADING" resultType="com.tianbo.analysis.model.DEPARTURESLOADING">
SELECT AUTOID
FROM DEPARTURESLOADING
WHERE
FLIGHTNO= #{flightno,jdbcType=VARCHAR}
AND
FLIGHTDATE= #{flightDate,jdbcType=TIMESTAMP}
AND
WAYBILLNO = #{waybillno,jdbcType=VARCHAR}
</select>
</mapper>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.tianbo.analysis.dao.PREPAREMASTERMapper" >
<resultMap id="BaseResultMap" type="com.tianbo.analysis.model.PREPAREMASTER" >
<result column="AUTOID" property="autoid" jdbcType="VARCHAR" />
<result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" />
<result column="FLIGHTDATE" property="flightdate" jdbcType="TIMESTAMP" />
<result column="ORIGINATINGSTATION" property="originatingstation" jdbcType="VARCHAR" />
<result column="DESTINATIONSTATION" property="destinationstation" jdbcType="VARCHAR" />
<result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
<result column="TOTALWEIGHT" property="totalweight" jdbcType="VARCHAR" />
<result column="TOTALPIECE" property="totalpiece" jdbcType="VARCHAR" />
<result column="PREPARETOTALPIECE" property="preparetotalpiece" jdbcType="VARCHAR" />
<result column="PREPARETOTALWEIGHT" property="preparetotalweight" jdbcType="VARCHAR" />
<result column="STOWAGEDATE" property="stowagedate" jdbcType="TIMESTAMP" />
<result column="STATUS" property="status" jdbcType="VARCHAR" />
<result column="CARRIER" property="carrier" jdbcType="VARCHAR" />
<result column="CUSTOMSSTATUS" property="customsstatus" jdbcType="VARCHAR" />
<result column="PAYMODE" property="paymode" jdbcType="VARCHAR" />
<result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" />
<result column="AGENTCODE" property="agentcode" jdbcType="VARCHAR" />
<result column="AGENTNAME" property="agentname" jdbcType="VARCHAR" />
<result column="SHIPPERNAME" property="shippername" jdbcType="VARCHAR" />
<result column="SHIPPERCITY" property="shippercity" jdbcType="VARCHAR" />
<result column="SHIPPERADDRESS" property="shipperaddress" jdbcType="VARCHAR" />
<result column="CONSIGNEENAME" property="consigneename" jdbcType="VARCHAR" />
<result column="CONSIGNEECITY" property="consigneecity" jdbcType="VARCHAR" />
<result column="CONSIGNEEADDRESS" property="consigneeaddress" jdbcType="VARCHAR" />
<result column="RECEIPTINFORMATION" property="receiptinformation" jdbcType="VARCHAR" />
<result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
<result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" />
<result column="SHIPPER_CODE" property="shipperCode" jdbcType="VARCHAR" />
<result column="SHIPPER_COUNTRYCODE" property="shipperCountrycode" jdbcType="VARCHAR" />
<result column="SHIPPER_PHONE" property="shipperPhone" jdbcType="VARCHAR" />
<result column="SHIPPER_FAX" property="shipperFax" jdbcType="VARCHAR" />
<result column="CONSIGNEE_CODE" property="consigneeCode" jdbcType="VARCHAR" />
<result column="CONSIGNEE_COUNTRYCODE" property="consigneeCountrycode" jdbcType="VARCHAR" />
<result column="CONSIGNEE_FAX" property="consigneeFax" jdbcType="VARCHAR" />
<result column="CONSIGNEE_PHONE" property="consigneePhone" jdbcType="VARCHAR" />
<result column="SHIPPER_AEO" property="shipperAeo" jdbcType="VARCHAR" />
<result column="CONSIGNEE_AEO" property="consigneeAeo" jdbcType="VARCHAR" />
<result column="UNLOADINGSTATION" property="unloadingstation" jdbcType="VARCHAR" />
</resultMap>
<insert id="insert" parameterType="com.tianbo.analysis.model.PREPAREMASTER" >
insert into PREPAREMASTER (AUTOID, FLIGHTNO, FLIGHTDATE,
ORIGINATINGSTATION, DESTINATIONSTATION,
WAYBILLNOMASTER, TOTALWEIGHT, TOTALPIECE,
PREPARETOTALPIECE, PREPARETOTALWEIGHT,
STOWAGEDATE, STATUS, CARRIER,
CUSTOMSSTATUS, PAYMODE, CUSTOMSCODE,
AGENTCODE, AGENTNAME, SHIPPERNAME,
SHIPPERCITY, SHIPPERADDRESS, CONSIGNEENAME,
CONSIGNEECITY, CONSIGNEEADDRESS, RECEIPTINFORMATION,
CREATEDATE, PRODUCTNAME, SHIPPER_CODE,
SHIPPER_COUNTRYCODE, SHIPPER_PHONE, SHIPPER_FAX,
CONSIGNEE_CODE, CONSIGNEE_COUNTRYCODE, CONSIGNEE_FAX,
CONSIGNEE_PHONE, SHIPPER_AEO, CONSIGNEE_AEO,
UNLOADINGSTATION)
values (#{autoid,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=TIMESTAMP},
#{originatingstation,jdbcType=VARCHAR}, #{destinationstation,jdbcType=VARCHAR},
#{waybillnomaster,jdbcType=VARCHAR}, #{totalweight,jdbcType=VARCHAR}, #{totalpiece,jdbcType=VARCHAR},
#{preparetotalpiece,jdbcType=VARCHAR}, #{preparetotalweight,jdbcType=VARCHAR},
#{stowagedate,jdbcType=TIMESTAMP}, #{status,jdbcType=VARCHAR}, #{carrier,jdbcType=VARCHAR},
#{customsstatus,jdbcType=VARCHAR}, #{paymode,jdbcType=VARCHAR}, #{customscode,jdbcType=VARCHAR},
#{agentcode,jdbcType=VARCHAR}, #{agentname,jdbcType=VARCHAR}, #{shippername,jdbcType=VARCHAR},
#{shippercity,jdbcType=VARCHAR}, #{shipperaddress,jdbcType=VARCHAR}, #{consigneename,jdbcType=VARCHAR},
#{consigneecity,jdbcType=VARCHAR}, #{consigneeaddress,jdbcType=VARCHAR}, #{receiptinformation,jdbcType=VARCHAR},
#{createdate,jdbcType=TIMESTAMP}, #{productname,jdbcType=VARCHAR}, #{shipperCode,jdbcType=VARCHAR},
#{shipperCountrycode,jdbcType=VARCHAR}, #{shipperPhone,jdbcType=VARCHAR}, #{shipperFax,jdbcType=VARCHAR},
#{consigneeCode,jdbcType=VARCHAR}, #{consigneeCountrycode,jdbcType=VARCHAR}, #{consigneeFax,jdbcType=VARCHAR},
#{consigneePhone,jdbcType=VARCHAR}, #{shipperAeo,jdbcType=VARCHAR}, #{consigneeAeo,jdbcType=VARCHAR},
#{unloadingstation,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.tianbo.analysis.model.PREPAREMASTER" >
insert into PREPAREMASTER
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="autoid != null" >
AUTOID,
</if>
<if test="flightno != null" >
FLIGHTNO,
</if>
<if test="flightdate != null" >
FLIGHTDATE,
</if>
<if test="originatingstation != null" >
ORIGINATINGSTATION,
</if>
<if test="destinationstation != null" >
DESTINATIONSTATION,
</if>
<if test="waybillnomaster != null" >
WAYBILLNOMASTER,
</if>
<if test="totalweight != null" >
TOTALWEIGHT,
</if>
<if test="totalpiece != null" >
TOTALPIECE,
</if>
<if test="preparetotalpiece != null" >
PREPARETOTALPIECE,
</if>
<if test="preparetotalweight != null" >
PREPARETOTALWEIGHT,
</if>
<if test="stowagedate != null" >
STOWAGEDATE,
</if>
<if test="status != null" >
STATUS,
</if>
<if test="carrier != null" >
CARRIER,
</if>
<if test="customsstatus != null" >
CUSTOMSSTATUS,
</if>
<if test="paymode != null" >
PAYMODE,
</if>
<if test="customscode != null" >
CUSTOMSCODE,
</if>
<if test="agentcode != null" >
AGENTCODE,
</if>
<if test="agentname != null" >
AGENTNAME,
</if>
<if test="shippername != null" >
SHIPPERNAME,
</if>
<if test="shippercity != null" >
SHIPPERCITY,
</if>
<if test="shipperaddress != null" >
SHIPPERADDRESS,
</if>
<if test="consigneename != null" >
CONSIGNEENAME,
</if>
<if test="consigneecity != null" >
CONSIGNEECITY,
</if>
<if test="consigneeaddress != null" >
CONSIGNEEADDRESS,
</if>
<if test="receiptinformation != null" >
RECEIPTINFORMATION,
</if>
<if test="createdate != null" >
CREATEDATE,
</if>
<if test="productname != null" >
PRODUCTNAME,
</if>
<if test="shipperCode != null" >
SHIPPER_CODE,
</if>
<if test="shipperCountrycode != null" >
SHIPPER_COUNTRYCODE,
</if>
<if test="shipperPhone != null" >
SHIPPER_PHONE,
</if>
<if test="shipperFax != null" >
SHIPPER_FAX,
</if>
<if test="consigneeCode != null" >
CONSIGNEE_CODE,
</if>
<if test="consigneeCountrycode != null" >
CONSIGNEE_COUNTRYCODE,
</if>
<if test="consigneeFax != null" >
CONSIGNEE_FAX,
</if>
<if test="consigneePhone != null" >
CONSIGNEE_PHONE,
</if>
<if test="shipperAeo != null" >
SHIPPER_AEO,
</if>
<if test="consigneeAeo != null" >
CONSIGNEE_AEO,
</if>
<if test="unloadingstation != null" >
UNLOADINGSTATION,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="autoid != null" >
#{autoid,jdbcType=VARCHAR},
</if>
<if test="flightno != null" >
#{flightno,jdbcType=VARCHAR},
</if>
<if test="flightdate != null" >
#{flightdate,jdbcType=TIMESTAMP},
</if>
<if test="originatingstation != null" >
#{originatingstation,jdbcType=VARCHAR},
</if>
<if test="destinationstation != null" >
#{destinationstation,jdbcType=VARCHAR},
</if>
<if test="waybillnomaster != null" >
#{waybillnomaster,jdbcType=VARCHAR},
</if>
<if test="totalweight != null" >
#{totalweight,jdbcType=VARCHAR},
</if>
<if test="totalpiece != null" >
#{totalpiece,jdbcType=VARCHAR},
</if>
<if test="preparetotalpiece != null" >
#{preparetotalpiece,jdbcType=VARCHAR},
</if>
<if test="preparetotalweight != null" >
#{preparetotalweight,jdbcType=VARCHAR},
</if>
<if test="stowagedate != null" >
#{stowagedate,jdbcType=TIMESTAMP},
</if>
<if test="status != null" >
#{status,jdbcType=VARCHAR},
</if>
<if test="carrier != null" >
#{carrier,jdbcType=VARCHAR},
</if>
<if test="customsstatus != null" >
#{customsstatus,jdbcType=VARCHAR},
</if>
<if test="paymode != null" >
#{paymode,jdbcType=VARCHAR},
</if>
<if test="customscode != null" >
#{customscode,jdbcType=VARCHAR},
</if>
<if test="agentcode != null" >
#{agentcode,jdbcType=VARCHAR},
</if>
<if test="agentname != null" >
#{agentname,jdbcType=VARCHAR},
</if>
<if test="shippername != null" >
#{shippername,jdbcType=VARCHAR},
</if>
<if test="shippercity != null" >
#{shippercity,jdbcType=VARCHAR},
</if>
<if test="shipperaddress != null" >
#{shipperaddress,jdbcType=VARCHAR},
</if>
<if test="consigneename != null" >
#{consigneename,jdbcType=VARCHAR},
</if>
<if test="consigneecity != null" >
#{consigneecity,jdbcType=VARCHAR},
</if>
<if test="consigneeaddress != null" >
#{consigneeaddress,jdbcType=VARCHAR},
</if>
<if test="receiptinformation != null" >
#{receiptinformation,jdbcType=VARCHAR},
</if>
<if test="createdate != null" >
#{createdate,jdbcType=TIMESTAMP},
</if>
<if test="productname != null" >
#{productname,jdbcType=VARCHAR},
</if>
<if test="shipperCode != null" >
#{shipperCode,jdbcType=VARCHAR},
</if>
<if test="shipperCountrycode != null" >
#{shipperCountrycode,jdbcType=VARCHAR},
</if>
<if test="shipperPhone != null" >
#{shipperPhone,jdbcType=VARCHAR},
</if>
<if test="shipperFax != null" >
#{shipperFax,jdbcType=VARCHAR},
</if>
<if test="consigneeCode != null" >
#{consigneeCode,jdbcType=VARCHAR},
</if>
<if test="consigneeCountrycode != null" >
#{consigneeCountrycode,jdbcType=VARCHAR},
</if>
<if test="consigneeFax != null" >
#{consigneeFax,jdbcType=VARCHAR},
</if>
<if test="consigneePhone != null" >
#{consigneePhone,jdbcType=VARCHAR},
</if>
<if test="shipperAeo != null" >
#{shipperAeo,jdbcType=VARCHAR},
</if>
<if test="consigneeAeo != null" >
#{consigneeAeo,jdbcType=VARCHAR},
</if>
<if test="unloadingstation != null" >
#{unloadingstation,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateRECEIPTION" parameterType="com.tianbo.analysis.model.PREPAREMASTER" >
UPDATE PREPAREMASTER
SET RECEIPTINFORMATION= #{receiptinformation,jdbcType=VARCHAR}
WHERE WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
AND
FLIGHTDATE= #{flightDate,jdbcType=TIMESTAMP}
AND
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
</update>
<select id="selectAutoIdByAwb" parameterType="com.tianbo.analysis.model.PREPAREMASTER" resultType="com.tianbo.analysis.model.PREPAREMASTER">
SELECT AUTOID
FROM PREPAREMASTER
WHERE
FLIGHTNO= #{flightno,jdbcType=VARCHAR}
AND
FLIGHTDATE= #{flightDate,jdbcType=TIMESTAMP}
AND
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
</select>
</mapper>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.tianbo.analysis.dao.PREPARESECONDARYMapper">
<resultMap id="BaseResultMap" type="com.tianbo.analysis.model.PREPARESECONDARY">
<id column="ID" jdbcType="DECIMAL" property="id" />
<result column="WAYBILLNOMASTER" jdbcType="VARCHAR" property="waybillnomaster" />
<result column="WAYBILLNOSECONDARY" jdbcType="VARCHAR" property="waybillnosecondary" />
<result column="TOTALWEIGHT" jdbcType="VARCHAR" property="totalweight" />
<result column="TOTALPIECE" jdbcType="VARCHAR" property="totalpiece" />
<result column="PREPAREPIECE" jdbcType="VARCHAR" property="preparepiece" />
<result column="PREPAREWEIGHT" jdbcType="VARCHAR" property="prepareweight" />
<result column="PRODUCTNAME" jdbcType="VARCHAR" property="productname" />
<result column="STOWAGEDATE" jdbcType="TIMESTAMP" property="stowagedate" />
<result column="CREATEDATE" jdbcType="TIMESTAMP" property="createdate" />
<result column="PREPAREMASTERID" jdbcType="DECIMAL" property="preparemasterid" />
<result column="AUTOID" jdbcType="DECIMAL" property="autoid" />
<result column="MODIFY_DATE" jdbcType="TIMESTAMP" property="modifyDate" />
<result column="MODIFIER" jdbcType="DECIMAL" property="modifier" />
<result column="IS_DELETE" jdbcType="DECIMAL" property="isDelete" />
<result column="CREATOR" jdbcType="DECIMAL" property="creator" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
<result column="FLIGHTNO" jdbcType="VARCHAR" property="flightno" />
<result column="FLIGHTDATE" jdbcType="TIMESTAMP" property="flightdate" />
<result column="ORIGINATINGSTATION" jdbcType="VARCHAR" property="originatingstation" />
<result column="DESTINATIONSTATION" jdbcType="VARCHAR" property="destinationstation" />
<result column="AGENTCOMPANYCODE" jdbcType="VARCHAR" property="agentcompanycode" />
<result column="STATUS" jdbcType="VARCHAR" property="status" />
<result column="CARRIER" jdbcType="VARCHAR" property="carrier" />
<result column="CUSTOMSSTATUS" jdbcType="VARCHAR" property="customsstatus" />
<result column="PAYMODE" jdbcType="VARCHAR" property="paymode" />
<result column="SPECIALGOODSCODE" jdbcType="VARCHAR" property="specialgoodscode" />
<result column="CUSTOMSCODE" jdbcType="VARCHAR" property="customscode" />
<result column="AGENTMAN" jdbcType="VARCHAR" property="agentman" />
<result column="AGENTCOMPANY" jdbcType="VARCHAR" property="agentcompany" />
<result column="RECEIPTINFORMATION" jdbcType="VARCHAR" property="receiptinformation" />
<result column="UNNUMBER" jdbcType="VARCHAR" property="unnumber" />
<result column="CATEGORY" jdbcType="VARCHAR" property="category" />
<result column="SH_COMPANY" jdbcType="VARCHAR" property="shCompany" />
<result column="SH_ADDRESS" jdbcType="VARCHAR" property="shAddress" />
<result column="SH_ZIPCODE" jdbcType="VARCHAR" property="shZipcode" />
<result column="SH_CITY" jdbcType="VARCHAR" property="shCity" />
<result column="SH_DELTANAME" jdbcType="VARCHAR" property="shDeltaname" />
<result column="SH_COUNTRY" jdbcType="VARCHAR" property="shCountry" />
<result column="SH_TELEPHONE" jdbcType="VARCHAR" property="shTelephone" />
<result column="SH_FAX" jdbcType="VARCHAR" property="shFax" />
<result column="SH_NAME" jdbcType="VARCHAR" property="shName" />
<result column="CO_COMPANY" jdbcType="VARCHAR" property="coCompany" />
<result column="CO_ADDRESS" jdbcType="VARCHAR" property="coAddress" />
<result column="CO_ZIPCODE" jdbcType="VARCHAR" property="coZipcode" />
<result column="CO_CITY" jdbcType="VARCHAR" property="coCity" />
<result column="CO_DELTANAME" jdbcType="VARCHAR" property="coDeltaname" />
<result column="CO_COUNTRY" jdbcType="VARCHAR" property="coCountry" />
<result column="CO_TELEPHONE" jdbcType="VARCHAR" property="coTelephone" />
<result column="CO_FAX" jdbcType="VARCHAR" property="coFax" />
<result column="CO_NAME" jdbcType="VARCHAR" property="coName" />
<result column="REACH_STATION" jdbcType="VARCHAR" property="reachStation" />
<result column="CARRIER1" jdbcType="VARCHAR" property="carrier1" />
<result column="REACH_STATION1" jdbcType="VARCHAR" property="reachStation1" />
<result column="CARRIER2" jdbcType="VARCHAR" property="carrier2" />
<result column="REACH_STATION2" jdbcType="VARCHAR" property="reachStation2" />
<result column="NAME_OFGOODS" jdbcType="VARCHAR" property="nameOfgoods" />
<result column="DELIVERY_STATION" jdbcType="VARCHAR" property="deliveryStation" />
<result column="SH_PROVINCECODE" jdbcType="VARCHAR" property="shProvincecode" />
<result column="SH_PROVINCENAME" jdbcType="VARCHAR" property="shProvincename" />
<result column="DE_NUMBER" jdbcType="VARCHAR" property="deNumber" />
<result column="DE_WEIGHT" jdbcType="VARCHAR" property="deWeight" />
<result column="DE_CHWEIGHT" jdbcType="VARCHAR" property="deChweight" />
<result column="DE_SIZE" jdbcType="VARCHAR" property="deSize" />
<result column="DE_VOLUME" jdbcType="VARCHAR" property="deVolume" />
<result column="DE_TYPE" jdbcType="VARCHAR" property="deType" />
<result column="DE_TRSTATION" jdbcType="VARCHAR" property="deTrstation" />
<result column="DE_PACKING" jdbcType="VARCHAR" property="dePacking" />
<result column="DE_REMARKS" jdbcType="VARCHAR" property="deRemarks" />
<result column="DE_IDS" jdbcType="DECIMAL" property="deIds" />
<result column="RESPONSE_CODE" jdbcType="CHAR" property="responseCode" />
<result column="RESPONSE_TEXT" jdbcType="CHAR" property="responseText" />
<result column="SAVE_TIME" jdbcType="DECIMAL" property="saveTime" />
<result column="USER_ID" jdbcType="DECIMAL" property="userId" />
<result column="SHPAEO" jdbcType="VARCHAR" property="shpaeo" />
<result column="CNEAEO" jdbcType="VARCHAR" property="cneaeo" />
<result column="SHPCUSID" jdbcType="VARCHAR" property="shpcusid" />
<result column="CNECUSID" jdbcType="VARCHAR" property="cnecusid" />
<result column="UNLODINGCODE" jdbcType="VARCHAR" property="unlodingcode" />
</resultMap>
<sql id="Base_Column_List">
ID, WAYBILLNOMASTER, WAYBILLNOSECONDARY, TOTALWEIGHT, TOTALPIECE, PREPAREPIECE, PREPAREWEIGHT,
PRODUCTNAME, STOWAGEDATE, CREATEDATE, PREPAREMASTERID, AUTOID, MODIFY_DATE, MODIFIER,
IS_DELETE, CREATOR, CREATE_DATE, FLIGHTNO, FLIGHTDATE, ORIGINATINGSTATION, DESTINATIONSTATION,
AGENTCOMPANYCODE, STATUS, CARRIER, CUSTOMSSTATUS, PAYMODE, SPECIALGOODSCODE, CUSTOMSCODE,
AGENTMAN, AGENTCOMPANY, RECEIPTINFORMATION, UNNUMBER, CATEGORY, SH_COMPANY, SH_ADDRESS,
SH_ZIPCODE, SH_CITY, SH_DELTANAME, SH_COUNTRY, SH_TELEPHONE, SH_FAX, SH_NAME, CO_COMPANY,
CO_ADDRESS, CO_ZIPCODE, CO_CITY, CO_DELTANAME, CO_COUNTRY, CO_TELEPHONE, CO_FAX,
CO_NAME, REACH_STATION, CARRIER1, REACH_STATION1, CARRIER2, REACH_STATION2, NAME_OFGOODS,
DELIVERY_STATION, SH_PROVINCECODE, SH_PROVINCENAME, DE_NUMBER, DE_WEIGHT, DE_CHWEIGHT,
DE_SIZE, DE_VOLUME, DE_TYPE, DE_TRSTATION, DE_PACKING, DE_REMARKS, DE_IDS, RESPONSE_CODE,
RESPONSE_TEXT, SAVE_TIME, USER_ID, SHPAEO, CNEAEO, SHPCUSID, CNECUSID, UNLODINGCODE
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from PREPARESECONDARY
where ID = #{id,jdbcType=DECIMAL}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
delete from PREPARESECONDARY
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.tianbo.analysis.model.PREPARESECONDARY">
insert into PREPARESECONDARY (ID, WAYBILLNOMASTER, WAYBILLNOSECONDARY,
TOTALWEIGHT, TOTALPIECE, PREPAREPIECE,
PREPAREWEIGHT, PRODUCTNAME, STOWAGEDATE,
CREATEDATE, PREPAREMASTERID, AUTOID,
MODIFY_DATE, MODIFIER, IS_DELETE,
CREATOR, CREATE_DATE, FLIGHTNO,
FLIGHTDATE, ORIGINATINGSTATION, DESTINATIONSTATION,
AGENTCOMPANYCODE, STATUS, CARRIER,
CUSTOMSSTATUS, PAYMODE, SPECIALGOODSCODE,
CUSTOMSCODE, AGENTMAN, AGENTCOMPANY,
RECEIPTINFORMATION, UNNUMBER, CATEGORY,
SH_COMPANY, SH_ADDRESS, SH_ZIPCODE,
SH_CITY, SH_DELTANAME, SH_COUNTRY,
SH_TELEPHONE, SH_FAX, SH_NAME,
CO_COMPANY, CO_ADDRESS, CO_ZIPCODE,
CO_CITY, CO_DELTANAME, CO_COUNTRY,
CO_TELEPHONE, CO_FAX, CO_NAME,
REACH_STATION, CARRIER1, REACH_STATION1,
CARRIER2, REACH_STATION2, NAME_OFGOODS,
DELIVERY_STATION, SH_PROVINCECODE, SH_PROVINCENAME,
DE_NUMBER, DE_WEIGHT, DE_CHWEIGHT,
DE_SIZE, DE_VOLUME, DE_TYPE,
DE_TRSTATION, DE_PACKING, DE_REMARKS,
DE_IDS, RESPONSE_CODE, RESPONSE_TEXT,
SAVE_TIME, USER_ID, SHPAEO,
CNEAEO, SHPCUSID, CNECUSID,
UNLODINGCODE)
values (#{id,jdbcType=DECIMAL}, #{waybillnomaster,jdbcType=VARCHAR}, #{waybillnosecondary,jdbcType=VARCHAR},
#{totalweight,jdbcType=VARCHAR}, #{totalpiece,jdbcType=VARCHAR}, #{preparepiece,jdbcType=VARCHAR},
#{prepareweight,jdbcType=VARCHAR}, #{productname,jdbcType=VARCHAR}, #{stowagedate,jdbcType=TIMESTAMP},
#{createdate,jdbcType=TIMESTAMP}, #{preparemasterid,jdbcType=DECIMAL}, #{autoid,jdbcType=DECIMAL},
#{modifyDate,jdbcType=TIMESTAMP}, #{modifier,jdbcType=DECIMAL}, #{isDelete,jdbcType=DECIMAL},
#{creator,jdbcType=DECIMAL}, #{createDate,jdbcType=TIMESTAMP}, #{flightno,jdbcType=VARCHAR},
#{flightdate,jdbcType=TIMESTAMP}, #{originatingstation,jdbcType=VARCHAR}, #{destinationstation,jdbcType=VARCHAR},
#{agentcompanycode,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{carrier,jdbcType=VARCHAR},
#{customsstatus,jdbcType=VARCHAR}, #{paymode,jdbcType=VARCHAR}, #{specialgoodscode,jdbcType=VARCHAR},
#{customscode,jdbcType=VARCHAR}, #{agentman,jdbcType=VARCHAR}, #{agentcompany,jdbcType=VARCHAR},
#{receiptinformation,jdbcType=VARCHAR}, #{unnumber,jdbcType=VARCHAR}, #{category,jdbcType=VARCHAR},
#{shCompany,jdbcType=VARCHAR}, #{shAddress,jdbcType=VARCHAR}, #{shZipcode,jdbcType=VARCHAR},
#{shCity,jdbcType=VARCHAR}, #{shDeltaname,jdbcType=VARCHAR}, #{shCountry,jdbcType=VARCHAR},
#{shTelephone,jdbcType=VARCHAR}, #{shFax,jdbcType=VARCHAR}, #{shName,jdbcType=VARCHAR},
#{coCompany,jdbcType=VARCHAR}, #{coAddress,jdbcType=VARCHAR}, #{coZipcode,jdbcType=VARCHAR},
#{coCity,jdbcType=VARCHAR}, #{coDeltaname,jdbcType=VARCHAR}, #{coCountry,jdbcType=VARCHAR},
#{coTelephone,jdbcType=VARCHAR}, #{coFax,jdbcType=VARCHAR}, #{coName,jdbcType=VARCHAR},
#{reachStation,jdbcType=VARCHAR}, #{carrier1,jdbcType=VARCHAR}, #{reachStation1,jdbcType=VARCHAR},
#{carrier2,jdbcType=VARCHAR}, #{reachStation2,jdbcType=VARCHAR}, #{nameOfgoods,jdbcType=VARCHAR},
#{deliveryStation,jdbcType=VARCHAR}, #{shProvincecode,jdbcType=VARCHAR}, #{shProvincename,jdbcType=VARCHAR},
#{deNumber,jdbcType=VARCHAR}, #{deWeight,jdbcType=VARCHAR}, #{deChweight,jdbcType=VARCHAR},
#{deSize,jdbcType=VARCHAR}, #{deVolume,jdbcType=VARCHAR}, #{deType,jdbcType=VARCHAR},
#{deTrstation,jdbcType=VARCHAR}, #{dePacking,jdbcType=VARCHAR}, #{deRemarks,jdbcType=VARCHAR},
#{deIds,jdbcType=DECIMAL}, #{responseCode,jdbcType=CHAR}, #{responseText,jdbcType=CHAR},
#{saveTime,jdbcType=DECIMAL}, #{userId,jdbcType=DECIMAL}, #{shpaeo,jdbcType=VARCHAR},
#{cneaeo,jdbcType=VARCHAR}, #{shpcusid,jdbcType=VARCHAR}, #{cnecusid,jdbcType=VARCHAR},
#{unlodingcode,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.tianbo.analysis.model.PREPARESECONDARY">
insert into PREPARESECONDARY
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
ID,
</if>
<if test="waybillnomaster != null">
WAYBILLNOMASTER,
</if>
<if test="waybillnosecondary != null">
WAYBILLNOSECONDARY,
</if>
<if test="totalweight != null">
TOTALWEIGHT,
</if>
<if test="totalpiece != null">
TOTALPIECE,
</if>
<if test="preparepiece != null">
PREPAREPIECE,
</if>
<if test="prepareweight != null">
PREPAREWEIGHT,
</if>
<if test="productname != null">
PRODUCTNAME,
</if>
<if test="stowagedate != null">
STOWAGEDATE,
</if>
<if test="createdate != null">
CREATEDATE,
</if>
<if test="preparemasterid != null">
PREPAREMASTERID,
</if>
<if test="autoid != null">
AUTOID,
</if>
<if test="modifyDate != null">
MODIFY_DATE,
</if>
<if test="modifier != null">
MODIFIER,
</if>
<if test="isDelete != null">
IS_DELETE,
</if>
<if test="creator != null">
CREATOR,
</if>
<if test="createDate != null">
CREATE_DATE,
</if>
<if test="flightno != null">
FLIGHTNO,
</if>
<if test="flightdate != null">
FLIGHTDATE,
</if>
<if test="originatingstation != null">
ORIGINATINGSTATION,
</if>
<if test="destinationstation != null">
DESTINATIONSTATION,
</if>
<if test="agentcompanycode != null">
AGENTCOMPANYCODE,
</if>
<if test="status != null">
STATUS,
</if>
<if test="carrier != null">
CARRIER,
</if>
<if test="customsstatus != null">
CUSTOMSSTATUS,
</if>
<if test="paymode != null">
PAYMODE,
</if>
<if test="specialgoodscode != null">
SPECIALGOODSCODE,
</if>
<if test="customscode != null">
CUSTOMSCODE,
</if>
<if test="agentman != null">
AGENTMAN,
</if>
<if test="agentcompany != null">
AGENTCOMPANY,
</if>
<if test="receiptinformation != null">
RECEIPTINFORMATION,
</if>
<if test="unnumber != null">
UNNUMBER,
</if>
<if test="category != null">
CATEGORY,
</if>
<if test="shCompany != null">
SH_COMPANY,
</if>
<if test="shAddress != null">
SH_ADDRESS,
</if>
<if test="shZipcode != null">
SH_ZIPCODE,
</if>
<if test="shCity != null">
SH_CITY,
</if>
<if test="shDeltaname != null">
SH_DELTANAME,
</if>
<if test="shCountry != null">
SH_COUNTRY,
</if>
<if test="shTelephone != null">
SH_TELEPHONE,
</if>
<if test="shFax != null">
SH_FAX,
</if>
<if test="shName != null">
SH_NAME,
</if>
<if test="coCompany != null">
CO_COMPANY,
</if>
<if test="coAddress != null">
CO_ADDRESS,
</if>
<if test="coZipcode != null">
CO_ZIPCODE,
</if>
<if test="coCity != null">
CO_CITY,
</if>
<if test="coDeltaname != null">
CO_DELTANAME,
</if>
<if test="coCountry != null">
CO_COUNTRY,
</if>
<if test="coTelephone != null">
CO_TELEPHONE,
</if>
<if test="coFax != null">
CO_FAX,
</if>
<if test="coName != null">
CO_NAME,
</if>
<if test="reachStation != null">
REACH_STATION,
</if>
<if test="carrier1 != null">
CARRIER1,
</if>
<if test="reachStation1 != null">
REACH_STATION1,
</if>
<if test="carrier2 != null">
CARRIER2,
</if>
<if test="reachStation2 != null">
REACH_STATION2,
</if>
<if test="nameOfgoods != null">
NAME_OFGOODS,
</if>
<if test="deliveryStation != null">
DELIVERY_STATION,
</if>
<if test="shProvincecode != null">
SH_PROVINCECODE,
</if>
<if test="shProvincename != null">
SH_PROVINCENAME,
</if>
<if test="deNumber != null">
DE_NUMBER,
</if>
<if test="deWeight != null">
DE_WEIGHT,
</if>
<if test="deChweight != null">
DE_CHWEIGHT,
</if>
<if test="deSize != null">
DE_SIZE,
</if>
<if test="deVolume != null">
DE_VOLUME,
</if>
<if test="deType != null">
DE_TYPE,
</if>
<if test="deTrstation != null">
DE_TRSTATION,
</if>
<if test="dePacking != null">
DE_PACKING,
</if>
<if test="deRemarks != null">
DE_REMARKS,
</if>
<if test="deIds != null">
DE_IDS,
</if>
<if test="responseCode != null">
RESPONSE_CODE,
</if>
<if test="responseText != null">
RESPONSE_TEXT,
</if>
<if test="saveTime != null">
SAVE_TIME,
</if>
<if test="userId != null">
USER_ID,
</if>
<if test="shpaeo != null">
SHPAEO,
</if>
<if test="cneaeo != null">
CNEAEO,
</if>
<if test="shpcusid != null">
SHPCUSID,
</if>
<if test="cnecusid != null">
CNECUSID,
</if>
<if test="unlodingcode != null">
UNLODINGCODE,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=DECIMAL},
</if>
<if test="waybillnomaster != null">
#{waybillnomaster,jdbcType=VARCHAR},
</if>
<if test="waybillnosecondary != null">
#{waybillnosecondary,jdbcType=VARCHAR},
</if>
<if test="totalweight != null">
#{totalweight,jdbcType=VARCHAR},
</if>
<if test="totalpiece != null">
#{totalpiece,jdbcType=VARCHAR},
</if>
<if test="preparepiece != null">
#{preparepiece,jdbcType=VARCHAR},
</if>
<if test="prepareweight != null">
#{prepareweight,jdbcType=VARCHAR},
</if>
<if test="productname != null">
#{productname,jdbcType=VARCHAR},
</if>
<if test="stowagedate != null">
#{stowagedate,jdbcType=TIMESTAMP},
</if>
<if test="createdate != null">
#{createdate,jdbcType=TIMESTAMP},
</if>
<if test="preparemasterid != null">
#{preparemasterid,jdbcType=DECIMAL},
</if>
<if test="autoid != null">
#{autoid,jdbcType=DECIMAL},
</if>
<if test="modifyDate != null">
#{modifyDate,jdbcType=TIMESTAMP},
</if>
<if test="modifier != null">
#{modifier,jdbcType=DECIMAL},
</if>
<if test="isDelete != null">
#{isDelete,jdbcType=DECIMAL},
</if>
<if test="creator != null">
#{creator,jdbcType=DECIMAL},
</if>
<if test="createDate != null">
#{createDate,jdbcType=TIMESTAMP},
</if>
<if test="flightno != null">
#{flightno,jdbcType=VARCHAR},
</if>
<if test="flightdate != null">
#{flightdate,jdbcType=TIMESTAMP},
</if>
<if test="originatingstation != null">
#{originatingstation,jdbcType=VARCHAR},
</if>
<if test="destinationstation != null">
#{destinationstation,jdbcType=VARCHAR},
</if>
<if test="agentcompanycode != null">
#{agentcompanycode,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=VARCHAR},
</if>
<if test="carrier != null">
#{carrier,jdbcType=VARCHAR},
</if>
<if test="customsstatus != null">
#{customsstatus,jdbcType=VARCHAR},
</if>
<if test="paymode != null">
#{paymode,jdbcType=VARCHAR},
</if>
<if test="specialgoodscode != null">
#{specialgoodscode,jdbcType=VARCHAR},
</if>
<if test="customscode != null">
#{customscode,jdbcType=VARCHAR},
</if>
<if test="agentman != null">
#{agentman,jdbcType=VARCHAR},
</if>
<if test="agentcompany != null">
#{agentcompany,jdbcType=VARCHAR},
</if>
<if test="receiptinformation != null">
#{receiptinformation,jdbcType=VARCHAR},
</if>
<if test="unnumber != null">
#{unnumber,jdbcType=VARCHAR},
</if>
<if test="category != null">
#{category,jdbcType=VARCHAR},
</if>
<if test="shCompany != null">
#{shCompany,jdbcType=VARCHAR},
</if>
<if test="shAddress != null">
#{shAddress,jdbcType=VARCHAR},
</if>
<if test="shZipcode != null">
#{shZipcode,jdbcType=VARCHAR},
</if>
<if test="shCity != null">
#{shCity,jdbcType=VARCHAR},
</if>
<if test="shDeltaname != null">
#{shDeltaname,jdbcType=VARCHAR},
</if>
<if test="shCountry != null">
#{shCountry,jdbcType=VARCHAR},
</if>
<if test="shTelephone != null">
#{shTelephone,jdbcType=VARCHAR},
</if>
<if test="shFax != null">
#{shFax,jdbcType=VARCHAR},
</if>
<if test="shName != null">
#{shName,jdbcType=VARCHAR},
</if>
<if test="coCompany != null">
#{coCompany,jdbcType=VARCHAR},
</if>
<if test="coAddress != null">
#{coAddress,jdbcType=VARCHAR},
</if>
<if test="coZipcode != null">
#{coZipcode,jdbcType=VARCHAR},
</if>
<if test="coCity != null">
#{coCity,jdbcType=VARCHAR},
</if>
<if test="coDeltaname != null">
#{coDeltaname,jdbcType=VARCHAR},
</if>
<if test="coCountry != null">
#{coCountry,jdbcType=VARCHAR},
</if>
<if test="coTelephone != null">
#{coTelephone,jdbcType=VARCHAR},
</if>
<if test="coFax != null">
#{coFax,jdbcType=VARCHAR},
</if>
<if test="coName != null">
#{coName,jdbcType=VARCHAR},
</if>
<if test="reachStation != null">
#{reachStation,jdbcType=VARCHAR},
</if>
<if test="carrier1 != null">
#{carrier1,jdbcType=VARCHAR},
</if>
<if test="reachStation1 != null">
#{reachStation1,jdbcType=VARCHAR},
</if>
<if test="carrier2 != null">
#{carrier2,jdbcType=VARCHAR},
</if>
<if test="reachStation2 != null">
#{reachStation2,jdbcType=VARCHAR},
</if>
<if test="nameOfgoods != null">
#{nameOfgoods,jdbcType=VARCHAR},
</if>
<if test="deliveryStation != null">
#{deliveryStation,jdbcType=VARCHAR},
</if>
<if test="shProvincecode != null">
#{shProvincecode,jdbcType=VARCHAR},
</if>
<if test="shProvincename != null">
#{shProvincename,jdbcType=VARCHAR},
</if>
<if test="deNumber != null">
#{deNumber,jdbcType=VARCHAR},
</if>
<if test="deWeight != null">
#{deWeight,jdbcType=VARCHAR},
</if>
<if test="deChweight != null">
#{deChweight,jdbcType=VARCHAR},
</if>
<if test="deSize != null">
#{deSize,jdbcType=VARCHAR},
</if>
<if test="deVolume != null">
#{deVolume,jdbcType=VARCHAR},
</if>
<if test="deType != null">
#{deType,jdbcType=VARCHAR},
</if>
<if test="deTrstation != null">
#{deTrstation,jdbcType=VARCHAR},
</if>
<if test="dePacking != null">
#{dePacking,jdbcType=VARCHAR},
</if>
<if test="deRemarks != null">
#{deRemarks,jdbcType=VARCHAR},
</if>
<if test="deIds != null">
#{deIds,jdbcType=DECIMAL},
</if>
<if test="responseCode != null">
#{responseCode,jdbcType=CHAR},
</if>
<if test="responseText != null">
#{responseText,jdbcType=CHAR},
</if>
<if test="saveTime != null">
#{saveTime,jdbcType=DECIMAL},
</if>
<if test="userId != null">
#{userId,jdbcType=DECIMAL},
</if>
<if test="shpaeo != null">
#{shpaeo,jdbcType=VARCHAR},
</if>
<if test="cneaeo != null">
#{cneaeo,jdbcType=VARCHAR},
</if>
<if test="shpcusid != null">
#{shpcusid,jdbcType=VARCHAR},
</if>
<if test="cnecusid != null">
#{cnecusid,jdbcType=VARCHAR},
</if>
<if test="unlodingcode != null">
#{unlodingcode,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.tianbo.analysis.model.PREPARESECONDARY">
update PREPARESECONDARY
<set>
<if test="waybillnomaster != null">
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR},
</if>
<if test="waybillnosecondary != null">
WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR},
</if>
<if test="totalweight != null">
TOTALWEIGHT = #{totalweight,jdbcType=VARCHAR},
</if>
<if test="totalpiece != null">
TOTALPIECE = #{totalpiece,jdbcType=VARCHAR},
</if>
<if test="preparepiece != null">
PREPAREPIECE = #{preparepiece,jdbcType=VARCHAR},
</if>
<if test="prepareweight != null">
PREPAREWEIGHT = #{prepareweight,jdbcType=VARCHAR},
</if>
<if test="productname != null">
PRODUCTNAME = #{productname,jdbcType=VARCHAR},
</if>
<if test="stowagedate != null">
STOWAGEDATE = #{stowagedate,jdbcType=TIMESTAMP},
</if>
<if test="createdate != null">
CREATEDATE = #{createdate,jdbcType=TIMESTAMP},
</if>
<if test="preparemasterid != null">
PREPAREMASTERID = #{preparemasterid,jdbcType=DECIMAL},
</if>
<if test="autoid != null">
AUTOID = #{autoid,jdbcType=DECIMAL},
</if>
<if test="modifyDate != null">
MODIFY_DATE = #{modifyDate,jdbcType=TIMESTAMP},
</if>
<if test="modifier != null">
MODIFIER = #{modifier,jdbcType=DECIMAL},
</if>
<if test="isDelete != null">
IS_DELETE = #{isDelete,jdbcType=DECIMAL},
</if>
<if test="creator != null">
CREATOR = #{creator,jdbcType=DECIMAL},
</if>
<if test="createDate != null">
CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
</if>
<if test="flightno != null">
FLIGHTNO = #{flightno,jdbcType=VARCHAR},
</if>
<if test="flightdate != null">
FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP},
</if>
<if test="originatingstation != null">
ORIGINATINGSTATION = #{originatingstation,jdbcType=VARCHAR},
</if>
<if test="destinationstation != null">
DESTINATIONSTATION = #{destinationstation,jdbcType=VARCHAR},
</if>
<if test="agentcompanycode != null">
AGENTCOMPANYCODE = #{agentcompanycode,jdbcType=VARCHAR},
</if>
<if test="status != null">
STATUS = #{status,jdbcType=VARCHAR},
</if>
<if test="carrier != null">
CARRIER = #{carrier,jdbcType=VARCHAR},
</if>
<if test="customsstatus != null">
CUSTOMSSTATUS = #{customsstatus,jdbcType=VARCHAR},
</if>
<if test="paymode != null">
PAYMODE = #{paymode,jdbcType=VARCHAR},
</if>
<if test="specialgoodscode != null">
SPECIALGOODSCODE = #{specialgoodscode,jdbcType=VARCHAR},
</if>
<if test="customscode != null">
CUSTOMSCODE = #{customscode,jdbcType=VARCHAR},
</if>
<if test="agentman != null">
AGENTMAN = #{agentman,jdbcType=VARCHAR},
</if>
<if test="agentcompany != null">
AGENTCOMPANY = #{agentcompany,jdbcType=VARCHAR},
</if>
<if test="receiptinformation != null">
RECEIPTINFORMATION = #{receiptinformation,jdbcType=VARCHAR},
</if>
<if test="unnumber != null">
UNNUMBER = #{unnumber,jdbcType=VARCHAR},
</if>
<if test="category != null">
CATEGORY = #{category,jdbcType=VARCHAR},
</if>
<if test="shCompany != null">
SH_COMPANY = #{shCompany,jdbcType=VARCHAR},
</if>
<if test="shAddress != null">
SH_ADDRESS = #{shAddress,jdbcType=VARCHAR},
</if>
<if test="shZipcode != null">
SH_ZIPCODE = #{shZipcode,jdbcType=VARCHAR},
</if>
<if test="shCity != null">
SH_CITY = #{shCity,jdbcType=VARCHAR},
</if>
<if test="shDeltaname != null">
SH_DELTANAME = #{shDeltaname,jdbcType=VARCHAR},
</if>
<if test="shCountry != null">
SH_COUNTRY = #{shCountry,jdbcType=VARCHAR},
</if>
<if test="shTelephone != null">
SH_TELEPHONE = #{shTelephone,jdbcType=VARCHAR},
</if>
<if test="shFax != null">
SH_FAX = #{shFax,jdbcType=VARCHAR},
</if>
<if test="shName != null">
SH_NAME = #{shName,jdbcType=VARCHAR},
</if>
<if test="coCompany != null">
CO_COMPANY = #{coCompany,jdbcType=VARCHAR},
</if>
<if test="coAddress != null">
CO_ADDRESS = #{coAddress,jdbcType=VARCHAR},
</if>
<if test="coZipcode != null">
CO_ZIPCODE = #{coZipcode,jdbcType=VARCHAR},
</if>
<if test="coCity != null">
CO_CITY = #{coCity,jdbcType=VARCHAR},
</if>
<if test="coDeltaname != null">
CO_DELTANAME = #{coDeltaname,jdbcType=VARCHAR},
</if>
<if test="coCountry != null">
CO_COUNTRY = #{coCountry,jdbcType=VARCHAR},
</if>
<if test="coTelephone != null">
CO_TELEPHONE = #{coTelephone,jdbcType=VARCHAR},
</if>
<if test="coFax != null">
CO_FAX = #{coFax,jdbcType=VARCHAR},
</if>
<if test="coName != null">
CO_NAME = #{coName,jdbcType=VARCHAR},
</if>
<if test="reachStation != null">
REACH_STATION = #{reachStation,jdbcType=VARCHAR},
</if>
<if test="carrier1 != null">
CARRIER1 = #{carrier1,jdbcType=VARCHAR},
</if>
<if test="reachStation1 != null">
REACH_STATION1 = #{reachStation1,jdbcType=VARCHAR},
</if>
<if test="carrier2 != null">
CARRIER2 = #{carrier2,jdbcType=VARCHAR},
</if>
<if test="reachStation2 != null">
REACH_STATION2 = #{reachStation2,jdbcType=VARCHAR},
</if>
<if test="nameOfgoods != null">
NAME_OFGOODS = #{nameOfgoods,jdbcType=VARCHAR},
</if>
<if test="deliveryStation != null">
DELIVERY_STATION = #{deliveryStation,jdbcType=VARCHAR},
</if>
<if test="shProvincecode != null">
SH_PROVINCECODE = #{shProvincecode,jdbcType=VARCHAR},
</if>
<if test="shProvincename != null">
SH_PROVINCENAME = #{shProvincename,jdbcType=VARCHAR},
</if>
<if test="deNumber != null">
DE_NUMBER = #{deNumber,jdbcType=VARCHAR},
</if>
<if test="deWeight != null">
DE_WEIGHT = #{deWeight,jdbcType=VARCHAR},
</if>
<if test="deChweight != null">
DE_CHWEIGHT = #{deChweight,jdbcType=VARCHAR},
</if>
<if test="deSize != null">
DE_SIZE = #{deSize,jdbcType=VARCHAR},
</if>
<if test="deVolume != null">
DE_VOLUME = #{deVolume,jdbcType=VARCHAR},
</if>
<if test="deType != null">
DE_TYPE = #{deType,jdbcType=VARCHAR},
</if>
<if test="deTrstation != null">
DE_TRSTATION = #{deTrstation,jdbcType=VARCHAR},
</if>
<if test="dePacking != null">
DE_PACKING = #{dePacking,jdbcType=VARCHAR},
</if>
<if test="deRemarks != null">
DE_REMARKS = #{deRemarks,jdbcType=VARCHAR},
</if>
<if test="deIds != null">
DE_IDS = #{deIds,jdbcType=DECIMAL},
</if>
<if test="responseCode != null">
RESPONSE_CODE = #{responseCode,jdbcType=CHAR},
</if>
<if test="responseText != null">
RESPONSE_TEXT = #{responseText,jdbcType=CHAR},
</if>
<if test="saveTime != null">
SAVE_TIME = #{saveTime,jdbcType=DECIMAL},
</if>
<if test="userId != null">
USER_ID = #{userId,jdbcType=DECIMAL},
</if>
<if test="shpaeo != null">
SHPAEO = #{shpaeo,jdbcType=VARCHAR},
</if>
<if test="cneaeo != null">
CNEAEO = #{cneaeo,jdbcType=VARCHAR},
</if>
<if test="shpcusid != null">
SHPCUSID = #{shpcusid,jdbcType=VARCHAR},
</if>
<if test="cnecusid != null">
CNECUSID = #{cnecusid,jdbcType=VARCHAR},
</if>
<if test="unlodingcode != null">
UNLODINGCODE = #{unlodingcode,jdbcType=VARCHAR},
</if>
</set>
where ID = #{id,jdbcType=DECIMAL}
</update>
<update id="updateByPrimaryKey" parameterType="com.tianbo.analysis.model.PREPARESECONDARY">
update PREPARESECONDARY
set WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR},
WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR},
TOTALWEIGHT = #{totalweight,jdbcType=VARCHAR},
TOTALPIECE = #{totalpiece,jdbcType=VARCHAR},
PREPAREPIECE = #{preparepiece,jdbcType=VARCHAR},
PREPAREWEIGHT = #{prepareweight,jdbcType=VARCHAR},
PRODUCTNAME = #{productname,jdbcType=VARCHAR},
STOWAGEDATE = #{stowagedate,jdbcType=TIMESTAMP},
CREATEDATE = #{createdate,jdbcType=TIMESTAMP},
PREPAREMASTERID = #{preparemasterid,jdbcType=DECIMAL},
AUTOID = #{autoid,jdbcType=DECIMAL},
MODIFY_DATE = #{modifyDate,jdbcType=TIMESTAMP},
MODIFIER = #{modifier,jdbcType=DECIMAL},
IS_DELETE = #{isDelete,jdbcType=DECIMAL},
CREATOR = #{creator,jdbcType=DECIMAL},
CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
FLIGHTNO = #{flightno,jdbcType=VARCHAR},
FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP},
ORIGINATINGSTATION = #{originatingstation,jdbcType=VARCHAR},
DESTINATIONSTATION = #{destinationstation,jdbcType=VARCHAR},
AGENTCOMPANYCODE = #{agentcompanycode,jdbcType=VARCHAR},
STATUS = #{status,jdbcType=VARCHAR},
CARRIER = #{carrier,jdbcType=VARCHAR},
CUSTOMSSTATUS = #{customsstatus,jdbcType=VARCHAR},
PAYMODE = #{paymode,jdbcType=VARCHAR},
SPECIALGOODSCODE = #{specialgoodscode,jdbcType=VARCHAR},
CUSTOMSCODE = #{customscode,jdbcType=VARCHAR},
AGENTMAN = #{agentman,jdbcType=VARCHAR},
AGENTCOMPANY = #{agentcompany,jdbcType=VARCHAR},
RECEIPTINFORMATION = #{receiptinformation,jdbcType=VARCHAR},
UNNUMBER = #{unnumber,jdbcType=VARCHAR},
CATEGORY = #{category,jdbcType=VARCHAR},
SH_COMPANY = #{shCompany,jdbcType=VARCHAR},
SH_ADDRESS = #{shAddress,jdbcType=VARCHAR},
SH_ZIPCODE = #{shZipcode,jdbcType=VARCHAR},
SH_CITY = #{shCity,jdbcType=VARCHAR},
SH_DELTANAME = #{shDeltaname,jdbcType=VARCHAR},
SH_COUNTRY = #{shCountry,jdbcType=VARCHAR},
SH_TELEPHONE = #{shTelephone,jdbcType=VARCHAR},
SH_FAX = #{shFax,jdbcType=VARCHAR},
SH_NAME = #{shName,jdbcType=VARCHAR},
CO_COMPANY = #{coCompany,jdbcType=VARCHAR},
CO_ADDRESS = #{coAddress,jdbcType=VARCHAR},
CO_ZIPCODE = #{coZipcode,jdbcType=VARCHAR},
CO_CITY = #{coCity,jdbcType=VARCHAR},
CO_DELTANAME = #{coDeltaname,jdbcType=VARCHAR},
CO_COUNTRY = #{coCountry,jdbcType=VARCHAR},
CO_TELEPHONE = #{coTelephone,jdbcType=VARCHAR},
CO_FAX = #{coFax,jdbcType=VARCHAR},
CO_NAME = #{coName,jdbcType=VARCHAR},
REACH_STATION = #{reachStation,jdbcType=VARCHAR},
CARRIER1 = #{carrier1,jdbcType=VARCHAR},
REACH_STATION1 = #{reachStation1,jdbcType=VARCHAR},
CARRIER2 = #{carrier2,jdbcType=VARCHAR},
REACH_STATION2 = #{reachStation2,jdbcType=VARCHAR},
NAME_OFGOODS = #{nameOfgoods,jdbcType=VARCHAR},
DELIVERY_STATION = #{deliveryStation,jdbcType=VARCHAR},
SH_PROVINCECODE = #{shProvincecode,jdbcType=VARCHAR},
SH_PROVINCENAME = #{shProvincename,jdbcType=VARCHAR},
DE_NUMBER = #{deNumber,jdbcType=VARCHAR},
DE_WEIGHT = #{deWeight,jdbcType=VARCHAR},
DE_CHWEIGHT = #{deChweight,jdbcType=VARCHAR},
DE_SIZE = #{deSize,jdbcType=VARCHAR},
DE_VOLUME = #{deVolume,jdbcType=VARCHAR},
DE_TYPE = #{deType,jdbcType=VARCHAR},
DE_TRSTATION = #{deTrstation,jdbcType=VARCHAR},
DE_PACKING = #{dePacking,jdbcType=VARCHAR},
DE_REMARKS = #{deRemarks,jdbcType=VARCHAR},
DE_IDS = #{deIds,jdbcType=DECIMAL},
RESPONSE_CODE = #{responseCode,jdbcType=CHAR},
RESPONSE_TEXT = #{responseText,jdbcType=CHAR},
SAVE_TIME = #{saveTime,jdbcType=DECIMAL},
USER_ID = #{userId,jdbcType=DECIMAL},
SHPAEO = #{shpaeo,jdbcType=VARCHAR},
CNEAEO = #{cneaeo,jdbcType=VARCHAR},
SHPCUSID = #{shpcusid,jdbcType=VARCHAR},
CNECUSID = #{cnecusid,jdbcType=VARCHAR},
UNLODINGCODE = #{unlodingcode,jdbcType=VARCHAR}
where ID = #{id,jdbcType=DECIMAL}
</update>
<resultMap id="BaseResultMap" type="com.tianbo.analysis.model.PREPARESECONDARY">
<result column="AUTOID" jdbcType="VARCHAR" property="autoid" />
<result column="WAYBILLNOMASTER" jdbcType="VARCHAR" property="waybillnomaster" />
<result column="WAYBILLNOSECONDARY" jdbcType="VARCHAR" property="waybillnosecondary" />
<result column="TOTALWEIGHT" jdbcType="VARCHAR" property="totalweight" />
<result column="TOTALPIECE" jdbcType="VARCHAR" property="totalpiece" />
<result column="PREPAREPIECE" jdbcType="VARCHAR" property="preparepiece" />
<result column="PREPAREWEIGHT" jdbcType="VARCHAR" property="prepareweight" />
<result column="CREATEDATE" jdbcType="TIMESTAMP" property="createdate" />
<result column="PREPAREMASTERID" jdbcType="VARCHAR" property="preparemasterid" />
<result column="CARRIER" jdbcType="VARCHAR" property="carrier" />
<result column="FLIGHTNO" jdbcType="VARCHAR" property="flightno" />
<result column="FLIGHTDATE" jdbcType="TIMESTAMP" property="flightdate" />
<result column="ORIGINATINGSTATION" jdbcType="VARCHAR" property="originatingstation" />
<result column="DESTINATIONSTATION" jdbcType="VARCHAR" property="destinationstation" />
<result column="CUSTOMSSTATUS" jdbcType="VARCHAR" property="customsstatus" />
<result column="PAYMODE" jdbcType="VARCHAR" property="paymode" />
<result column="PRODUCTNAME" jdbcType="VARCHAR" property="productname" />
<result column="STOWAGEDATE" jdbcType="TIMESTAMP" property="stowagedate" />
<result column="CUSTOMSCODE" jdbcType="VARCHAR" property="customscode" />
<result column="SHIPPERNAME" jdbcType="VARCHAR" property="shippername" />
<result column="SHIPPERCITY" jdbcType="VARCHAR" property="shippercity" />
<result column="SHIPPERADDRESS" jdbcType="VARCHAR" property="shipperaddress" />
<result column="CONSIGNEENAME" jdbcType="VARCHAR" property="consigneename" />
<result column="CONSIGNEECITY" jdbcType="VARCHAR" property="consigneecity" />
<result column="CONSIGNEEADDRESS" jdbcType="VARCHAR" property="consigneeaddress" />
<result column="RECEIPTINFORMATION" jdbcType="VARCHAR" property="receiptinformation" />
<result column="AGENTCODE" jdbcType="VARCHAR" property="agentcode" />
<result column="AGENTNAME" jdbcType="VARCHAR" property="agentname" />
<result column="STATUS" jdbcType="VARCHAR" property="status" />
<result column="SHIPPER_CODE" jdbcType="VARCHAR" property="shipperCode" />
<result column="SHIPPER_COUNTRYCODE" jdbcType="VARCHAR" property="shipperCountrycode" />
<result column="SHIPPER_PHONE" jdbcType="VARCHAR" property="shipperPhone" />
<result column="SHIPPER_FAX" jdbcType="VARCHAR" property="shipperFax" />
<result column="CONSIGNEE_CODE" jdbcType="VARCHAR" property="consigneeCode" />
<result column="CONSIGNEE_COUNTRYCODE" jdbcType="VARCHAR" property="consigneeCountrycode" />
<result column="CONSIGNEE_PHONE" jdbcType="VARCHAR" property="consigneePhone" />
<result column="CONSIGNEE_FAX" jdbcType="VARCHAR" property="consigneeFax" />
<result column="SHIPPER_AEO" jdbcType="VARCHAR" property="shipperAeo" />
<result column="CONSIGNEE_AEO" jdbcType="VARCHAR" property="consigneeAeo" />
<result column="UNLOADINGSTATION" jdbcType="VARCHAR" property="unloadingstation" />
</resultMap>
<insert id="insert" parameterType="com.tianbo.analysis.model.PREPARESECONDARY">
insert into PREPARESECONDARY (AUTOID, WAYBILLNOMASTER, WAYBILLNOSECONDARY,
TOTALWEIGHT, TOTALPIECE, PREPAREPIECE,
PREPAREWEIGHT, CREATEDATE, PREPAREMASTERID,
CARRIER, FLIGHTNO, FLIGHTDATE,
ORIGINATINGSTATION, DESTINATIONSTATION,
CUSTOMSSTATUS, PAYMODE, PRODUCTNAME,
STOWAGEDATE, CUSTOMSCODE, SHIPPERNAME,
SHIPPERCITY, SHIPPERADDRESS, CONSIGNEENAME,
CONSIGNEECITY, CONSIGNEEADDRESS, RECEIPTINFORMATION,
AGENTCODE, AGENTNAME, STATUS,
SHIPPER_CODE, SHIPPER_COUNTRYCODE, SHIPPER_PHONE,
SHIPPER_FAX, CONSIGNEE_CODE, CONSIGNEE_COUNTRYCODE,
CONSIGNEE_PHONE, CONSIGNEE_FAX, SHIPPER_AEO,
CONSIGNEE_AEO, UNLOADINGSTATION)
values (#{autoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{waybillnosecondary,jdbcType=VARCHAR},
#{totalweight,jdbcType=VARCHAR}, #{totalpiece,jdbcType=VARCHAR}, #{preparepiece,jdbcType=VARCHAR},
#{prepareweight,jdbcType=VARCHAR}, #{createdate,jdbcType=TIMESTAMP}, #{preparemasterid,jdbcType=VARCHAR},
#{carrier,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=TIMESTAMP},
#{originatingstation,jdbcType=VARCHAR}, #{destinationstation,jdbcType=VARCHAR},
#{customsstatus,jdbcType=VARCHAR}, #{paymode,jdbcType=VARCHAR}, #{productname,jdbcType=VARCHAR},
#{stowagedate,jdbcType=TIMESTAMP}, #{customscode,jdbcType=VARCHAR}, #{shippername,jdbcType=VARCHAR},
#{shippercity,jdbcType=VARCHAR}, #{shipperaddress,jdbcType=VARCHAR}, #{consigneename,jdbcType=VARCHAR},
#{consigneecity,jdbcType=VARCHAR}, #{consigneeaddress,jdbcType=VARCHAR}, #{receiptinformation,jdbcType=VARCHAR},
#{agentcode,jdbcType=VARCHAR}, #{agentname,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR},
#{shipperCode,jdbcType=VARCHAR}, #{shipperCountrycode,jdbcType=VARCHAR}, #{shipperPhone,jdbcType=VARCHAR},
#{shipperFax,jdbcType=VARCHAR}, #{consigneeCode,jdbcType=VARCHAR}, #{consigneeCountrycode,jdbcType=VARCHAR},
#{consigneePhone,jdbcType=VARCHAR}, #{consigneeFax,jdbcType=VARCHAR}, #{shipperAeo,jdbcType=VARCHAR},
#{consigneeAeo,jdbcType=VARCHAR}, #{unloadingstation,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.tianbo.analysis.model.PREPARESECONDARY">
insert into PREPARESECONDARY
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="autoid != null">
AUTOID,
</if>
<if test="waybillnomaster != null">
WAYBILLNOMASTER,
</if>
<if test="waybillnosecondary != null">
WAYBILLNOSECONDARY,
</if>
<if test="totalweight != null">
TOTALWEIGHT,
</if>
<if test="totalpiece != null">
TOTALPIECE,
</if>
<if test="preparepiece != null">
PREPAREPIECE,
</if>
<if test="prepareweight != null">
PREPAREWEIGHT,
</if>
<if test="createdate != null">
CREATEDATE,
</if>
<if test="preparemasterid != null">
PREPAREMASTERID,
</if>
<if test="carrier != null">
CARRIER,
</if>
<if test="flightno != null">
FLIGHTNO,
</if>
<if test="flightdate != null">
FLIGHTDATE,
</if>
<if test="originatingstation != null">
ORIGINATINGSTATION,
</if>
<if test="destinationstation != null">
DESTINATIONSTATION,
</if>
<if test="customsstatus != null">
CUSTOMSSTATUS,
</if>
<if test="paymode != null">
PAYMODE,
</if>
<if test="productname != null">
PRODUCTNAME,
</if>
<if test="stowagedate != null">
STOWAGEDATE,
</if>
<if test="customscode != null">
CUSTOMSCODE,
</if>
<if test="shippername != null">
SHIPPERNAME,
</if>
<if test="shippercity != null">
SHIPPERCITY,
</if>
<if test="shipperaddress != null">
SHIPPERADDRESS,
</if>
<if test="consigneename != null">
CONSIGNEENAME,
</if>
<if test="consigneecity != null">
CONSIGNEECITY,
</if>
<if test="consigneeaddress != null">
CONSIGNEEADDRESS,
</if>
<if test="receiptinformation != null">
RECEIPTINFORMATION,
</if>
<if test="agentcode != null">
AGENTCODE,
</if>
<if test="agentname != null">
AGENTNAME,
</if>
<if test="status != null">
STATUS,
</if>
<if test="shipperCode != null">
SHIPPER_CODE,
</if>
<if test="shipperCountrycode != null">
SHIPPER_COUNTRYCODE,
</if>
<if test="shipperPhone != null">
SHIPPER_PHONE,
</if>
<if test="shipperFax != null">
SHIPPER_FAX,
</if>
<if test="consigneeCode != null">
CONSIGNEE_CODE,
</if>
<if test="consigneeCountrycode != null">
CONSIGNEE_COUNTRYCODE,
</if>
<if test="consigneePhone != null">
CONSIGNEE_PHONE,
</if>
<if test="consigneeFax != null">
CONSIGNEE_FAX,
</if>
<if test="shipperAeo != null">
SHIPPER_AEO,
</if>
<if test="consigneeAeo != null">
CONSIGNEE_AEO,
</if>
<if test="unloadingstation != null">
UNLOADINGSTATION,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="autoid != null">
#{autoid,jdbcType=VARCHAR},
</if>
<if test="waybillnomaster != null">
#{waybillnomaster,jdbcType=VARCHAR},
</if>
<if test="waybillnosecondary != null">
#{waybillnosecondary,jdbcType=VARCHAR},
</if>
<if test="totalweight != null">
#{totalweight,jdbcType=VARCHAR},
</if>
<if test="totalpiece != null">
#{totalpiece,jdbcType=VARCHAR},
</if>
<if test="preparepiece != null">
#{preparepiece,jdbcType=VARCHAR},
</if>
<if test="prepareweight != null">
#{prepareweight,jdbcType=VARCHAR},
</if>
<if test="createdate != null">
#{createdate,jdbcType=TIMESTAMP},
</if>
<if test="preparemasterid != null">
#{preparemasterid,jdbcType=VARCHAR},
</if>
<if test="carrier != null">
#{carrier,jdbcType=VARCHAR},
</if>
<if test="flightno != null">
#{flightno,jdbcType=VARCHAR},
</if>
<if test="flightdate != null">
#{flightdate,jdbcType=TIMESTAMP},
</if>
<if test="originatingstation != null">
#{originatingstation,jdbcType=VARCHAR},
</if>
<if test="destinationstation != null">
#{destinationstation,jdbcType=VARCHAR},
</if>
<if test="customsstatus != null">
#{customsstatus,jdbcType=VARCHAR},
</if>
<if test="paymode != null">
#{paymode,jdbcType=VARCHAR},
</if>
<if test="productname != null">
#{productname,jdbcType=VARCHAR},
</if>
<if test="stowagedate != null">
#{stowagedate,jdbcType=TIMESTAMP},
</if>
<if test="customscode != null">
#{customscode,jdbcType=VARCHAR},
</if>
<if test="shippername != null">
#{shippername,jdbcType=VARCHAR},
</if>
<if test="shippercity != null">
#{shippercity,jdbcType=VARCHAR},
</if>
<if test="shipperaddress != null">
#{shipperaddress,jdbcType=VARCHAR},
</if>
<if test="consigneename != null">
#{consigneename,jdbcType=VARCHAR},
</if>
<if test="consigneecity != null">
#{consigneecity,jdbcType=VARCHAR},
</if>
<if test="consigneeaddress != null">
#{consigneeaddress,jdbcType=VARCHAR},
</if>
<if test="receiptinformation != null">
#{receiptinformation,jdbcType=VARCHAR},
</if>
<if test="agentcode != null">
#{agentcode,jdbcType=VARCHAR},
</if>
<if test="agentname != null">
#{agentname,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=VARCHAR},
</if>
<if test="shipperCode != null">
#{shipperCode,jdbcType=VARCHAR},
</if>
<if test="shipperCountrycode != null">
#{shipperCountrycode,jdbcType=VARCHAR},
</if>
<if test="shipperPhone != null">
#{shipperPhone,jdbcType=VARCHAR},
</if>
<if test="shipperFax != null">
#{shipperFax,jdbcType=VARCHAR},
</if>
<if test="consigneeCode != null">
#{consigneeCode,jdbcType=VARCHAR},
</if>
<if test="consigneeCountrycode != null">
#{consigneeCountrycode,jdbcType=VARCHAR},
</if>
<if test="consigneePhone != null">
#{consigneePhone,jdbcType=VARCHAR},
</if>
<if test="consigneeFax != null">
#{consigneeFax,jdbcType=VARCHAR},
</if>
<if test="shipperAeo != null">
#{shipperAeo,jdbcType=VARCHAR},
</if>
<if test="consigneeAeo != null">
#{consigneeAeo,jdbcType=VARCHAR},
</if>
<if test="unloadingstation != null">
#{unloadingstation,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateRECEIPTION" parameterType="com.tianbo.analysis.model.PREPARESECONDARY" >
UPDATE PREPARESECONDARY
SET RECEIPTION= #{receiption,jdbcType=VARCHAR}
WHERE WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
AND WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}
</update>
<select id="selectAutoIdByawbAawbH" parameterType="com.tianbo.analysis.model.PREPARESECONDARY" resultType="com.tianbo.analysis.model.PREPARESECONDARY">
SELECT AUTOID
FROM PREPARESECONDARY
WHERE
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR} AND WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}
</select>
</mapper>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.tianbo.analysis.dao.TALLYMASTERMapper" >
<resultMap id="BaseResultMap" type="com.tianbo.analysis.model.TALLYMASTER" >
<result column="AUTOID" property="autoid" jdbcType="VARCHAR" />
<result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
<result column="TCD_NAME" property="tcdName" jdbcType="VARCHAR" />
<result column="TCD_TYPECODE" property="tcdTypecode" jdbcType="VARCHAR" />
<result column="TALLTYPE" property="talltype" jdbcType="VARCHAR" />
<result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" />
<result column="FLIGHTDATE" property="flightdate" jdbcType="TIMESTAMP" />
<result column="SEGMENT" property="segment" jdbcType="VARCHAR" />
<result column="ORIGINATINGSTATION" property="originatingstation" jdbcType="VARCHAR" />
<result column="O_NAME" property="oName" jdbcType="VARCHAR" />
<result column="DESTINATIONSTATION" property="destinationstation" jdbcType="VARCHAR" />
<result column="FD_NAME" property="fdName" jdbcType="VARCHAR" />
<result column="TOTALWEIGHT" property="totalweight" jdbcType="VARCHAR" />
<result column="TOTALGROSSWEIGHTMEASUREUC" property="totalgrossweightmeasureuc" jdbcType="VARCHAR" />
<result column="TOTALPIECE" property="totalpiece" jdbcType="VARCHAR" />
<result column="TALLYTOTALPIECE" property="tallytotalpiece" jdbcType="VARCHAR" />
<result column="TALLYTOTALWEIGHT" property="tallytotalweight" jdbcType="VARCHAR" />
<result column="GROSSWEIGHTMEASUREUC" property="grossweightmeasureuc" jdbcType="VARCHAR" />
<result column="LOADSTARTTIME" property="loadstarttime" jdbcType="TIMESTAMP" />
<result column="LOADENDTIME" property="loadendtime" jdbcType="TIMESTAMP" />
<result column="STATUS" property="status" jdbcType="VARCHAR" />
<result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" />
<result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" />
<result column="DISCHARGEDATE" property="dischargedate" jdbcType="TIMESTAMP" />
<result column="RECEIPTINFORMATION" property="receiptinformation" jdbcType="VARCHAR" />
<result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
<result column="DEAL_FLAG" property="dealFlag" jdbcType="VARCHAR" />
<result column="BILL_TALLY_FLAG" property="billTallyFlag" jdbcType="VARCHAR" />
<result column="DEAL_TIME" property="dealTime" jdbcType="TIMESTAMP" />
<result column="TRANSPORTSPLITDESCRIPTION" property="transportsplitdescription" jdbcType="VARCHAR" />
</resultMap>
<insert id="insert" parameterType="com.tianbo.analysis.model.TALLYMASTER" >
insert into TALLYMASTER (AUTOID, WAYBILLNOMASTER, TCD_NAME,
TCD_TYPECODE, TALLTYPE, FLIGHTNO,
FLIGHTDATE, SEGMENT, ORIGINATINGSTATION,
O_NAME, DESTINATIONSTATION, FD_NAME,
TOTALWEIGHT, TOTALGROSSWEIGHTMEASUREUC,
TOTALPIECE, TALLYTOTALPIECE, TALLYTOTALWEIGHT,
GROSSWEIGHTMEASUREUC, LOADSTARTTIME,
LOADENDTIME, STATUS, CUSTOMSCODE,
PRODUCTNAME, DISCHARGEDATE, RECEIPTINFORMATION,
CREATEDATE, DEAL_FLAG, BILL_TALLY_FLAG,
DEAL_TIME, TRANSPORTSPLITDESCRIPTION)
values (#{autoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{tcdName,jdbcType=VARCHAR},
#{tcdTypecode,jdbcType=VARCHAR}, #{talltype,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR},
#{flightdate,jdbcType=TIMESTAMP}, #{segment,jdbcType=VARCHAR}, #{originatingstation,jdbcType=VARCHAR},
#{oName,jdbcType=VARCHAR}, #{destinationstation,jdbcType=VARCHAR}, #{fdName,jdbcType=VARCHAR},
#{totalweight,jdbcType=VARCHAR}, #{totalgrossweightmeasureuc,jdbcType=VARCHAR},
#{totalpiece,jdbcType=VARCHAR}, #{tallytotalpiece,jdbcType=VARCHAR}, #{tallytotalweight,jdbcType=VARCHAR},
#{grossweightmeasureuc,jdbcType=VARCHAR}, #{loadstarttime,jdbcType=TIMESTAMP},
#{loadendtime,jdbcType=TIMESTAMP}, #{status,jdbcType=VARCHAR}, #{customscode,jdbcType=VARCHAR},
#{productname,jdbcType=VARCHAR}, #{dischargedate,jdbcType=TIMESTAMP}, #{receiptinformation,jdbcType=VARCHAR},
#{createdate,jdbcType=TIMESTAMP}, #{dealFlag,jdbcType=VARCHAR}, #{billTallyFlag,jdbcType=VARCHAR},
#{dealTime,jdbcType=TIMESTAMP}, #{transportsplitdescription,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.tianbo.analysis.model.TALLYMASTER" >
insert into TALLYMASTER
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="autoid != null" >
AUTOID,
</if>
<if test="waybillnomaster != null" >
WAYBILLNOMASTER,
</if>
<if test="tcdName != null" >
TCD_NAME,
</if>
<if test="tcdTypecode != null" >
TCD_TYPECODE,
</if>
<if test="talltype != null" >
TALLTYPE,
</if>
<if test="flightno != null" >
FLIGHTNO,
</if>
<if test="flightdate != null" >
FLIGHTDATE,
</if>
<if test="segment != null" >
SEGMENT,
</if>
<if test="originatingstation != null" >
ORIGINATINGSTATION,
</if>
<if test="oName != null" >
O_NAME,
</if>
<if test="destinationstation != null" >
DESTINATIONSTATION,
</if>
<if test="fdName != null" >
FD_NAME,
</if>
<if test="totalweight != null" >
TOTALWEIGHT,
</if>
<if test="totalgrossweightmeasureuc != null" >
TOTALGROSSWEIGHTMEASUREUC,
</if>
<if test="totalpiece != null" >
TOTALPIECE,
</if>
<if test="tallytotalpiece != null" >
TALLYTOTALPIECE,
</if>
<if test="tallytotalweight != null" >
TALLYTOTALWEIGHT,
</if>
<if test="grossweightmeasureuc != null" >
GROSSWEIGHTMEASUREUC,
</if>
<if test="loadstarttime != null" >
LOADSTARTTIME,
</if>
<if test="loadendtime != null" >
LOADENDTIME,
</if>
<if test="status != null" >
STATUS,
</if>
<if test="customscode != null" >
CUSTOMSCODE,
</if>
<if test="productname != null" >
PRODUCTNAME,
</if>
<if test="dischargedate != null" >
DISCHARGEDATE,
</if>
<if test="receiptinformation != null" >
RECEIPTINFORMATION,
</if>
<if test="createdate != null" >
CREATEDATE,
</if>
<if test="dealFlag != null" >
DEAL_FLAG,
</if>
<if test="billTallyFlag != null" >
BILL_TALLY_FLAG,
</if>
<if test="dealTime != null" >
DEAL_TIME,
</if>
<if test="transportsplitdescription != null" >
TRANSPORTSPLITDESCRIPTION,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="autoid != null" >
#{autoid,jdbcType=VARCHAR},
</if>
<if test="waybillnomaster != null" >
#{waybillnomaster,jdbcType=VARCHAR},
</if>
<if test="tcdName != null" >
#{tcdName,jdbcType=VARCHAR},
</if>
<if test="tcdTypecode != null" >
#{tcdTypecode,jdbcType=VARCHAR},
</if>
<if test="talltype != null" >
#{talltype,jdbcType=VARCHAR},
</if>
<if test="flightno != null" >
#{flightno,jdbcType=VARCHAR},
</if>
<if test="flightdate != null" >
#{flightdate,jdbcType=TIMESTAMP},
</if>
<if test="segment != null" >
#{segment,jdbcType=VARCHAR},
</if>
<if test="originatingstation != null" >
#{originatingstation,jdbcType=VARCHAR},
</if>
<if test="oName != null" >
#{oName,jdbcType=VARCHAR},
</if>
<if test="destinationstation != null" >
#{destinationstation,jdbcType=VARCHAR},
</if>
<if test="fdName != null" >
#{fdName,jdbcType=VARCHAR},
</if>
<if test="totalweight != null" >
#{totalweight,jdbcType=VARCHAR},
</if>
<if test="totalgrossweightmeasureuc != null" >
#{totalgrossweightmeasureuc,jdbcType=VARCHAR},
</if>
<if test="totalpiece != null" >
#{totalpiece,jdbcType=VARCHAR},
</if>
<if test="tallytotalpiece != null" >
#{tallytotalpiece,jdbcType=VARCHAR},
</if>
<if test="tallytotalweight != null" >
#{tallytotalweight,jdbcType=VARCHAR},
</if>
<if test="grossweightmeasureuc != null" >
#{grossweightmeasureuc,jdbcType=VARCHAR},
</if>
<if test="loadstarttime != null" >
#{loadstarttime,jdbcType=TIMESTAMP},
</if>
<if test="loadendtime != null" >
#{loadendtime,jdbcType=TIMESTAMP},
</if>
<if test="status != null" >
#{status,jdbcType=VARCHAR},
</if>
<if test="customscode != null" >
#{customscode,jdbcType=VARCHAR},
</if>
<if test="productname != null" >
#{productname,jdbcType=VARCHAR},
</if>
<if test="dischargedate != null" >
#{dischargedate,jdbcType=TIMESTAMP},
</if>
<if test="receiptinformation != null" >
#{receiptinformation,jdbcType=VARCHAR},
</if>
<if test="createdate != null" >
#{createdate,jdbcType=TIMESTAMP},
</if>
<if test="dealFlag != null" >
#{dealFlag,jdbcType=VARCHAR},
</if>
<if test="billTallyFlag != null" >
#{billTallyFlag,jdbcType=VARCHAR},
</if>
<if test="dealTime != null" >
#{dealTime,jdbcType=TIMESTAMP},
</if>
<if test="transportsplitdescription != null" >
#{transportsplitdescription,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateRECEIPTION" parameterType="com.tianbo.analysis.model.TALLYMASTER" >
UPDATE TALLYMASTER
SET RECEIPTINFORMATION= #{receiptinformation,jdbcType=VARCHAR}
WHERE WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
AND WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}
</update>
<select id="selectAutoIdByawbAawbH" parameterType="com.tianbo.analysis.model.TALLYMASTER" resultType="com.tianbo.analysis.model.TALLYMASTER">
SELECT AUTOID
FROM TALLYMASTER
WHERE
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR} AND WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}
</select>
</mapper>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.tianbo.analysis.dao.TALLYSECONDARYMapper" >
<resultMap id="BaseResultMap" type="com.tianbo.analysis.model.TALLYSECONDARY" >
<result column="AUTOID" property="autoid" jdbcType="VARCHAR" />
<result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
<result column="WAYBILLNOSECONDARY" property="waybillnosecondary" jdbcType="VARCHAR" />
<result column="WEIGHT" property="weight" jdbcType="VARCHAR" />
<result column="PIECE" property="piece" jdbcType="VARCHAR" />
<result column="TALLYPIECE" property="tallypiece" jdbcType="VARCHAR" />
<result column="TALLYWEIGHT" property="tallyweight" jdbcType="VARCHAR" />
<result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" />
<result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" />
<result column="DISCHARGEDATE" property="dischargedate" jdbcType="TIMESTAMP" />
<result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
<result column="LOADSTARTTIME" property="loadstarttime" jdbcType="TIMESTAMP" />
<result column="LOADENDTIME" property="loadendtime" jdbcType="TIMESTAMP" />
<result column="TALLYMASTERID" property="tallymasterid" jdbcType="VARCHAR" />
<result column="DEAL_FLAG" property="dealFlag" jdbcType="VARCHAR" />
<result column="BILL_TALLY_FLAG" property="billTallyFlag" jdbcType="VARCHAR" />
<result column="DEAL_TIME" property="dealTime" jdbcType="TIMESTAMP" />
<result column="STATUS" property="status" jdbcType="VARCHAR" />
<result column="RECEIPTINFORMATION" property="receiptinformation" jdbcType="VARCHAR" />
</resultMap>
<insert id="insert" parameterType="com.tianbo.analysis.model.TALLYSECONDARY" >
insert into TALLYSECONDARY (AUTOID, WAYBILLNOMASTER, WAYBILLNOSECONDARY,
WEIGHT, PIECE, TALLYPIECE,
TALLYWEIGHT, CUSTOMSCODE, PRODUCTNAME,
DISCHARGEDATE, CREATEDATE, LOADSTARTTIME,
LOADENDTIME, TALLYMASTERID, DEAL_FLAG,
BILL_TALLY_FLAG, DEAL_TIME, STATUS,
RECEIPTINFORMATION)
values (#{autoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{waybillnosecondary,jdbcType=VARCHAR},
#{weight,jdbcType=VARCHAR}, #{piece,jdbcType=VARCHAR}, #{tallypiece,jdbcType=VARCHAR},
#{tallyweight,jdbcType=VARCHAR}, #{customscode,jdbcType=VARCHAR}, #{productname,jdbcType=VARCHAR},
#{dischargedate,jdbcType=TIMESTAMP}, #{createdate,jdbcType=TIMESTAMP}, #{loadstarttime,jdbcType=TIMESTAMP},
#{loadendtime,jdbcType=TIMESTAMP}, #{tallymasterid,jdbcType=VARCHAR}, #{dealFlag,jdbcType=VARCHAR},
#{billTallyFlag,jdbcType=VARCHAR}, #{dealTime,jdbcType=TIMESTAMP}, #{status,jdbcType=VARCHAR},
#{receiptinformation,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.tianbo.analysis.model.TALLYSECONDARY" >
insert into TALLYSECONDARY
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="autoid != null" >
AUTOID,
</if>
<if test="waybillnomaster != null" >
WAYBILLNOMASTER,
</if>
<if test="waybillnosecondary != null" >
WAYBILLNOSECONDARY,
</if>
<if test="weight != null" >
WEIGHT,
</if>
<if test="piece != null" >
PIECE,
</if>
<if test="tallypiece != null" >
TALLYPIECE,
</if>
<if test="tallyweight != null" >
TALLYWEIGHT,
</if>
<if test="customscode != null" >
CUSTOMSCODE,
</if>
<if test="productname != null" >
PRODUCTNAME,
</if>
<if test="dischargedate != null" >
DISCHARGEDATE,
</if>
<if test="createdate != null" >
CREATEDATE,
</if>
<if test="loadstarttime != null" >
LOADSTARTTIME,
</if>
<if test="loadendtime != null" >
LOADENDTIME,
</if>
<if test="tallymasterid != null" >
TALLYMASTERID,
</if>
<if test="dealFlag != null" >
DEAL_FLAG,
</if>
<if test="billTallyFlag != null" >
BILL_TALLY_FLAG,
</if>
<if test="dealTime != null" >
DEAL_TIME,
</if>
<if test="status != null" >
STATUS,
</if>
<if test="receiptinformation != null" >
RECEIPTINFORMATION,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="autoid != null" >
#{autoid,jdbcType=VARCHAR},
</if>
<if test="waybillnomaster != null" >
#{waybillnomaster,jdbcType=VARCHAR},
</if>
<if test="waybillnosecondary != null" >
#{waybillnosecondary,jdbcType=VARCHAR},
</if>
<if test="weight != null" >
#{weight,jdbcType=VARCHAR},
</if>
<if test="piece != null" >
#{piece,jdbcType=VARCHAR},
</if>
<if test="tallypiece != null" >
#{tallypiece,jdbcType=VARCHAR},
</if>
<if test="tallyweight != null" >
#{tallyweight,jdbcType=VARCHAR},
</if>
<if test="customscode != null" >
#{customscode,jdbcType=VARCHAR},
</if>
<if test="productname != null" >
#{productname,jdbcType=VARCHAR},
</if>
<if test="dischargedate != null" >
#{dischargedate,jdbcType=TIMESTAMP},
</if>
<if test="createdate != null" >
#{createdate,jdbcType=TIMESTAMP},
</if>
<if test="loadstarttime != null" >
#{loadstarttime,jdbcType=TIMESTAMP},
</if>
<if test="loadendtime != null" >
#{loadendtime,jdbcType=TIMESTAMP},
</if>
<if test="tallymasterid != null" >
#{tallymasterid,jdbcType=VARCHAR},
</if>
<if test="dealFlag != null" >
#{dealFlag,jdbcType=VARCHAR},
</if>
<if test="billTallyFlag != null" >
#{billTallyFlag,jdbcType=VARCHAR},
</if>
<if test="dealTime != null" >
#{dealTime,jdbcType=TIMESTAMP},
</if>
<if test="status != null" >
#{status,jdbcType=VARCHAR},
</if>
<if test="receiptinformation != null" >
#{receiptinformation,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateRECEIPTION" parameterType="com.tianbo.analysis.model.TALLYSECONDARY" >
UPDATE TALLYSECONDARY
SET RECEIPTINFORMATION= #{receiptinformation,jdbcType=VARCHAR}
WHERE WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
AND WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}
</update>
<select id="selectAutoIdByawbAawbH" parameterType="com.tianbo.analysis.model.TALLYSECONDARY" resultType="com.tianbo.analysis.model.TALLYSECONDARY">
SELECT AUTOID
FROM TALLYSECONDARY
WHERE
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR} AND WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}
</select>
</mapper>
\ No newline at end of file
... ...