diff --git a/src/main/java/com/tianbo/analysis/controller/TransArriveExportController.java b/src/main/java/com/tianbo/analysis/controller/TransArriveExportController.java new file mode 100644 index 0000000..0858b43 --- /dev/null +++ b/src/main/java/com/tianbo/analysis/controller/TransArriveExportController.java @@ -0,0 +1,75 @@ +package com.tianbo.analysis.controller; + +import com.github.pagehelper.PageInfo; +import com.tianbo.analysis.model.MANIFEST_AIR_CHANGE; +import com.tianbo.analysis.model.ResultJson; +import com.tianbo.analysis.model.TRANSTOARRIVEEXPORT; +import com.tianbo.analysis.service.TransArriveExportService; +import com.tianbo.util.Date.DateUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.apache.commons.lang.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.Date; +import java.util.UUID; + +@Api(description = "转关运抵申报") +@RestController +@RequestMapping("/trans/") +public class TransArriveExportController { + @Autowired + TransArriveExportService transArriveExportService; + @ApiOperation(value = "新增转关运抵申报") + @PostMapping("/addTrans") + public ResultJson addTrans(@RequestBody TRANSTOARRIVEEXPORT transtoarriveexport){ + transtoarriveexport.setAutoid(UUID.randomUUID().toString()); + transtoarriveexport.setCreattime(new Date()); + int result=transArriveExportService.addTransArriveExport(transtoarriveexport); + return result>0?new ResultJson("200","新增转关运抵申报成功!"):new ResultJson("201","新增转关运抵申报失败!"); + } + @ApiOperation(value = "更新转关运抵申报") + @PostMapping("/ediTrans") + public ResultJson ediTrans(@RequestBody TRANSTOARRIVEEXPORT transtoarriveexport){ + int result=0;String msg=""; + if(transtoarriveexport.getAutoid()!=null){ + result=transArriveExportService.ediTransArriveExport(transtoarriveexport); + }else{ + result=0;msg="更新转关运抵申报失败!"; + } + return result>0?new ResultJson("200","更新转关运抵申报成功!"):new ResultJson("201",msg); + } + @ApiOperation(value = "删除转关运抵申报") + @PostMapping("/delTrans") + public ResultJson delTrans(@RequestBody TRANSTOARRIVEEXPORT trans){ + int result=0;String msg=""; + if(trans.getAutoid()!=null){ + result=transArriveExportService.delTransArriveExport(trans.getAutoid()); + }else{ + result=0;msg="删除转关运抵申报失败!"; + } + return result>0?new ResultJson("200","更新转关运抵申报成功!"):new ResultJson("201",msg); + } + @ApiOperation(value = "查询转关运抵申报列表") + @RequestMapping("/selectTrans") + public ResultJson<PageInfo> selectPrediction(@RequestParam(value = "customscode", required = false) String customscode, + @RequestParam(value = "username", required = false) String username, + @RequestParam(value = "trafmode", required = false) String trafmode, + @RequestParam(value = "unloadcode", required = false) String unloadcode, + @RequestParam(value = "creattime", required = false) String creattime, + @RequestParam(value = "pageNum",required = false,defaultValue = "1") int pageNum, + @RequestParam(value = "pageSize",required = false,defaultValue = "100") int pageSize){ + TRANSTOARRIVEEXPORT trans=new TRANSTOARRIVEEXPORT(); + if(StringUtils.isNotEmpty(creattime)){ + Date flight_Date = DateUtil.parseDate(creattime,"yyyyMMdd"); + trans.setCreattime(flight_Date); + } + trans.setCustomscode(customscode); + trans.setUsername(username); + trans.setTrafmode(trafmode); + trans.setUnloadcode(unloadcode); + PageInfo<TRANSTOARRIVEEXPORT> pageInfo = transArriveExportService.selectTrans(trans,pageNum,pageSize); + return new ResultJson("200","success",pageInfo); + } +} diff --git a/src/main/java/com/tianbo/analysis/dao/TRANSTOARRIVEEXPORTMapper.java b/src/main/java/com/tianbo/analysis/dao/TRANSTOARRIVEEXPORTMapper.java new file mode 100644 index 0000000..bb29e64 --- /dev/null +++ b/src/main/java/com/tianbo/analysis/dao/TRANSTOARRIVEEXPORTMapper.java @@ -0,0 +1,21 @@ +package com.tianbo.analysis.dao; + +import com.tianbo.analysis.model.TRANSTOARRIVEEXPORT; + +import java.util.List; + +public interface TRANSTOARRIVEEXPORTMapper { + int deleteByPrimaryKey(String autoid); + + int insert(TRANSTOARRIVEEXPORT record); + + int insertSelective(TRANSTOARRIVEEXPORT record); + + TRANSTOARRIVEEXPORT selectByPrimaryKey(String autoid); + + int updateByPrimaryKeySelective(TRANSTOARRIVEEXPORT record); + + int updateByPrimaryKey(TRANSTOARRIVEEXPORT record); + + List<TRANSTOARRIVEEXPORT> selectTrans(TRANSTOARRIVEEXPORT record); +} diff --git a/src/main/java/com/tianbo/analysis/model/TRANSTOARRIVEEXPORT.java b/src/main/java/com/tianbo/analysis/model/TRANSTOARRIVEEXPORT.java new file mode 100644 index 0000000..5cd33f6 --- /dev/null +++ b/src/main/java/com/tianbo/analysis/model/TRANSTOARRIVEEXPORT.java @@ -0,0 +1,355 @@ +package com.tianbo.analysis.model; + +import java.util.Date; + +public class TRANSTOARRIVEEXPORT { + private String autoid; + + private String ieflag; + + private String seqno; + + private String customscode; + + private Object inputopid; + + private String inputopname; + + private String applyname; + + private String applycode; + + private String copcode; + + private String arriveno; + + private String contaid; + + private String billno; + + private String trafmode; + + private String trafname; + + private String voyageno; + + private String trafway; + + private String packno; + + private String grosswt; + + private String unloadcode; + + private Date arrivetime; + + private String contatype; + + private String trnmode; + + private String notes; + + private String opertype; + + private String sign; + + private Date signdate; + + private String clientseqno; + + private String hostid; + + private String certno; + + private String username; + + private Date creattime; + + private String dstatus; + + private String customResponseText; + + private String customResponseStatus; + + private Date updatetime; + + public String getAutoid() { + return autoid; + } + + public void setAutoid(String autoid) { + this.autoid = autoid == null ? null : autoid.trim(); + } + + public String getIeflag() { + return ieflag; + } + + public void setIeflag(String ieflag) { + this.ieflag = ieflag == null ? null : ieflag.trim(); + } + + public String getSeqno() { + return seqno; + } + + public void setSeqno(String seqno) { + this.seqno = seqno == null ? null : seqno.trim(); + } + + public String getCustomscode() { + return customscode; + } + + public void setCustomscode(String customscode) { + this.customscode = customscode == null ? null : customscode.trim(); + } + + public Object getInputopid() { + return inputopid; + } + + public void setInputopid(Object inputopid) { + this.inputopid = inputopid; + } + + public String getInputopname() { + return inputopname; + } + + public void setInputopname(String inputopname) { + this.inputopname = inputopname == null ? null : inputopname.trim(); + } + + public String getApplyname() { + return applyname; + } + + public void setApplyname(String applyname) { + this.applyname = applyname == null ? null : applyname.trim(); + } + + public String getApplycode() { + return applycode; + } + + public void setApplycode(String applycode) { + this.applycode = applycode == null ? null : applycode.trim(); + } + + public String getCopcode() { + return copcode; + } + + public void setCopcode(String copcode) { + this.copcode = copcode == null ? null : copcode.trim(); + } + + public String getArriveno() { + return arriveno; + } + + public void setArriveno(String arriveno) { + this.arriveno = arriveno == null ? null : arriveno.trim(); + } + + public String getContaid() { + return contaid; + } + + public void setContaid(String contaid) { + this.contaid = contaid == null ? null : contaid.trim(); + } + + public String getBillno() { + return billno; + } + + public void setBillno(String billno) { + this.billno = billno == null ? null : billno.trim(); + } + + public String getTrafmode() { + return trafmode; + } + + public void setTrafmode(String trafmode) { + this.trafmode = trafmode == null ? null : trafmode.trim(); + } + + public String getTrafname() { + return trafname; + } + + public void setTrafname(String trafname) { + this.trafname = trafname == null ? null : trafname.trim(); + } + + public String getVoyageno() { + return voyageno; + } + + public void setVoyageno(String voyageno) { + this.voyageno = voyageno == null ? null : voyageno.trim(); + } + + public String getTrafway() { + return trafway; + } + + public void setTrafway(String trafway) { + this.trafway = trafway == null ? null : trafway.trim(); + } + + public String getPackno() { + return packno; + } + + public void setPackno(String packno) { + this.packno = packno == null ? null : packno.trim(); + } + + public String getGrosswt() { + return grosswt; + } + + public void setGrosswt(String grosswt) { + this.grosswt = grosswt == null ? null : grosswt.trim(); + } + + public String getUnloadcode() { + return unloadcode; + } + + public void setUnloadcode(String unloadcode) { + this.unloadcode = unloadcode == null ? null : unloadcode.trim(); + } + + public Date getArrivetime() { + return arrivetime; + } + + public void setArrivetime(Date arrivetime) { + this.arrivetime = arrivetime; + } + + public String getContatype() { + return contatype; + } + + public void setContatype(String contatype) { + this.contatype = contatype == null ? null : contatype.trim(); + } + + public String getTrnmode() { + return trnmode; + } + + public void setTrnmode(String trnmode) { + this.trnmode = trnmode == null ? null : trnmode.trim(); + } + + public String getNotes() { + return notes; + } + + public void setNotes(String notes) { + this.notes = notes == null ? null : notes.trim(); + } + + public String getOpertype() { + return opertype; + } + + public void setOpertype(String opertype) { + this.opertype = opertype == null ? null : opertype.trim(); + } + + public String getSign() { + return sign; + } + + public void setSign(String sign) { + this.sign = sign == null ? null : sign.trim(); + } + + public Date getSigndate() { + return signdate; + } + + public void setSigndate(Date signdate) { + this.signdate = signdate; + } + + public String getClientseqno() { + return clientseqno; + } + + public void setClientseqno(String clientseqno) { + this.clientseqno = clientseqno == null ? null : clientseqno.trim(); + } + + public String getHostid() { + return hostid; + } + + public void setHostid(String hostid) { + this.hostid = hostid == null ? null : hostid.trim(); + } + + public String getCertno() { + return certno; + } + + public void setCertno(String certno) { + this.certno = certno == null ? null : certno.trim(); + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username == null ? null : username.trim(); + } + + public Date getCreattime() { + return creattime; + } + + public void setCreattime(Date creattime) { + this.creattime = creattime; + } + + public String getDstatus() { + return dstatus; + } + + public void setDstatus(String dstatus) { + this.dstatus = dstatus == null ? null : dstatus.trim(); + } + + public String getCustomResponseText() { + return customResponseText; + } + + public void setCustomResponseText(String customResponseText) { + this.customResponseText = customResponseText == null ? null : customResponseText.trim(); + } + + public String getCustomResponseStatus() { + return customResponseStatus; + } + + public void setCustomResponseStatus(String customResponseStatus) { + this.customResponseStatus = customResponseStatus == null ? null : customResponseStatus.trim(); + } + + public Date getUpdatetime() { + return updatetime; + } + + public void setUpdatetime(Date updatetime) { + this.updatetime = updatetime; + } +} \ No newline at end of file diff --git a/src/main/java/com/tianbo/analysis/service/TransArriveExportService.java b/src/main/java/com/tianbo/analysis/service/TransArriveExportService.java new file mode 100644 index 0000000..4c2d5ab --- /dev/null +++ b/src/main/java/com/tianbo/analysis/service/TransArriveExportService.java @@ -0,0 +1,11 @@ +package com.tianbo.analysis.service; + +import com.github.pagehelper.PageInfo; +import com.tianbo.analysis.model.TRANSTOARRIVEEXPORT; + +public interface TransArriveExportService { + int addTransArriveExport(TRANSTOARRIVEEXPORT transtoarriveexport); + int ediTransArriveExport(TRANSTOARRIVEEXPORT transtoarriveexport); + int delTransArriveExport(String autoid); + PageInfo<TRANSTOARRIVEEXPORT> selectTrans(TRANSTOARRIVEEXPORT transtoarriveexport,int pageNum,int pageSize); +} diff --git a/src/main/java/com/tianbo/analysis/service/imp/TransArriveExportImpl.java b/src/main/java/com/tianbo/analysis/service/imp/TransArriveExportImpl.java new file mode 100644 index 0000000..23cff1e --- /dev/null +++ b/src/main/java/com/tianbo/analysis/service/imp/TransArriveExportImpl.java @@ -0,0 +1,39 @@ +package com.tianbo.analysis.service.imp; + +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.tianbo.analysis.dao.TRANSTOARRIVEEXPORTMapper; +import com.tianbo.analysis.model.TRANSTOARRIVEEXPORT; +import com.tianbo.analysis.service.TransArriveExportService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +@Service +public class TransArriveExportImpl implements TransArriveExportService { + @Autowired + TRANSTOARRIVEEXPORTMapper mapper; + @Override + public int addTransArriveExport(TRANSTOARRIVEEXPORT transtoarriveexport) { + return mapper.insertSelective(transtoarriveexport); + } + + @Override + public int ediTransArriveExport(TRANSTOARRIVEEXPORT transtoarriveexport) { + return mapper.updateByPrimaryKeySelective(transtoarriveexport); + } + + @Override + public int delTransArriveExport(String autoid) { + return mapper.deleteByPrimaryKey(autoid); + } + + @Override + public PageInfo<TRANSTOARRIVEEXPORT> selectTrans(TRANSTOARRIVEEXPORT transtoarriveexport, int pageNum, int pageSize) { + PageHelper.startPage(pageNum,pageSize); + List<TRANSTOARRIVEEXPORT> list=mapper.selectTrans(transtoarriveexport); + PageInfo<TRANSTOARRIVEEXPORT> pageInfo=new PageInfo<>(list); + return pageInfo; + } +} diff --git a/src/main/resources/mapping/TRANSTOARRIVEEXPORTMapper.xml b/src/main/resources/mapping/TRANSTOARRIVEEXPORTMapper.xml new file mode 100644 index 0000000..fc745b0 --- /dev/null +++ b/src/main/resources/mapping/TRANSTOARRIVEEXPORTMapper.xml @@ -0,0 +1,468 @@ +<?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.TRANSTOARRIVEEXPORTMapper" > + <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.TRANSTOARRIVEEXPORT" > + <id column="AUTOID" property="autoid" jdbcType="VARCHAR" /> + <result column="IEFlag" property="ieflag" jdbcType="VARCHAR" /> + <result column="SeqNo" property="seqno" jdbcType="VARCHAR" /> + <result column="CustomsCode" property="customscode" jdbcType="VARCHAR" /> + <result column="InputOpId" property="inputopid" jdbcType="OTHER" /> + <result column="InputOpName" property="inputopname" jdbcType="VARCHAR" /> + <result column="ApplyName" property="applyname" jdbcType="VARCHAR" /> + <result column="ApplyCode" property="applycode" jdbcType="VARCHAR" /> + <result column="CopCode" property="copcode" jdbcType="VARCHAR" /> + <result column="ArriveNo" property="arriveno" jdbcType="VARCHAR" /> + <result column="ContaId" property="contaid" jdbcType="VARCHAR" /> + <result column="BillNo" property="billno" jdbcType="VARCHAR" /> + <result column="TrafMode" property="trafmode" jdbcType="VARCHAR" /> + <result column="TrafName" property="trafname" jdbcType="VARCHAR" /> + <result column="VoyageNo" property="voyageno" jdbcType="VARCHAR" /> + <result column="TrafWay" property="trafway" jdbcType="VARCHAR" /> + <result column="PackNo" property="packno" jdbcType="VARCHAR" /> + <result column="GrossWt" property="grosswt" jdbcType="VARCHAR" /> + <result column="UnloadCode" property="unloadcode" jdbcType="VARCHAR" /> + <result column="ArriveTime" property="arrivetime" jdbcType="TIMESTAMP" /> + <result column="ContaType" property="contatype" jdbcType="VARCHAR" /> + <result column="TrnMode" property="trnmode" jdbcType="VARCHAR" /> + <result column="Notes" property="notes" jdbcType="VARCHAR" /> + <result column="OperType" property="opertype" jdbcType="VARCHAR" /> + <result column="Sign" property="sign" jdbcType="VARCHAR" /> + <result column="SignDate" property="signdate" jdbcType="TIMESTAMP" /> + <result column="ClientSeqNo" property="clientseqno" jdbcType="VARCHAR" /> + <result column="HostId" property="hostid" jdbcType="VARCHAR" /> + <result column="CertNo" property="certno" jdbcType="VARCHAR" /> + <result column="USERNAME" property="username" jdbcType="VARCHAR" /> + <result column="CREATTIME" property="creattime" jdbcType="TIMESTAMP" /> + <result column="DSTATUS" property="dstatus" jdbcType="VARCHAR" /> + <result column="CUSTOM_RESPONSE_TEXT" property="customResponseText" jdbcType="VARCHAR" /> + <result column="CUSTOM_RESPONSE_STATUS" property="customResponseStatus" jdbcType="VARCHAR" /> + <result column="UPDATETIME" property="updatetime" jdbcType="TIMESTAMP" /> + </resultMap> + <sql id="Base_Column_List" > + AUTOID, IEFlag, SeqNo, CustomsCode, InputOpId, InputOpName, ApplyName, ApplyCode, + CopCode, ArriveNo, ContaId, BillNo, TrafMode, TrafName, VoyageNo, TrafWay, PackNo, + GrossWt, UnloadCode, ArriveTime, ContaType, TrnMode, Notes, OperType, Sign, SignDate, + ClientSeqNo, HostId, CertNo, USERNAME, CREATTIME, DSTATUS, CUSTOM_RESPONSE_TEXT, + CUSTOM_RESPONSE_STATUS, UPDATETIME + </sql> + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" > + select + <include refid="Base_Column_List" /> + from CGONMS.TRANS_TO_ARRIVE_EXPORT + where AUTOID = #{autoid,jdbcType=VARCHAR} + </select> + <select id="selectTrans" parameterType="com.tianbo.analysis.model.TRANSTOARRIVEEXPORT" resultMap="BaseResultMap"> + select + <include refid="Base_Column_List" /> + from CGONMS.TRANS_TO_ARRIVE_EXPORT + where 1=1 + <if test="customscode != null" > + and CustomsCode = #{customscode,jdbcType=VARCHAR} + </if> + <if test="username != null" > + and USERNAME = #{username,jdbcType=VARCHAR} + </if> + <if test="trafmode != null" > + and TrafMode = #{trafmode,jdbcType=VARCHAR} + </if> + <if test="unloadcode != null" > + and UnloadCode = #{unloadcode,jdbcType=VARCHAR} + </if> + <if test="creattime != null" > + and #{creattime,jdbcType=TIMESTAMP} + </if> + </select> + <delete id="deleteByPrimaryKey" parameterType="java.lang.String" > + delete from CGONMS.TRANS_TO_ARRIVE_EXPORT + where AUTOID = #{autoid,jdbcType=VARCHAR} + </delete> + <insert id="insert" parameterType="com.tianbo.analysis.model.TRANSTOARRIVEEXPORT" > + insert into CGONMS.TRANS_TO_ARRIVE_EXPORT (AUTOID, IEFlag, SeqNo, + CustomsCode, InputOpId, InputOpName, + ApplyName, ApplyCode, CopCode, + ArriveNo, ContaId, BillNo, + TrafMode, TrafName, VoyageNo, + TrafWay, PackNo, GrossWt, + UnloadCode, ArriveTime, ContaType, + TrnMode, Notes, OperType, + Sign, SignDate, ClientSeqNo, + HostId, CertNo, USERNAME, + CREATTIME, DSTATUS, CUSTOM_RESPONSE_TEXT, + CUSTOM_RESPONSE_STATUS, UPDATETIME) + values (#{autoid,jdbcType=VARCHAR}, #{ieflag,jdbcType=VARCHAR}, #{seqno,jdbcType=VARCHAR}, + #{customscode,jdbcType=VARCHAR}, #{inputopid,jdbcType=OTHER}, #{inputopname,jdbcType=VARCHAR}, + #{applyname,jdbcType=VARCHAR}, #{applycode,jdbcType=VARCHAR}, #{copcode,jdbcType=VARCHAR}, + #{arriveno,jdbcType=VARCHAR}, #{contaid,jdbcType=VARCHAR}, #{billno,jdbcType=VARCHAR}, + #{trafmode,jdbcType=VARCHAR}, #{trafname,jdbcType=VARCHAR}, #{voyageno,jdbcType=VARCHAR}, + #{trafway,jdbcType=VARCHAR}, #{packno,jdbcType=VARCHAR}, #{grosswt,jdbcType=VARCHAR}, + #{unloadcode,jdbcType=VARCHAR}, #{arrivetime,jdbcType=TIMESTAMP}, #{contatype,jdbcType=VARCHAR}, + #{trnmode,jdbcType=VARCHAR}, #{notes,jdbcType=VARCHAR}, #{opertype,jdbcType=VARCHAR}, + #{sign,jdbcType=VARCHAR}, #{signdate,jdbcType=TIMESTAMP}, #{clientseqno,jdbcType=VARCHAR}, + #{hostid,jdbcType=VARCHAR}, #{certno,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, + #{creattime,jdbcType=TIMESTAMP}, #{dstatus,jdbcType=VARCHAR}, #{customResponseText,jdbcType=VARCHAR}, + #{customResponseStatus,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP}) + </insert> + <insert id="insertSelective" parameterType="com.tianbo.analysis.model.TRANSTOARRIVEEXPORT" > + insert into CGONMS.TRANS_TO_ARRIVE_EXPORT + <trim prefix="(" suffix=")" suffixOverrides="," > + <if test="autoid != null" > + AUTOID, + </if> + <if test="ieflag != null" > + IEFlag, + </if> + <if test="seqno != null" > + SeqNo, + </if> + <if test="customscode != null" > + CustomsCode, + </if> + <if test="inputopid != null" > + InputOpId, + </if> + <if test="inputopname != null" > + InputOpName, + </if> + <if test="applyname != null" > + ApplyName, + </if> + <if test="applycode != null" > + ApplyCode, + </if> + <if test="copcode != null" > + CopCode, + </if> + <if test="arriveno != null" > + ArriveNo, + </if> + <if test="contaid != null" > + ContaId, + </if> + <if test="billno != null" > + BillNo, + </if> + <if test="trafmode != null" > + TrafMode, + </if> + <if test="trafname != null" > + TrafName, + </if> + <if test="voyageno != null" > + VoyageNo, + </if> + <if test="trafway != null" > + TrafWay, + </if> + <if test="packno != null" > + PackNo, + </if> + <if test="grosswt != null" > + GrossWt, + </if> + <if test="unloadcode != null" > + UnloadCode, + </if> + <if test="arrivetime != null" > + ArriveTime, + </if> + <if test="contatype != null" > + ContaType, + </if> + <if test="trnmode != null" > + TrnMode, + </if> + <if test="notes != null" > + Notes, + </if> + <if test="opertype != null" > + OperType, + </if> + <if test="sign != null" > + Sign, + </if> + <if test="signdate != null" > + SignDate, + </if> + <if test="clientseqno != null" > + ClientSeqNo, + </if> + <if test="hostid != null" > + HostId, + </if> + <if test="certno != null" > + CertNo, + </if> + <if test="username != null" > + USERNAME, + </if> + <if test="creattime != null" > + CREATTIME, + </if> + <if test="dstatus != null" > + DSTATUS, + </if> + <if test="customResponseText != null" > + CUSTOM_RESPONSE_TEXT, + </if> + <if test="customResponseStatus != null" > + CUSTOM_RESPONSE_STATUS, + </if> + <if test="updatetime != null" > + UPDATETIME, + </if> + </trim> + <trim prefix="values (" suffix=")" suffixOverrides="," > + <if test="autoid != null" > + #{autoid,jdbcType=VARCHAR}, + </if> + <if test="ieflag != null" > + #{ieflag,jdbcType=VARCHAR}, + </if> + <if test="seqno != null" > + #{seqno,jdbcType=VARCHAR}, + </if> + <if test="customscode != null" > + #{customscode,jdbcType=VARCHAR}, + </if> + <if test="inputopid != null" > + #{inputopid,jdbcType=OTHER}, + </if> + <if test="inputopname != null" > + #{inputopname,jdbcType=VARCHAR}, + </if> + <if test="applyname != null" > + #{applyname,jdbcType=VARCHAR}, + </if> + <if test="applycode != null" > + #{applycode,jdbcType=VARCHAR}, + </if> + <if test="copcode != null" > + #{copcode,jdbcType=VARCHAR}, + </if> + <if test="arriveno != null" > + #{arriveno,jdbcType=VARCHAR}, + </if> + <if test="contaid != null" > + #{contaid,jdbcType=VARCHAR}, + </if> + <if test="billno != null" > + #{billno,jdbcType=VARCHAR}, + </if> + <if test="trafmode != null" > + #{trafmode,jdbcType=VARCHAR}, + </if> + <if test="trafname != null" > + #{trafname,jdbcType=VARCHAR}, + </if> + <if test="voyageno != null" > + #{voyageno,jdbcType=VARCHAR}, + </if> + <if test="trafway != null" > + #{trafway,jdbcType=VARCHAR}, + </if> + <if test="packno != null" > + #{packno,jdbcType=VARCHAR}, + </if> + <if test="grosswt != null" > + #{grosswt,jdbcType=VARCHAR}, + </if> + <if test="unloadcode != null" > + #{unloadcode,jdbcType=VARCHAR}, + </if> + <if test="arrivetime != null" > + #{arrivetime,jdbcType=TIMESTAMP}, + </if> + <if test="contatype != null" > + #{contatype,jdbcType=VARCHAR}, + </if> + <if test="trnmode != null" > + #{trnmode,jdbcType=VARCHAR}, + </if> + <if test="notes != null" > + #{notes,jdbcType=VARCHAR}, + </if> + <if test="opertype != null" > + #{opertype,jdbcType=VARCHAR}, + </if> + <if test="sign != null" > + #{sign,jdbcType=VARCHAR}, + </if> + <if test="signdate != null" > + #{signdate,jdbcType=TIMESTAMP}, + </if> + <if test="clientseqno != null" > + #{clientseqno,jdbcType=VARCHAR}, + </if> + <if test="hostid != null" > + #{hostid,jdbcType=VARCHAR}, + </if> + <if test="certno != null" > + #{certno,jdbcType=VARCHAR}, + </if> + <if test="username != null" > + #{username,jdbcType=VARCHAR}, + </if> + <if test="creattime != null" > + #{creattime,jdbcType=TIMESTAMP}, + </if> + <if test="dstatus != null" > + #{dstatus,jdbcType=VARCHAR}, + </if> + <if test="customResponseText != null" > + #{customResponseText,jdbcType=VARCHAR}, + </if> + <if test="customResponseStatus != null" > + #{customResponseStatus,jdbcType=VARCHAR}, + </if> + <if test="updatetime != null" > + #{updatetime,jdbcType=TIMESTAMP}, + </if> + </trim> + </insert> + <update id="updateByPrimaryKeySelective" parameterType="com.tianbo.analysis.model.TRANSTOARRIVEEXPORT" > + update CGONMS.TRANS_TO_ARRIVE_EXPORT + <set > + <if test="ieflag != null" > + IEFlag = #{ieflag,jdbcType=VARCHAR}, + </if> + <if test="seqno != null" > + SeqNo = #{seqno,jdbcType=VARCHAR}, + </if> + <if test="customscode != null" > + CustomsCode = #{customscode,jdbcType=VARCHAR}, + </if> + <if test="inputopid != null" > + InputOpId = #{inputopid,jdbcType=OTHER}, + </if> + <if test="inputopname != null" > + InputOpName = #{inputopname,jdbcType=VARCHAR}, + </if> + <if test="applyname != null" > + ApplyName = #{applyname,jdbcType=VARCHAR}, + </if> + <if test="applycode != null" > + ApplyCode = #{applycode,jdbcType=VARCHAR}, + </if> + <if test="copcode != null" > + CopCode = #{copcode,jdbcType=VARCHAR}, + </if> + <if test="arriveno != null" > + ArriveNo = #{arriveno,jdbcType=VARCHAR}, + </if> + <if test="contaid != null" > + ContaId = #{contaid,jdbcType=VARCHAR}, + </if> + <if test="billno != null" > + BillNo = #{billno,jdbcType=VARCHAR}, + </if> + <if test="trafmode != null" > + TrafMode = #{trafmode,jdbcType=VARCHAR}, + </if> + <if test="trafname != null" > + TrafName = #{trafname,jdbcType=VARCHAR}, + </if> + <if test="voyageno != null" > + VoyageNo = #{voyageno,jdbcType=VARCHAR}, + </if> + <if test="trafway != null" > + TrafWay = #{trafway,jdbcType=VARCHAR}, + </if> + <if test="packno != null" > + PackNo = #{packno,jdbcType=VARCHAR}, + </if> + <if test="grosswt != null" > + GrossWt = #{grosswt,jdbcType=VARCHAR}, + </if> + <if test="unloadcode != null" > + UnloadCode = #{unloadcode,jdbcType=VARCHAR}, + </if> + <if test="arrivetime != null" > + ArriveTime = #{arrivetime,jdbcType=TIMESTAMP}, + </if> + <if test="contatype != null" > + ContaType = #{contatype,jdbcType=VARCHAR}, + </if> + <if test="trnmode != null" > + TrnMode = #{trnmode,jdbcType=VARCHAR}, + </if> + <if test="notes != null" > + Notes = #{notes,jdbcType=VARCHAR}, + </if> + <if test="opertype != null" > + OperType = #{opertype,jdbcType=VARCHAR}, + </if> + <if test="sign != null" > + Sign = #{sign,jdbcType=VARCHAR}, + </if> + <if test="signdate != null" > + SignDate = #{signdate,jdbcType=TIMESTAMP}, + </if> + <if test="clientseqno != null" > + ClientSeqNo = #{clientseqno,jdbcType=VARCHAR}, + </if> + <if test="hostid != null" > + HostId = #{hostid,jdbcType=VARCHAR}, + </if> + <if test="certno != null" > + CertNo = #{certno,jdbcType=VARCHAR}, + </if> + <if test="username != null" > + USERNAME = #{username,jdbcType=VARCHAR}, + </if> + <if test="creattime != null" > + CREATTIME = #{creattime,jdbcType=TIMESTAMP}, + </if> + <if test="dstatus != null" > + DSTATUS = #{dstatus,jdbcType=VARCHAR}, + </if> + <if test="customResponseText != null" > + CUSTOM_RESPONSE_TEXT = #{customResponseText,jdbcType=VARCHAR}, + </if> + <if test="customResponseStatus != null" > + CUSTOM_RESPONSE_STATUS = #{customResponseStatus,jdbcType=VARCHAR}, + </if> + <if test="updatetime != null" > + UPDATETIME = #{updatetime,jdbcType=TIMESTAMP}, + </if> + </set> + where AUTOID = #{autoid,jdbcType=VARCHAR} + </update> + <update id="updateByPrimaryKey" parameterType="com.tianbo.analysis.model.TRANSTOARRIVEEXPORT" > + update CGONMS.TRANS_TO_ARRIVE_EXPORT + set IEFlag = #{ieflag,jdbcType=VARCHAR}, + SeqNo = #{seqno,jdbcType=VARCHAR}, + CustomsCode = #{customscode,jdbcType=VARCHAR}, + InputOpId = #{inputopid,jdbcType=OTHER}, + InputOpName = #{inputopname,jdbcType=VARCHAR}, + ApplyName = #{applyname,jdbcType=VARCHAR}, + ApplyCode = #{applycode,jdbcType=VARCHAR}, + CopCode = #{copcode,jdbcType=VARCHAR}, + ArriveNo = #{arriveno,jdbcType=VARCHAR}, + ContaId = #{contaid,jdbcType=VARCHAR}, + BillNo = #{billno,jdbcType=VARCHAR}, + TrafMode = #{trafmode,jdbcType=VARCHAR}, + TrafName = #{trafname,jdbcType=VARCHAR}, + VoyageNo = #{voyageno,jdbcType=VARCHAR}, + TrafWay = #{trafway,jdbcType=VARCHAR}, + PackNo = #{packno,jdbcType=VARCHAR}, + GrossWt = #{grosswt,jdbcType=VARCHAR}, + UnloadCode = #{unloadcode,jdbcType=VARCHAR}, + ArriveTime = #{arrivetime,jdbcType=TIMESTAMP}, + ContaType = #{contatype,jdbcType=VARCHAR}, + TrnMode = #{trnmode,jdbcType=VARCHAR}, + Notes = #{notes,jdbcType=VARCHAR}, + OperType = #{opertype,jdbcType=VARCHAR}, + Sign = #{sign,jdbcType=VARCHAR}, + SignDate = #{signdate,jdbcType=TIMESTAMP}, + ClientSeqNo = #{clientseqno,jdbcType=VARCHAR}, + HostId = #{hostid,jdbcType=VARCHAR}, + CertNo = #{certno,jdbcType=VARCHAR}, + USERNAME = #{username,jdbcType=VARCHAR}, + CREATTIME = #{creattime,jdbcType=TIMESTAMP}, + DSTATUS = #{dstatus,jdbcType=VARCHAR}, + CUSTOM_RESPONSE_TEXT = #{customResponseText,jdbcType=VARCHAR}, + CUSTOM_RESPONSE_STATUS = #{customResponseStatus,jdbcType=VARCHAR}, + UPDATETIME = #{updatetime,jdbcType=TIMESTAMP} + where AUTOID = #{autoid,jdbcType=VARCHAR} + </update> +</mapper>