作者 申海龙

大部分回执解析

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

要显示太多修改。

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

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
... ...