作者 朱兆平

init analysis

... ... @@ -2,7 +2,7 @@
web:
upload-path: upload/
server:
port: 10001
port: 10002
servlet:
context-path: ${SERVER_CONTEXTPATH:}
spring:
... ... @@ -16,7 +16,7 @@ spring:
static-locations: classpath:/META-INF/resources/,classpath:/static,classpath:/resources/,file:${web.upload-path}
application:
name: changeManifestInfomation
name: customAnalysisReception
jackson:
serialization:
... ...
package com.tianbo.analysis.controller;
import com.tianbo.analysis.dao.CUSTOMSMESSAGEMapper;
import com.tianbo.analysis.dao.ORIGINMANIFESTMASTERMapper;
import com.tianbo.analysis.model.CUSTOMSMESSAGE;
import com.tianbo.analysis.model.ResultJson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.List;
@RestController
@RequestMapping("/flight")
public class FlightController {
@Autowired
ORIGINMANIFESTMASTERMapper originmanifestmasterMapper;
@Autowired
CUSTOMSMESSAGEMapper customsmessageMapper;
/**
* 修改航班日期
* @param currDate 修改前日期
* @param flightNo 航班号
* @param setDate 修改后日期
*/
@PostMapping("/changeDate")
public ResultJson changeFlightDate(@RequestParam(value = "currDate",required = true) String currDate,
@RequestParam(value = "flightNo",required = true) String flightNo,
@RequestParam(value = "setDate", required = true) String setDate
){
HashMap<String ,String> map = new HashMap();
map.put("currDate",currDate);
map.put("flightNo",flightNo);
map.put("setDate",setDate);
int i = originmanifestmasterMapper.changeFlightDate(map);
if (i>0)
{
return new ResultJson("200","更新成功",i);
// return "航班日期更新成功"+i;
}
return new ResultJson("500","更新失败或航班信息不正确",i);
}
/**
* 查询运单的回执状态,目前能查到出港运单的所有回执状态,进港不行
* @param waybillno
* @return 返回 业务类型、主单号、分单号、回执内容
*/
@PostMapping("/customres")
public ResultJson getCustomResponse(@RequestParam(value = "waybillno",required = true) String waybillno){
waybillno = waybillno.replace("-","");
List<CUSTOMSMESSAGE> customsmessageList = customsmessageMapper.selectCustomResponse(waybillno);
return new ResultJson(customsmessageList);
}
/**
* 查询运单的回执状态,目前能查到出港运单 发送海关生成报文的messageId
* @param waybillno
* @return 返回 messageId,业务类型、主单号、分单号、回执内容
*/
@PostMapping("/getmessageid")
public ResultJson getCustomMessageId(@RequestParam(value = "waybillno",required = true) String waybillno){
List<CUSTOMSMESSAGE> customsmessageList = customsmessageMapper.selectCustomId(waybillno);
return new ResultJson(customsmessageList);
}
}
... ... @@ -11,8 +11,4 @@ public class IndexController {
return "index";
}
@RequestMapping("/flight/reseption")
public String reception(){
return "flight/res";
}
}
... ...
package com.tianbo.analysis.dao;
import com.tianbo.analysis.model.CUSTOMSMESSAGE;
import com.tianbo.analysis.model.CUSTOMSMESSAGEWithBLOBs;
import java.util.List;
public interface CUSTOMSMESSAGEMapper {
int insert(CUSTOMSMESSAGEWithBLOBs record);
int insertSelective(CUSTOMSMESSAGEWithBLOBs record);
List<CUSTOMSMESSAGE> selectCustomResponse(String waybillMasterNo);
List<CUSTOMSMESSAGE> selectCustomId(String waybillMasterNo);
}
\ No newline at end of file
package com.tianbo.analysis.dao;
import com.tianbo.analysis.model.ORIGINMANIFESTMASTER;
import java.util.HashMap;
public interface ORIGINMANIFESTMASTERMapper {
int insert(ORIGINMANIFESTMASTER record);
int insertSelective(ORIGINMANIFESTMASTER record);
int changeFlightDate(HashMap map);
}
\ No newline at end of file
package com.tianbo.analysis.dao;
import com.tianbo.analysis.model.T_ETL_MESSAGE;
import java.math.BigDecimal;
public interface T_ETL_MESSAGEMapper {
int deleteByPrimaryKey(BigDecimal fid);
int insert(T_ETL_MESSAGE record);
int insertSelective(T_ETL_MESSAGE record);
T_ETL_MESSAGE selectByPrimaryKey(BigDecimal fid);
int updateByPrimaryKeySelective(T_ETL_MESSAGE record);
int updateByPrimaryKeyWithBLOBs(T_ETL_MESSAGE record);
int updateByPrimaryKey(T_ETL_MESSAGE record);
}
\ No newline at end of file
package com.tianbo.analysis.handle;
import com.tianbo.analysis.model.T_ETL_MESSAGE;
import com.tianbo.analysis.service.T_ETL_MESSAGEService;
import com.tianbo.util.Date.DateUtil;
import com.tianbo.util.IO.FileTool;
import com.tianbo.util.XML.XML2ENTITY;
import org.dom4j.Document;
import org.dom4j.DocumentHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
import java.util.Date;
import java.util.Map;
/**
* 存储IMF过来的原始报文到数据仓库T_ELT_MESSAGE原始报文表中
*/
@Component
public class IMFSaveHandle {
@Autowired
protected T_ETL_MESSAGEService messageService;
private static IMFSaveHandle saveHandle;
@PostConstruct
public void init(){
saveHandle = this;
saveHandle.messageService = this.messageService;
}
public void handle(String xmlmessage){
try {
//有人发报文头部不按规范发
// xmlmessage = xmlmessage.replace("<Msg>","<MSG>")
// .replace("<msg>","<MSG>")
// .replace("</Msg>","</MSG>")
// .replace("</msg>","</MSG>");
Document document = DocumentHelper.parseText(xmlmessage);
XML2ENTITY xml2ENTITY =new XML2ENTITY();
Map xmlMap = xml2ENTITY.Dom2Map(document);
Map meta = (Map) xmlMap.get("META");
T_ETL_MESSAGE message = new T_ETL_MESSAGE();
String sndrm = meta.get("SNDR").toString();
String stypm = meta.get("STYP").toString();
if ("TXD".equals(sndrm)){
//读取配置文件的需要本地存储报文的节点
String saveStyp= FileTool.readProperties("saveStyp");
String[] styps = saveStyp.split(",");
for (String item: styps) {
if (item.equals(stypm)){
//存储至备份目录
FileTool.writeFileToBak(xmlmessage);
}
}
}
String typem = meta.get("TYPE").toString();
String rcvr = XML2ENTITY.getMap(meta,"RCVR").toString();
String ddtm = meta.get("DDTM").toString();
String seqn = meta.get("SEQN").toString();
message.setSndr(sndrm);
message.setRcvr(rcvr);
message.setType(typem);
message.setStyp(stypm);
message.setSeqn(seqn);
Date ddtmDate = DateUtil.formatByyyyyMMddHHmmss(ddtm);
message.setDdtm(ddtmDate);
message.setSntm(ddtmDate);
message.setOper("ALL");
message.setAppid("W");
message.setEtltim(new Date());
message.setContent(xmlmessage);
int i = saveHandle.messageService.insertSelective(message);
}catch (Exception e){
FileTool.writeFile("err",e.toString()+"\n"+xmlmessage,false);
FileTool.writeFile("errxml",xmlmessage,false);
}
}
}
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
package com.tianbo.analysis.model;
import java.util.Date;
public class ORIGINMANIFESTMASTER {
private String autoid;
private String waybillnomaster;
private String segment;
private String originatingstation;
private String destinationstation;
private String totalweight;
private String totalpiece;
private String manifesttotalpiece;
private String manifesttotalweight;
private String flightno;
private String productname;
private String customsstatus;
private String carrier1;
private String arrivalstation1;
private String carrier2;
private String arrivalstation2;
private String carrier3;
private String arrivalstation3;
private String paymode;
private String specialgoodscode;
private String customscode;
private String shippername;
private String shipperaddress;
private String consigneename;
private String consigneeaddress;
private String receiptinformation;
private Date createdate;
private Date flightDate;
private String status;
private String isbatch;
private String originatingstationBill;
private String destinationstationBill;
private String reportorder;
private String islast;
private String shipperCode;
private String shipperCountrycode;
private String shipperPhone;
private String shipperFax;
private String consigneeCode;
private String consigneeCountrycode;
private String consigneeFax;
private String specificConsigneename;
private String specificConsigneePhone;
private String consigneePhone;
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 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 getDestinationstation() {
return destinationstation;
}
public void setDestinationstation(String destinationstation) {
this.destinationstation = destinationstation == null ? null : destinationstation.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 getManifesttotalpiece() {
return manifesttotalpiece;
}
public void setManifesttotalpiece(String manifesttotalpiece) {
this.manifesttotalpiece = manifesttotalpiece == null ? null : manifesttotalpiece.trim();
}
public String getManifesttotalweight() {
return manifesttotalweight;
}
public void setManifesttotalweight(String manifesttotalweight) {
this.manifesttotalweight = manifesttotalweight == null ? null : manifesttotalweight.trim();
}
public String getFlightno() {
return flightno;
}
public void setFlightno(String flightno) {
this.flightno = flightno == null ? null : flightno.trim();
}
public String getProductname() {
return productname;
}
public void setProductname(String productname) {
this.productname = productname == null ? null : productname.trim();
}
public String getCustomsstatus() {
return customsstatus;
}
public void setCustomsstatus(String customsstatus) {
this.customsstatus = customsstatus == null ? null : customsstatus.trim();
}
public String getCarrier1() {
return carrier1;
}
public void setCarrier1(String carrier1) {
this.carrier1 = carrier1 == null ? null : carrier1.trim();
}
public String getArrivalstation1() {
return arrivalstation1;
}
public void setArrivalstation1(String arrivalstation1) {
this.arrivalstation1 = arrivalstation1 == null ? null : arrivalstation1.trim();
}
public String getCarrier2() {
return carrier2;
}
public void setCarrier2(String carrier2) {
this.carrier2 = carrier2 == null ? null : carrier2.trim();
}
public String getArrivalstation2() {
return arrivalstation2;
}
public void setArrivalstation2(String arrivalstation2) {
this.arrivalstation2 = arrivalstation2 == null ? null : arrivalstation2.trim();
}
public String getCarrier3() {
return carrier3;
}
public void setCarrier3(String carrier3) {
this.carrier3 = carrier3 == null ? null : carrier3.trim();
}
public String getArrivalstation3() {
return arrivalstation3;
}
public void setArrivalstation3(String arrivalstation3) {
this.arrivalstation3 = arrivalstation3 == null ? null : arrivalstation3.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 getShippername() {
return shippername;
}
public void setShippername(String shippername) {
this.shippername = shippername == null ? null : shippername.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 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 Date getFlightDate() {
return flightDate;
}
public void setFlightDate(Date flightDate) {
this.flightDate = flightDate;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status == null ? null : status.trim();
}
public String getIsbatch() {
return isbatch;
}
public void setIsbatch(String isbatch) {
this.isbatch = isbatch == null ? null : isbatch.trim();
}
public String getOriginatingstationBill() {
return originatingstationBill;
}
public void setOriginatingstationBill(String originatingstationBill) {
this.originatingstationBill = originatingstationBill == null ? null : originatingstationBill.trim();
}
public String getDestinationstationBill() {
return destinationstationBill;
}
public void setDestinationstationBill(String destinationstationBill) {
this.destinationstationBill = destinationstationBill == null ? null : destinationstationBill.trim();
}
public String getReportorder() {
return reportorder;
}
public void setReportorder(String reportorder) {
this.reportorder = reportorder == null ? null : reportorder.trim();
}
public String getIslast() {
return islast;
}
public void setIslast(String islast) {
this.islast = islast == null ? null : islast.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 getSpecificConsigneename() {
return specificConsigneename;
}
public void setSpecificConsigneename(String specificConsigneename) {
this.specificConsigneename = specificConsigneename == null ? null : specificConsigneename.trim();
}
public String getSpecificConsigneePhone() {
return specificConsigneePhone;
}
public void setSpecificConsigneePhone(String specificConsigneePhone) {
this.specificConsigneePhone = specificConsigneePhone == null ? null : specificConsigneePhone.trim();
}
public String getConsigneePhone() {
return consigneePhone;
}
public void setConsigneePhone(String consigneePhone) {
this.consigneePhone = consigneePhone == null ? null : consigneePhone.trim();
}
}
\ No newline at end of file
package com.tianbo.analysis.model;
import java.math.BigDecimal;
import java.util.Date;
public class T_ETL_MESSAGE {
private BigDecimal fid;
private String oper;
private Date sntm;
private String sndr;
private String rcvr;
private String seqn;
private Date ddtm;
private String type;
private String styp;
private String transid;
private String remark;
private Date outtm;
private BigDecimal outflag;
private Date etltim;
private BigDecimal etlflag;
private Date errtm;
private BigDecimal errflag;
private String errlog;
private String appid;
private String content;
public BigDecimal getFid() {
return fid;
}
public void setFid(BigDecimal fid) {
this.fid = fid;
}
public String getOper() {
return oper;
}
public void setOper(String oper) {
this.oper = oper == null ? null : oper.trim();
}
public Date getSntm() {
return sntm;
}
public void setSntm(Date sntm) {
this.sntm = sntm;
}
public String getSndr() {
return sndr;
}
public void setSndr(String sndr) {
this.sndr = sndr == null ? null : sndr.trim();
}
public String getRcvr() {
return rcvr;
}
public void setRcvr(String rcvr) {
this.rcvr = rcvr == null ? null : rcvr.trim();
}
public String getSeqn() {
return seqn;
}
public void setSeqn(String seqn) {
this.seqn = seqn == null ? null : seqn.trim();
}
public Date getDdtm() {
return ddtm;
}
public void setDdtm(Date ddtm) {
this.ddtm = ddtm;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type == null ? null : type.trim();
}
public String getStyp() {
return styp;
}
public void setStyp(String styp) {
this.styp = styp == null ? null : styp.trim();
}
public String getTransid() {
return transid;
}
public void setTransid(String transid) {
this.transid = transid == null ? null : transid.trim();
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public Date getOuttm() {
return outtm;
}
public void setOuttm(Date outtm) {
this.outtm = outtm;
}
public BigDecimal getOutflag() {
return outflag;
}
public void setOutflag(BigDecimal outflag) {
this.outflag = outflag;
}
public Date getEtltim() {
return etltim;
}
public void setEtltim(Date etltim) {
this.etltim = etltim;
}
public BigDecimal getEtlflag() {
return etlflag;
}
public void setEtlflag(BigDecimal etlflag) {
this.etlflag = etlflag;
}
public Date getErrtm() {
return errtm;
}
public void setErrtm(Date errtm) {
this.errtm = errtm;
}
public BigDecimal getErrflag() {
return errflag;
}
public void setErrflag(BigDecimal errflag) {
this.errflag = errflag;
}
public String getErrlog() {
return errlog;
}
public void setErrlog(String errlog) {
this.errlog = errlog;
}
public String getAppid() {
return appid;
}
public void setAppid(String appid) {
this.appid = appid == null ? null : appid.trim();
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content == null ? null : content.trim();
}
}
\ No newline at end of file
package com.tianbo.analysis.service;
import com.tianbo.analysis.model.T_ETL_MESSAGE;
public interface T_ETL_MESSAGEService {
int insert(T_ETL_MESSAGE record);
int insertSelective(T_ETL_MESSAGE record);
}
package com.tianbo.analysis.service.imp;
import com.tianbo.analysis.dao.T_ETL_MESSAGEMapper;
import com.tianbo.analysis.model.T_ETL_MESSAGE;
import com.tianbo.analysis.service.T_ETL_MESSAGEService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service("messageService")
public class T_ETL_MESSAGEServiceImp implements T_ETL_MESSAGEService{
@Autowired
private T_ETL_MESSAGEMapper messageMapper;
@Override
public int insert(T_ETL_MESSAGE record){
return messageMapper.insert(record);
}
@Override
public int insertSelective(T_ETL_MESSAGE record){
return messageMapper.insertSelective(record);
}
}
<?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>
<sql id="Response_Base">
MESSAGETYPE, WAYBILLNOMASTER, WAYBILLNOSECONDARY, RESPONSETEXT
</sql>
<select id="selectCustomResponse" parameterType="java.lang.String" resultType="com.tianbo.analysis.model.CUSTOMSMESSAGE">
SELECT
<include refid="Response_Base" />
FROM
CUSTOMSMESSAGE
WHERE
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
ORDER BY MESSAGETYPE
</select>
<select id="selectCustomId" parameterType="java.lang.String" resultType="com.tianbo.analysis.model.CUSTOMSMESSAGE">
SELECT
MESSAGEID,
<include refid="Response_Base" />
FROM
CUSTOMSMESSAGE
WHERE
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
ORDER BY MESSAGETYPE
</select>
<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>
</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.ORIGINMANIFESTMASTERMapper" >
<resultMap id="BaseResultMap" type="com.tianbo.analysis.model.ORIGINMANIFESTMASTER" >
<result column="AUTOID" property="autoid" jdbcType="VARCHAR" />
<result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
<result column="SEGMENT" property="segment" jdbcType="VARCHAR" />
<result column="ORIGINATINGSTATION" property="originatingstation" jdbcType="VARCHAR" />
<result column="DESTINATIONSTATION" property="destinationstation" jdbcType="VARCHAR" />
<result column="TOTALWEIGHT" property="totalweight" jdbcType="VARCHAR" />
<result column="TOTALPIECE" property="totalpiece" jdbcType="VARCHAR" />
<result column="MANIFESTTOTALPIECE" property="manifesttotalpiece" jdbcType="VARCHAR" />
<result column="MANIFESTTOTALWEIGHT" property="manifesttotalweight" jdbcType="VARCHAR" />
<result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" />
<result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" />
<result column="CUSTOMSSTATUS" property="customsstatus" jdbcType="VARCHAR" />
<result column="CARRIER1" property="carrier1" jdbcType="VARCHAR" />
<result column="ARRIVALSTATION1" property="arrivalstation1" jdbcType="VARCHAR" />
<result column="CARRIER2" property="carrier2" jdbcType="VARCHAR" />
<result column="ARRIVALSTATION2" property="arrivalstation2" jdbcType="VARCHAR" />
<result column="CARRIER3" property="carrier3" jdbcType="VARCHAR" />
<result column="ARRIVALSTATION3" property="arrivalstation3" jdbcType="VARCHAR" />
<result column="PAYMODE" property="paymode" jdbcType="VARCHAR" />
<result column="SPECIALGOODSCODE" property="specialgoodscode" jdbcType="VARCHAR" />
<result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" />
<result column="SHIPPERNAME" property="shippername" jdbcType="VARCHAR" />
<result column="SHIPPERADDRESS" property="shipperaddress" jdbcType="VARCHAR" />
<result column="CONSIGNEENAME" property="consigneename" jdbcType="VARCHAR" />
<result column="CONSIGNEEADDRESS" property="consigneeaddress" jdbcType="VARCHAR" />
<result column="RECEIPTINFORMATION" property="receiptinformation" jdbcType="VARCHAR" />
<result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
<result column="FLIGHT_DATE" property="flightDate" jdbcType="TIMESTAMP" />
<result column="STATUS" property="status" jdbcType="VARCHAR" />
<result column="ISBATCH" property="isbatch" jdbcType="VARCHAR" />
<result column="ORIGINATINGSTATION_BILL" property="originatingstationBill" jdbcType="VARCHAR" />
<result column="DESTINATIONSTATION_BILL" property="destinationstationBill" jdbcType="VARCHAR" />
<result column="REPORTORDER" property="reportorder" jdbcType="VARCHAR" />
<result column="ISLAST" property="islast" jdbcType="VARCHAR" />
<result column="SHIPPER_CODE" property="shipperCode" jdbcType="VARCHAR" />
<result column="SHIPPER_COUNTRYCODE" property="shipperCountrycode" jdbcType="VARCHAR" />
<result column="SHIPPER_PHONE" property="shipperPhone" jdbcType="VARCHAR" />
<result column="SHIPPER_FAX" property="shipperFax" jdbcType="VARCHAR" />
<result column="CONSIGNEE_CODE" property="consigneeCode" jdbcType="VARCHAR" />
<result column="CONSIGNEE_COUNTRYCODE" property="consigneeCountrycode" jdbcType="VARCHAR" />
<result column="CONSIGNEE_FAX" property="consigneeFax" jdbcType="VARCHAR" />
<result column="SPECIFIC_CONSIGNEENAME" property="specificConsigneename" jdbcType="VARCHAR" />
<result column="SPECIFIC_CONSIGNEE_PHONE" property="specificConsigneePhone" jdbcType="VARCHAR" />
<result column="CONSIGNEE_PHONE" property="consigneePhone" jdbcType="VARCHAR" />
</resultMap>
<insert id="insert" parameterType="com.tianbo.analysis.model.ORIGINMANIFESTMASTER" >
insert into ORIGINMANIFESTMASTER (AUTOID, WAYBILLNOMASTER, SEGMENT,
ORIGINATINGSTATION, DESTINATIONSTATION,
TOTALWEIGHT, TOTALPIECE, MANIFESTTOTALPIECE,
MANIFESTTOTALWEIGHT, FLIGHTNO, PRODUCTNAME,
CUSTOMSSTATUS, CARRIER1, ARRIVALSTATION1,
CARRIER2, ARRIVALSTATION2, CARRIER3,
ARRIVALSTATION3, PAYMODE, SPECIALGOODSCODE,
CUSTOMSCODE, SHIPPERNAME, SHIPPERADDRESS,
CONSIGNEENAME, CONSIGNEEADDRESS, RECEIPTINFORMATION,
CREATEDATE, FLIGHT_DATE, STATUS,
ISBATCH, ORIGINATINGSTATION_BILL, DESTINATIONSTATION_BILL,
REPORTORDER, ISLAST, SHIPPER_CODE,
SHIPPER_COUNTRYCODE, SHIPPER_PHONE, SHIPPER_FAX,
CONSIGNEE_CODE, CONSIGNEE_COUNTRYCODE, CONSIGNEE_FAX,
SPECIFIC_CONSIGNEENAME, SPECIFIC_CONSIGNEE_PHONE,
CONSIGNEE_PHONE)
values (#{autoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{segment,jdbcType=VARCHAR},
#{originatingstation,jdbcType=VARCHAR}, #{destinationstation,jdbcType=VARCHAR},
#{totalweight,jdbcType=VARCHAR}, #{totalpiece,jdbcType=VARCHAR}, #{manifesttotalpiece,jdbcType=VARCHAR},
#{manifesttotalweight,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{productname,jdbcType=VARCHAR},
#{customsstatus,jdbcType=VARCHAR}, #{carrier1,jdbcType=VARCHAR}, #{arrivalstation1,jdbcType=VARCHAR},
#{carrier2,jdbcType=VARCHAR}, #{arrivalstation2,jdbcType=VARCHAR}, #{carrier3,jdbcType=VARCHAR},
#{arrivalstation3,jdbcType=VARCHAR}, #{paymode,jdbcType=VARCHAR}, #{specialgoodscode,jdbcType=VARCHAR},
#{customscode,jdbcType=VARCHAR}, #{shippername,jdbcType=VARCHAR}, #{shipperaddress,jdbcType=VARCHAR},
#{consigneename,jdbcType=VARCHAR}, #{consigneeaddress,jdbcType=VARCHAR}, #{receiptinformation,jdbcType=VARCHAR},
#{createdate,jdbcType=TIMESTAMP}, #{flightDate,jdbcType=TIMESTAMP}, #{status,jdbcType=VARCHAR},
#{isbatch,jdbcType=VARCHAR}, #{originatingstationBill,jdbcType=VARCHAR}, #{destinationstationBill,jdbcType=VARCHAR},
#{reportorder,jdbcType=VARCHAR}, #{islast,jdbcType=VARCHAR}, #{shipperCode,jdbcType=VARCHAR},
#{shipperCountrycode,jdbcType=VARCHAR}, #{shipperPhone,jdbcType=VARCHAR}, #{shipperFax,jdbcType=VARCHAR},
#{consigneeCode,jdbcType=VARCHAR}, #{consigneeCountrycode,jdbcType=VARCHAR}, #{consigneeFax,jdbcType=VARCHAR},
#{specificConsigneename,jdbcType=VARCHAR}, #{specificConsigneePhone,jdbcType=VARCHAR},
#{consigneePhone,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.tianbo.analysis.model.ORIGINMANIFESTMASTER" >
insert into ORIGINMANIFESTMASTER
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="autoid != null" >
AUTOID,
</if>
<if test="waybillnomaster != null" >
WAYBILLNOMASTER,
</if>
<if test="segment != null" >
SEGMENT,
</if>
<if test="originatingstation != null" >
ORIGINATINGSTATION,
</if>
<if test="destinationstation != null" >
DESTINATIONSTATION,
</if>
<if test="totalweight != null" >
TOTALWEIGHT,
</if>
<if test="totalpiece != null" >
TOTALPIECE,
</if>
<if test="manifesttotalpiece != null" >
MANIFESTTOTALPIECE,
</if>
<if test="manifesttotalweight != null" >
MANIFESTTOTALWEIGHT,
</if>
<if test="flightno != null" >
FLIGHTNO,
</if>
<if test="productname != null" >
PRODUCTNAME,
</if>
<if test="customsstatus != null" >
CUSTOMSSTATUS,
</if>
<if test="carrier1 != null" >
CARRIER1,
</if>
<if test="arrivalstation1 != null" >
ARRIVALSTATION1,
</if>
<if test="carrier2 != null" >
CARRIER2,
</if>
<if test="arrivalstation2 != null" >
ARRIVALSTATION2,
</if>
<if test="carrier3 != null" >
CARRIER3,
</if>
<if test="arrivalstation3 != null" >
ARRIVALSTATION3,
</if>
<if test="paymode != null" >
PAYMODE,
</if>
<if test="specialgoodscode != null" >
SPECIALGOODSCODE,
</if>
<if test="customscode != null" >
CUSTOMSCODE,
</if>
<if test="shippername != null" >
SHIPPERNAME,
</if>
<if test="shipperaddress != null" >
SHIPPERADDRESS,
</if>
<if test="consigneename != null" >
CONSIGNEENAME,
</if>
<if test="consigneeaddress != null" >
CONSIGNEEADDRESS,
</if>
<if test="receiptinformation != null" >
RECEIPTINFORMATION,
</if>
<if test="createdate != null" >
CREATEDATE,
</if>
<if test="flightDate != null" >
FLIGHT_DATE,
</if>
<if test="status != null" >
STATUS,
</if>
<if test="isbatch != null" >
ISBATCH,
</if>
<if test="originatingstationBill != null" >
ORIGINATINGSTATION_BILL,
</if>
<if test="destinationstationBill != null" >
DESTINATIONSTATION_BILL,
</if>
<if test="reportorder != null" >
REPORTORDER,
</if>
<if test="islast != null" >
ISLAST,
</if>
<if test="shipperCode != null" >
SHIPPER_CODE,
</if>
<if test="shipperCountrycode != null" >
SHIPPER_COUNTRYCODE,
</if>
<if test="shipperPhone != null" >
SHIPPER_PHONE,
</if>
<if test="shipperFax != null" >
SHIPPER_FAX,
</if>
<if test="consigneeCode != null" >
CONSIGNEE_CODE,
</if>
<if test="consigneeCountrycode != null" >
CONSIGNEE_COUNTRYCODE,
</if>
<if test="consigneeFax != null" >
CONSIGNEE_FAX,
</if>
<if test="specificConsigneename != null" >
SPECIFIC_CONSIGNEENAME,
</if>
<if test="specificConsigneePhone != null" >
SPECIFIC_CONSIGNEE_PHONE,
</if>
<if test="consigneePhone != null" >
CONSIGNEE_PHONE,
</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="segment != null" >
#{segment,jdbcType=VARCHAR},
</if>
<if test="originatingstation != null" >
#{originatingstation,jdbcType=VARCHAR},
</if>
<if test="destinationstation != null" >
#{destinationstation,jdbcType=VARCHAR},
</if>
<if test="totalweight != null" >
#{totalweight,jdbcType=VARCHAR},
</if>
<if test="totalpiece != null" >
#{totalpiece,jdbcType=VARCHAR},
</if>
<if test="manifesttotalpiece != null" >
#{manifesttotalpiece,jdbcType=VARCHAR},
</if>
<if test="manifesttotalweight != null" >
#{manifesttotalweight,jdbcType=VARCHAR},
</if>
<if test="flightno != null" >
#{flightno,jdbcType=VARCHAR},
</if>
<if test="productname != null" >
#{productname,jdbcType=VARCHAR},
</if>
<if test="customsstatus != null" >
#{customsstatus,jdbcType=VARCHAR},
</if>
<if test="carrier1 != null" >
#{carrier1,jdbcType=VARCHAR},
</if>
<if test="arrivalstation1 != null" >
#{arrivalstation1,jdbcType=VARCHAR},
</if>
<if test="carrier2 != null" >
#{carrier2,jdbcType=VARCHAR},
</if>
<if test="arrivalstation2 != null" >
#{arrivalstation2,jdbcType=VARCHAR},
</if>
<if test="carrier3 != null" >
#{carrier3,jdbcType=VARCHAR},
</if>
<if test="arrivalstation3 != null" >
#{arrivalstation3,jdbcType=VARCHAR},
</if>
<if test="paymode != null" >
#{paymode,jdbcType=VARCHAR},
</if>
<if test="specialgoodscode != null" >
#{specialgoodscode,jdbcType=VARCHAR},
</if>
<if test="customscode != null" >
#{customscode,jdbcType=VARCHAR},
</if>
<if test="shippername != null" >
#{shippername,jdbcType=VARCHAR},
</if>
<if test="shipperaddress != null" >
#{shipperaddress,jdbcType=VARCHAR},
</if>
<if test="consigneename != null" >
#{consigneename,jdbcType=VARCHAR},
</if>
<if test="consigneeaddress != null" >
#{consigneeaddress,jdbcType=VARCHAR},
</if>
<if test="receiptinformation != null" >
#{receiptinformation,jdbcType=VARCHAR},
</if>
<if test="createdate != null" >
#{createdate,jdbcType=TIMESTAMP},
</if>
<if test="flightDate != null" >
#{flightDate,jdbcType=TIMESTAMP},
</if>
<if test="status != null" >
#{status,jdbcType=VARCHAR},
</if>
<if test="isbatch != null" >
#{isbatch,jdbcType=VARCHAR},
</if>
<if test="originatingstationBill != null" >
#{originatingstationBill,jdbcType=VARCHAR},
</if>
<if test="destinationstationBill != null" >
#{destinationstationBill,jdbcType=VARCHAR},
</if>
<if test="reportorder != null" >
#{reportorder,jdbcType=VARCHAR},
</if>
<if test="islast != null" >
#{islast,jdbcType=VARCHAR},
</if>
<if test="shipperCode != null" >
#{shipperCode,jdbcType=VARCHAR},
</if>
<if test="shipperCountrycode != null" >
#{shipperCountrycode,jdbcType=VARCHAR},
</if>
<if test="shipperPhone != null" >
#{shipperPhone,jdbcType=VARCHAR},
</if>
<if test="shipperFax != null" >
#{shipperFax,jdbcType=VARCHAR},
</if>
<if test="consigneeCode != null" >
#{consigneeCode,jdbcType=VARCHAR},
</if>
<if test="consigneeCountrycode != null" >
#{consigneeCountrycode,jdbcType=VARCHAR},
</if>
<if test="consigneeFax != null" >
#{consigneeFax,jdbcType=VARCHAR},
</if>
<if test="specificConsigneename != null" >
#{specificConsigneename,jdbcType=VARCHAR},
</if>
<if test="specificConsigneePhone != null" >
#{specificConsigneePhone,jdbcType=VARCHAR},
</if>
<if test="consigneePhone != null" >
#{consigneePhone,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="changeFlightDate" parameterType="hashmap">
UPDATE ORIGINMANIFESTMASTER
set FLIGHT_DATE = "TO_DATE"(#{setDate},'yyyy-mm-dd')
WHERE
FLIGHT_DATE = "TO_DATE"(#{currDate},'yyyy-mm-dd')
AND FLIGHTNO=#{flightNo}
</update>
</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.T_ETL_MESSAGEMapper">
<resultMap id="BaseResultMap" type="com.tianbo.analysis.model.T_ETL_MESSAGE">
<id column="FID" jdbcType="DECIMAL" property="fid" />
<result column="OPER" jdbcType="VARCHAR" property="oper" />
<result column="SNTM" jdbcType="TIMESTAMP" property="sntm" />
<result column="SNDR" jdbcType="VARCHAR" property="sndr" />
<result column="RCVR" jdbcType="VARCHAR" property="rcvr" />
<result column="SEQN" jdbcType="VARCHAR" property="seqn" />
<result column="DDTM" jdbcType="TIMESTAMP" property="ddtm" />
<result column="TYPE" jdbcType="VARCHAR" property="type" />
<result column="STYP" jdbcType="VARCHAR" property="styp" />
<result column="TRANSID" jdbcType="VARCHAR" property="transid" />
<result column="REMARK" jdbcType="NVARCHAR" property="remark" />
<result column="OUTTM" jdbcType="TIMESTAMP" property="outtm" />
<result column="OUTFLAG" jdbcType="DECIMAL" property="outflag" />
<result column="ETLTIM" jdbcType="TIMESTAMP" property="etltim" />
<result column="ETLFLAG" jdbcType="DECIMAL" property="etlflag" />
<result column="ERRTM" jdbcType="TIMESTAMP" property="errtm" />
<result column="ERRFLAG" jdbcType="DECIMAL" property="errflag" />
<result column="ERRLOG" jdbcType="NVARCHAR" property="errlog" />
<result column="APPID" jdbcType="VARCHAR" property="appid" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.tianbo.analysis.model.T_ETL_MESSAGE">
<result column="CONTENT" jdbcType="CLOB" property="content" />
</resultMap>
<sql id="Base_Column_List">
FID, OPER, SNTM, SNDR, RCVR, SEQN, DDTM, TYPE, STYP, TRANSID, REMARK, OUTTM, OUTFLAG,
ETLTIM, ETLFLAG, ERRTM, ERRFLAG, ERRLOG, APPID
</sql>
<sql id="Blob_Column_List">
CONTENT
</sql>
<select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from T_ETL_MESSAGE
where FID = #{fid,jdbcType=DECIMAL}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
delete from T_ETL_MESSAGE
where FID = #{fid,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.tianbo.analysis.model.T_ETL_MESSAGE">
insert into T_ETL_MESSAGE (FID, OPER, SNTM,
SNDR, RCVR, SEQN, DDTM,
TYPE, STYP, TRANSID,
REMARK, OUTTM, OUTFLAG,
ETLTIM, ETLFLAG, ERRTM,
ERRFLAG, ERRLOG, APPID,
CONTENT)
values (#{fid,jdbcType=DECIMAL}, #{oper,jdbcType=VARCHAR}, #{sntm,jdbcType=TIMESTAMP},
#{sndr,jdbcType=VARCHAR}, #{rcvr,jdbcType=VARCHAR}, #{seqn,jdbcType=VARCHAR}, #{ddtm,jdbcType=TIMESTAMP},
#{type,jdbcType=VARCHAR}, #{styp,jdbcType=VARCHAR}, #{transid,jdbcType=VARCHAR},
#{remark,jdbcType=NVARCHAR}, #{outtm,jdbcType=TIMESTAMP}, #{outflag,jdbcType=DECIMAL},
#{etltim,jdbcType=TIMESTAMP}, #{etlflag,jdbcType=DECIMAL}, #{errtm,jdbcType=TIMESTAMP},
#{errflag,jdbcType=DECIMAL}, #{errlog,jdbcType=NVARCHAR}, #{appid,jdbcType=VARCHAR},
#{content,jdbcType=CLOB})
</insert>
<insert id="insertSelective" parameterType="com.tianbo.analysis.model.T_ETL_MESSAGE">
insert into T_ETL_MESSAGE
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="fid != null">
FID,
</if>
<if test="oper != null">
OPER,
</if>
<if test="sntm != null">
SNTM,
</if>
<if test="sndr != null">
SNDR,
</if>
<if test="rcvr != null">
RCVR,
</if>
<if test="seqn != null">
SEQN,
</if>
<if test="ddtm != null">
DDTM,
</if>
<if test="type != null">
TYPE,
</if>
<if test="styp != null">
STYP,
</if>
<if test="transid != null">
TRANSID,
</if>
<if test="remark != null">
REMARK,
</if>
<if test="outtm != null">
OUTTM,
</if>
<if test="outflag != null">
OUTFLAG,
</if>
<if test="etltim != null">
ETLTIM,
</if>
<if test="etlflag != null">
ETLFLAG,
</if>
<if test="errtm != null">
ERRTM,
</if>
<if test="errflag != null">
ERRFLAG,
</if>
<if test="errlog != null">
ERRLOG,
</if>
<if test="appid != null">
APPID,
</if>
<if test="content != null">
CONTENT,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="fid != null">
#{fid,jdbcType=DECIMAL},
</if>
<if test="oper != null">
#{oper,jdbcType=VARCHAR},
</if>
<if test="sntm != null">
#{sntm,jdbcType=TIMESTAMP},
</if>
<if test="sndr != null">
#{sndr,jdbcType=VARCHAR},
</if>
<if test="rcvr != null">
#{rcvr,jdbcType=VARCHAR},
</if>
<if test="seqn != null">
#{seqn,jdbcType=VARCHAR},
</if>
<if test="ddtm != null">
#{ddtm,jdbcType=TIMESTAMP},
</if>
<if test="type != null">
#{type,jdbcType=VARCHAR},
</if>
<if test="styp != null">
#{styp,jdbcType=VARCHAR},
</if>
<if test="transid != null">
#{transid,jdbcType=VARCHAR},
</if>
<if test="remark != null">
#{remark,jdbcType=OTHER},
</if>
<if test="outtm != null">
#{outtm,jdbcType=TIMESTAMP},
</if>
<if test="outflag != null">
#{outflag,jdbcType=DECIMAL},
</if>
<if test="etltim != null">
#{etltim,jdbcType=TIMESTAMP},
</if>
<if test="etlflag != null">
#{etlflag,jdbcType=DECIMAL},
</if>
<if test="errtm != null">
#{errtm,jdbcType=TIMESTAMP},
</if>
<if test="errflag != null">
#{errflag,jdbcType=DECIMAL},
</if>
<if test="errlog != null">
#{errlog,jdbcType=OTHER},
</if>
<if test="appid != null">
#{appid,jdbcType=VARCHAR},
</if>
<if test="content != null">
#{content,jdbcType=CLOB},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.tianbo.analysis.model.T_ETL_MESSAGE">
update T_ETL_MESSAGE
<set>
<if test="oper != null">
OPER = #{oper,jdbcType=VARCHAR},
</if>
<if test="sntm != null">
SNTM = #{sntm,jdbcType=TIMESTAMP},
</if>
<if test="sndr != null">
SNDR = #{sndr,jdbcType=VARCHAR},
</if>
<if test="rcvr != null">
RCVR = #{rcvr,jdbcType=VARCHAR},
</if>
<if test="seqn != null">
SEQN = #{seqn,jdbcType=VARCHAR},
</if>
<if test="ddtm != null">
DDTM = #{ddtm,jdbcType=TIMESTAMP},
</if>
<if test="type != null">
TYPE = #{type,jdbcType=VARCHAR},
</if>
<if test="styp != null">
STYP = #{styp,jdbcType=VARCHAR},
</if>
<if test="transid != null">
TRANSID = #{transid,jdbcType=VARCHAR},
</if>
<if test="remark != null">
REMARK = #{remark,jdbcType=OTHER},
</if>
<if test="outtm != null">
OUTTM = #{outtm,jdbcType=TIMESTAMP},
</if>
<if test="outflag != null">
OUTFLAG = #{outflag,jdbcType=DECIMAL},
</if>
<if test="etltim != null">
ETLTIM = #{etltim,jdbcType=TIMESTAMP},
</if>
<if test="etlflag != null">
ETLFLAG = #{etlflag,jdbcType=DECIMAL},
</if>
<if test="errtm != null">
ERRTM = #{errtm,jdbcType=TIMESTAMP},
</if>
<if test="errflag != null">
ERRFLAG = #{errflag,jdbcType=DECIMAL},
</if>
<if test="errlog != null">
ERRLOG = #{errlog,jdbcType=OTHER},
</if>
<if test="appid != null">
APPID = #{appid,jdbcType=VARCHAR},
</if>
<if test="content != null">
CONTENT = #{content,jdbcType=CLOB},
</if>
</set>
where FID = #{fid,jdbcType=DECIMAL}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.tianbo.analysis.model.T_ETL_MESSAGE">
update T_ETL_MESSAGE
set OPER = #{oper,jdbcType=VARCHAR},
SNTM = #{sntm,jdbcType=TIMESTAMP},
SNDR = #{sndr,jdbcType=VARCHAR},
RCVR = #{rcvr,jdbcType=VARCHAR},
SEQN = #{seqn,jdbcType=VARCHAR},
DDTM = #{ddtm,jdbcType=TIMESTAMP},
TYPE = #{type,jdbcType=VARCHAR},
STYP = #{styp,jdbcType=VARCHAR},
TRANSID = #{transid,jdbcType=VARCHAR},
REMARK = #{remark,jdbcType=OTHER},
OUTTM = #{outtm,jdbcType=TIMESTAMP},
OUTFLAG = #{outflag,jdbcType=DECIMAL},
ETLTIM = #{etltim,jdbcType=TIMESTAMP},
ETLFLAG = #{etlflag,jdbcType=DECIMAL},
ERRTM = #{errtm,jdbcType=TIMESTAMP},
ERRFLAG = #{errflag,jdbcType=DECIMAL},
ERRLOG = #{errlog,jdbcType=OTHER},
APPID = #{appid,jdbcType=VARCHAR},
CONTENT = #{content,jdbcType=CLOB}
where FID = #{fid,jdbcType=DECIMAL}
</update>
<update id="updateByPrimaryKey" parameterType="com.tianbo.analysis.model.T_ETL_MESSAGE">
update T_ETL_MESSAGE
set OPER = #{oper,jdbcType=VARCHAR},
SNTM = #{sntm,jdbcType=TIMESTAMP},
SNDR = #{sndr,jdbcType=VARCHAR},
RCVR = #{rcvr,jdbcType=VARCHAR},
SEQN = #{seqn,jdbcType=VARCHAR},
DDTM = #{ddtm,jdbcType=TIMESTAMP},
TYPE = #{type,jdbcType=VARCHAR},
STYP = #{styp,jdbcType=VARCHAR},
TRANSID = #{transid,jdbcType=VARCHAR},
REMARK = #{remark,jdbcType=OTHER},
OUTTM = #{outtm,jdbcType=TIMESTAMP},
OUTFLAG = #{outflag,jdbcType=DECIMAL},
ETLTIM = #{etltim,jdbcType=TIMESTAMP},
ETLFLAG = #{etlflag,jdbcType=DECIMAL},
ERRTM = #{errtm,jdbcType=TIMESTAMP},
ERRFLAG = #{errflag,jdbcType=DECIMAL},
ERRLOG = #{errlog,jdbcType=OTHER},
APPID = #{appid,jdbcType=VARCHAR}
where FID = #{fid,jdbcType=DECIMAL}
</update>
</mapper>
\ No newline at end of file
... ... @@ -17,7 +17,7 @@
</head>
<body>
<div class="container">
新舱单信息舱单信息修改服务
新舱单系统进港放行回执解析服务
</div>
</body>
</html>
\ No newline at end of file
... ...