作者 xudada

转关运抵申报

  1 +package com.tianbo.analysis.controller;
  2 +
  3 +import com.github.pagehelper.PageInfo;
  4 +import com.tianbo.analysis.model.MANIFEST_AIR_CHANGE;
  5 +import com.tianbo.analysis.model.ResultJson;
  6 +import com.tianbo.analysis.model.TRANSTOARRIVEEXPORT;
  7 +import com.tianbo.analysis.service.TransArriveExportService;
  8 +import com.tianbo.util.Date.DateUtil;
  9 +import io.swagger.annotations.Api;
  10 +import io.swagger.annotations.ApiOperation;
  11 +import org.apache.commons.lang.StringUtils;
  12 +import org.springframework.beans.factory.annotation.Autowired;
  13 +import org.springframework.web.bind.annotation.*;
  14 +
  15 +import java.util.Date;
  16 +import java.util.UUID;
  17 +
  18 +@Api(description = "转关运抵申报")
  19 +@RestController
  20 +@RequestMapping("/trans/")
  21 +public class TransArriveExportController {
  22 + @Autowired
  23 + TransArriveExportService transArriveExportService;
  24 + @ApiOperation(value = "新增转关运抵申报")
  25 + @PostMapping("/addTrans")
  26 + public ResultJson addTrans(@RequestBody TRANSTOARRIVEEXPORT transtoarriveexport){
  27 + transtoarriveexport.setAutoid(UUID.randomUUID().toString());
  28 + transtoarriveexport.setCreattime(new Date());
  29 + int result=transArriveExportService.addTransArriveExport(transtoarriveexport);
  30 + return result>0?new ResultJson("200","新增转关运抵申报成功!"):new ResultJson("201","新增转关运抵申报失败!");
  31 + }
  32 + @ApiOperation(value = "更新转关运抵申报")
  33 + @PostMapping("/ediTrans")
  34 + public ResultJson ediTrans(@RequestBody TRANSTOARRIVEEXPORT transtoarriveexport){
  35 + int result=0;String msg="";
  36 + if(transtoarriveexport.getAutoid()!=null){
  37 + result=transArriveExportService.ediTransArriveExport(transtoarriveexport);
  38 + }else{
  39 + result=0;msg="更新转关运抵申报失败!";
  40 + }
  41 + return result>0?new ResultJson("200","更新转关运抵申报成功!"):new ResultJson("201",msg);
  42 + }
  43 + @ApiOperation(value = "删除转关运抵申报")
  44 + @PostMapping("/delTrans")
  45 + public ResultJson delTrans(@RequestBody TRANSTOARRIVEEXPORT trans){
  46 + int result=0;String msg="";
  47 + if(trans.getAutoid()!=null){
  48 + result=transArriveExportService.delTransArriveExport(trans.getAutoid());
  49 + }else{
  50 + result=0;msg="删除转关运抵申报失败!";
  51 + }
  52 + return result>0?new ResultJson("200","更新转关运抵申报成功!"):new ResultJson("201",msg);
  53 + }
  54 + @ApiOperation(value = "查询转关运抵申报列表")
  55 + @RequestMapping("/selectTrans")
  56 + public ResultJson<PageInfo> selectPrediction(@RequestParam(value = "customscode", required = false) String customscode,
  57 + @RequestParam(value = "username", required = false) String username,
  58 + @RequestParam(value = "trafmode", required = false) String trafmode,
  59 + @RequestParam(value = "unloadcode", required = false) String unloadcode,
  60 + @RequestParam(value = "creattime", required = false) String creattime,
  61 + @RequestParam(value = "pageNum",required = false,defaultValue = "1") int pageNum,
  62 + @RequestParam(value = "pageSize",required = false,defaultValue = "100") int pageSize){
  63 + TRANSTOARRIVEEXPORT trans=new TRANSTOARRIVEEXPORT();
  64 + if(StringUtils.isNotEmpty(creattime)){
  65 + Date flight_Date = DateUtil.parseDate(creattime,"yyyyMMdd");
  66 + trans.setCreattime(flight_Date);
  67 + }
  68 + trans.setCustomscode(customscode);
  69 + trans.setUsername(username);
  70 + trans.setTrafmode(trafmode);
  71 + trans.setUnloadcode(unloadcode);
  72 + PageInfo<TRANSTOARRIVEEXPORT> pageInfo = transArriveExportService.selectTrans(trans,pageNum,pageSize);
  73 + return new ResultJson("200","success",pageInfo);
  74 + }
  75 +}
  1 +package com.tianbo.analysis.dao;
  2 +
  3 +import com.tianbo.analysis.model.TRANSTOARRIVEEXPORT;
  4 +
  5 +import java.util.List;
  6 +
  7 +public interface TRANSTOARRIVEEXPORTMapper {
  8 + int deleteByPrimaryKey(String autoid);
  9 +
  10 + int insert(TRANSTOARRIVEEXPORT record);
  11 +
  12 + int insertSelective(TRANSTOARRIVEEXPORT record);
  13 +
  14 + TRANSTOARRIVEEXPORT selectByPrimaryKey(String autoid);
  15 +
  16 + int updateByPrimaryKeySelective(TRANSTOARRIVEEXPORT record);
  17 +
  18 + int updateByPrimaryKey(TRANSTOARRIVEEXPORT record);
  19 +
  20 + List<TRANSTOARRIVEEXPORT> selectTrans(TRANSTOARRIVEEXPORT record);
  21 +}
  1 +package com.tianbo.analysis.model;
  2 +
  3 +import java.util.Date;
  4 +
  5 +public class TRANSTOARRIVEEXPORT {
  6 + private String autoid;
  7 +
  8 + private String ieflag;
  9 +
  10 + private String seqno;
  11 +
  12 + private String customscode;
  13 +
  14 + private Object inputopid;
  15 +
  16 + private String inputopname;
  17 +
  18 + private String applyname;
  19 +
  20 + private String applycode;
  21 +
  22 + private String copcode;
  23 +
  24 + private String arriveno;
  25 +
  26 + private String contaid;
  27 +
  28 + private String billno;
  29 +
  30 + private String trafmode;
  31 +
  32 + private String trafname;
  33 +
  34 + private String voyageno;
  35 +
  36 + private String trafway;
  37 +
  38 + private String packno;
  39 +
  40 + private String grosswt;
  41 +
  42 + private String unloadcode;
  43 +
  44 + private Date arrivetime;
  45 +
  46 + private String contatype;
  47 +
  48 + private String trnmode;
  49 +
  50 + private String notes;
  51 +
  52 + private String opertype;
  53 +
  54 + private String sign;
  55 +
  56 + private Date signdate;
  57 +
  58 + private String clientseqno;
  59 +
  60 + private String hostid;
  61 +
  62 + private String certno;
  63 +
  64 + private String username;
  65 +
  66 + private Date creattime;
  67 +
  68 + private String dstatus;
  69 +
  70 + private String customResponseText;
  71 +
  72 + private String customResponseStatus;
  73 +
  74 + private Date updatetime;
  75 +
  76 + public String getAutoid() {
  77 + return autoid;
  78 + }
  79 +
  80 + public void setAutoid(String autoid) {
  81 + this.autoid = autoid == null ? null : autoid.trim();
  82 + }
  83 +
  84 + public String getIeflag() {
  85 + return ieflag;
  86 + }
  87 +
  88 + public void setIeflag(String ieflag) {
  89 + this.ieflag = ieflag == null ? null : ieflag.trim();
  90 + }
  91 +
  92 + public String getSeqno() {
  93 + return seqno;
  94 + }
  95 +
  96 + public void setSeqno(String seqno) {
  97 + this.seqno = seqno == null ? null : seqno.trim();
  98 + }
  99 +
  100 + public String getCustomscode() {
  101 + return customscode;
  102 + }
  103 +
  104 + public void setCustomscode(String customscode) {
  105 + this.customscode = customscode == null ? null : customscode.trim();
  106 + }
  107 +
  108 + public Object getInputopid() {
  109 + return inputopid;
  110 + }
  111 +
  112 + public void setInputopid(Object inputopid) {
  113 + this.inputopid = inputopid;
  114 + }
  115 +
  116 + public String getInputopname() {
  117 + return inputopname;
  118 + }
  119 +
  120 + public void setInputopname(String inputopname) {
  121 + this.inputopname = inputopname == null ? null : inputopname.trim();
  122 + }
  123 +
  124 + public String getApplyname() {
  125 + return applyname;
  126 + }
  127 +
  128 + public void setApplyname(String applyname) {
  129 + this.applyname = applyname == null ? null : applyname.trim();
  130 + }
  131 +
  132 + public String getApplycode() {
  133 + return applycode;
  134 + }
  135 +
  136 + public void setApplycode(String applycode) {
  137 + this.applycode = applycode == null ? null : applycode.trim();
  138 + }
  139 +
  140 + public String getCopcode() {
  141 + return copcode;
  142 + }
  143 +
  144 + public void setCopcode(String copcode) {
  145 + this.copcode = copcode == null ? null : copcode.trim();
  146 + }
  147 +
  148 + public String getArriveno() {
  149 + return arriveno;
  150 + }
  151 +
  152 + public void setArriveno(String arriveno) {
  153 + this.arriveno = arriveno == null ? null : arriveno.trim();
  154 + }
  155 +
  156 + public String getContaid() {
  157 + return contaid;
  158 + }
  159 +
  160 + public void setContaid(String contaid) {
  161 + this.contaid = contaid == null ? null : contaid.trim();
  162 + }
  163 +
  164 + public String getBillno() {
  165 + return billno;
  166 + }
  167 +
  168 + public void setBillno(String billno) {
  169 + this.billno = billno == null ? null : billno.trim();
  170 + }
  171 +
  172 + public String getTrafmode() {
  173 + return trafmode;
  174 + }
  175 +
  176 + public void setTrafmode(String trafmode) {
  177 + this.trafmode = trafmode == null ? null : trafmode.trim();
  178 + }
  179 +
  180 + public String getTrafname() {
  181 + return trafname;
  182 + }
  183 +
  184 + public void setTrafname(String trafname) {
  185 + this.trafname = trafname == null ? null : trafname.trim();
  186 + }
  187 +
  188 + public String getVoyageno() {
  189 + return voyageno;
  190 + }
  191 +
  192 + public void setVoyageno(String voyageno) {
  193 + this.voyageno = voyageno == null ? null : voyageno.trim();
  194 + }
  195 +
  196 + public String getTrafway() {
  197 + return trafway;
  198 + }
  199 +
  200 + public void setTrafway(String trafway) {
  201 + this.trafway = trafway == null ? null : trafway.trim();
  202 + }
  203 +
  204 + public String getPackno() {
  205 + return packno;
  206 + }
  207 +
  208 + public void setPackno(String packno) {
  209 + this.packno = packno == null ? null : packno.trim();
  210 + }
  211 +
  212 + public String getGrosswt() {
  213 + return grosswt;
  214 + }
  215 +
  216 + public void setGrosswt(String grosswt) {
  217 + this.grosswt = grosswt == null ? null : grosswt.trim();
  218 + }
  219 +
  220 + public String getUnloadcode() {
  221 + return unloadcode;
  222 + }
  223 +
  224 + public void setUnloadcode(String unloadcode) {
  225 + this.unloadcode = unloadcode == null ? null : unloadcode.trim();
  226 + }
  227 +
  228 + public Date getArrivetime() {
  229 + return arrivetime;
  230 + }
  231 +
  232 + public void setArrivetime(Date arrivetime) {
  233 + this.arrivetime = arrivetime;
  234 + }
  235 +
  236 + public String getContatype() {
  237 + return contatype;
  238 + }
  239 +
  240 + public void setContatype(String contatype) {
  241 + this.contatype = contatype == null ? null : contatype.trim();
  242 + }
  243 +
  244 + public String getTrnmode() {
  245 + return trnmode;
  246 + }
  247 +
  248 + public void setTrnmode(String trnmode) {
  249 + this.trnmode = trnmode == null ? null : trnmode.trim();
  250 + }
  251 +
  252 + public String getNotes() {
  253 + return notes;
  254 + }
  255 +
  256 + public void setNotes(String notes) {
  257 + this.notes = notes == null ? null : notes.trim();
  258 + }
  259 +
  260 + public String getOpertype() {
  261 + return opertype;
  262 + }
  263 +
  264 + public void setOpertype(String opertype) {
  265 + this.opertype = opertype == null ? null : opertype.trim();
  266 + }
  267 +
  268 + public String getSign() {
  269 + return sign;
  270 + }
  271 +
  272 + public void setSign(String sign) {
  273 + this.sign = sign == null ? null : sign.trim();
  274 + }
  275 +
  276 + public Date getSigndate() {
  277 + return signdate;
  278 + }
  279 +
  280 + public void setSigndate(Date signdate) {
  281 + this.signdate = signdate;
  282 + }
  283 +
  284 + public String getClientseqno() {
  285 + return clientseqno;
  286 + }
  287 +
  288 + public void setClientseqno(String clientseqno) {
  289 + this.clientseqno = clientseqno == null ? null : clientseqno.trim();
  290 + }
  291 +
  292 + public String getHostid() {
  293 + return hostid;
  294 + }
  295 +
  296 + public void setHostid(String hostid) {
  297 + this.hostid = hostid == null ? null : hostid.trim();
  298 + }
  299 +
  300 + public String getCertno() {
  301 + return certno;
  302 + }
  303 +
  304 + public void setCertno(String certno) {
  305 + this.certno = certno == null ? null : certno.trim();
  306 + }
  307 +
  308 + public String getUsername() {
  309 + return username;
  310 + }
  311 +
  312 + public void setUsername(String username) {
  313 + this.username = username == null ? null : username.trim();
  314 + }
  315 +
  316 + public Date getCreattime() {
  317 + return creattime;
  318 + }
  319 +
  320 + public void setCreattime(Date creattime) {
  321 + this.creattime = creattime;
  322 + }
  323 +
  324 + public String getDstatus() {
  325 + return dstatus;
  326 + }
  327 +
  328 + public void setDstatus(String dstatus) {
  329 + this.dstatus = dstatus == null ? null : dstatus.trim();
  330 + }
  331 +
  332 + public String getCustomResponseText() {
  333 + return customResponseText;
  334 + }
  335 +
  336 + public void setCustomResponseText(String customResponseText) {
  337 + this.customResponseText = customResponseText == null ? null : customResponseText.trim();
  338 + }
  339 +
  340 + public String getCustomResponseStatus() {
  341 + return customResponseStatus;
  342 + }
  343 +
  344 + public void setCustomResponseStatus(String customResponseStatus) {
  345 + this.customResponseStatus = customResponseStatus == null ? null : customResponseStatus.trim();
  346 + }
  347 +
  348 + public Date getUpdatetime() {
  349 + return updatetime;
  350 + }
  351 +
  352 + public void setUpdatetime(Date updatetime) {
  353 + this.updatetime = updatetime;
  354 + }
  355 +}
  1 +package com.tianbo.analysis.service;
  2 +
  3 +import com.github.pagehelper.PageInfo;
  4 +import com.tianbo.analysis.model.TRANSTOARRIVEEXPORT;
  5 +
  6 +public interface TransArriveExportService {
  7 + int addTransArriveExport(TRANSTOARRIVEEXPORT transtoarriveexport);
  8 + int ediTransArriveExport(TRANSTOARRIVEEXPORT transtoarriveexport);
  9 + int delTransArriveExport(String autoid);
  10 + PageInfo<TRANSTOARRIVEEXPORT> selectTrans(TRANSTOARRIVEEXPORT transtoarriveexport,int pageNum,int pageSize);
  11 +}
  1 +package com.tianbo.analysis.service.imp;
  2 +
  3 +import com.github.pagehelper.PageHelper;
  4 +import com.github.pagehelper.PageInfo;
  5 +import com.tianbo.analysis.dao.TRANSTOARRIVEEXPORTMapper;
  6 +import com.tianbo.analysis.model.TRANSTOARRIVEEXPORT;
  7 +import com.tianbo.analysis.service.TransArriveExportService;
  8 +import org.springframework.beans.factory.annotation.Autowired;
  9 +import org.springframework.stereotype.Service;
  10 +
  11 +import java.util.List;
  12 +
  13 +@Service
  14 +public class TransArriveExportImpl implements TransArriveExportService {
  15 + @Autowired
  16 + TRANSTOARRIVEEXPORTMapper mapper;
  17 + @Override
  18 + public int addTransArriveExport(TRANSTOARRIVEEXPORT transtoarriveexport) {
  19 + return mapper.insertSelective(transtoarriveexport);
  20 + }
  21 +
  22 + @Override
  23 + public int ediTransArriveExport(TRANSTOARRIVEEXPORT transtoarriveexport) {
  24 + return mapper.updateByPrimaryKeySelective(transtoarriveexport);
  25 + }
  26 +
  27 + @Override
  28 + public int delTransArriveExport(String autoid) {
  29 + return mapper.deleteByPrimaryKey(autoid);
  30 + }
  31 +
  32 + @Override
  33 + public PageInfo<TRANSTOARRIVEEXPORT> selectTrans(TRANSTOARRIVEEXPORT transtoarriveexport, int pageNum, int pageSize) {
  34 + PageHelper.startPage(pageNum,pageSize);
  35 + List<TRANSTOARRIVEEXPORT> list=mapper.selectTrans(transtoarriveexport);
  36 + PageInfo<TRANSTOARRIVEEXPORT> pageInfo=new PageInfo<>(list);
  37 + return pageInfo;
  38 + }
  39 +}
  1 +<?xml version="1.0" encoding="UTF-8" ?>
  2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3 +<mapper namespace="com.tianbo.analysis.dao.TRANSTOARRIVEEXPORTMapper" >
  4 + <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.TRANSTOARRIVEEXPORT" >
  5 + <id column="AUTOID" property="autoid" jdbcType="VARCHAR" />
  6 + <result column="IEFlag" property="ieflag" jdbcType="VARCHAR" />
  7 + <result column="SeqNo" property="seqno" jdbcType="VARCHAR" />
  8 + <result column="CustomsCode" property="customscode" jdbcType="VARCHAR" />
  9 + <result column="InputOpId" property="inputopid" jdbcType="OTHER" />
  10 + <result column="InputOpName" property="inputopname" jdbcType="VARCHAR" />
  11 + <result column="ApplyName" property="applyname" jdbcType="VARCHAR" />
  12 + <result column="ApplyCode" property="applycode" jdbcType="VARCHAR" />
  13 + <result column="CopCode" property="copcode" jdbcType="VARCHAR" />
  14 + <result column="ArriveNo" property="arriveno" jdbcType="VARCHAR" />
  15 + <result column="ContaId" property="contaid" jdbcType="VARCHAR" />
  16 + <result column="BillNo" property="billno" jdbcType="VARCHAR" />
  17 + <result column="TrafMode" property="trafmode" jdbcType="VARCHAR" />
  18 + <result column="TrafName" property="trafname" jdbcType="VARCHAR" />
  19 + <result column="VoyageNo" property="voyageno" jdbcType="VARCHAR" />
  20 + <result column="TrafWay" property="trafway" jdbcType="VARCHAR" />
  21 + <result column="PackNo" property="packno" jdbcType="VARCHAR" />
  22 + <result column="GrossWt" property="grosswt" jdbcType="VARCHAR" />
  23 + <result column="UnloadCode" property="unloadcode" jdbcType="VARCHAR" />
  24 + <result column="ArriveTime" property="arrivetime" jdbcType="TIMESTAMP" />
  25 + <result column="ContaType" property="contatype" jdbcType="VARCHAR" />
  26 + <result column="TrnMode" property="trnmode" jdbcType="VARCHAR" />
  27 + <result column="Notes" property="notes" jdbcType="VARCHAR" />
  28 + <result column="OperType" property="opertype" jdbcType="VARCHAR" />
  29 + <result column="Sign" property="sign" jdbcType="VARCHAR" />
  30 + <result column="SignDate" property="signdate" jdbcType="TIMESTAMP" />
  31 + <result column="ClientSeqNo" property="clientseqno" jdbcType="VARCHAR" />
  32 + <result column="HostId" property="hostid" jdbcType="VARCHAR" />
  33 + <result column="CertNo" property="certno" jdbcType="VARCHAR" />
  34 + <result column="USERNAME" property="username" jdbcType="VARCHAR" />
  35 + <result column="CREATTIME" property="creattime" jdbcType="TIMESTAMP" />
  36 + <result column="DSTATUS" property="dstatus" jdbcType="VARCHAR" />
  37 + <result column="CUSTOM_RESPONSE_TEXT" property="customResponseText" jdbcType="VARCHAR" />
  38 + <result column="CUSTOM_RESPONSE_STATUS" property="customResponseStatus" jdbcType="VARCHAR" />
  39 + <result column="UPDATETIME" property="updatetime" jdbcType="TIMESTAMP" />
  40 + </resultMap>
  41 + <sql id="Base_Column_List" >
  42 + AUTOID, IEFlag, SeqNo, CustomsCode, InputOpId, InputOpName, ApplyName, ApplyCode,
  43 + CopCode, ArriveNo, ContaId, BillNo, TrafMode, TrafName, VoyageNo, TrafWay, PackNo,
  44 + GrossWt, UnloadCode, ArriveTime, ContaType, TrnMode, Notes, OperType, Sign, SignDate,
  45 + ClientSeqNo, HostId, CertNo, USERNAME, CREATTIME, DSTATUS, CUSTOM_RESPONSE_TEXT,
  46 + CUSTOM_RESPONSE_STATUS, UPDATETIME
  47 + </sql>
  48 + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
  49 + select
  50 + <include refid="Base_Column_List" />
  51 + from CGONMS.TRANS_TO_ARRIVE_EXPORT
  52 + where AUTOID = #{autoid,jdbcType=VARCHAR}
  53 + </select>
  54 + <select id="selectTrans" parameterType="com.tianbo.analysis.model.TRANSTOARRIVEEXPORT" resultMap="BaseResultMap">
  55 + select
  56 + <include refid="Base_Column_List" />
  57 + from CGONMS.TRANS_TO_ARRIVE_EXPORT
  58 + where 1=1
  59 + <if test="customscode != null" >
  60 + and CustomsCode = #{customscode,jdbcType=VARCHAR}
  61 + </if>
  62 + <if test="username != null" >
  63 + and USERNAME = #{username,jdbcType=VARCHAR}
  64 + </if>
  65 + <if test="trafmode != null" >
  66 + and TrafMode = #{trafmode,jdbcType=VARCHAR}
  67 + </if>
  68 + <if test="unloadcode != null" >
  69 + and UnloadCode = #{unloadcode,jdbcType=VARCHAR}
  70 + </if>
  71 + <if test="creattime != null" >
  72 + and #{creattime,jdbcType=TIMESTAMP}
  73 + </if>
  74 + </select>
  75 + <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
  76 + delete from CGONMS.TRANS_TO_ARRIVE_EXPORT
  77 + where AUTOID = #{autoid,jdbcType=VARCHAR}
  78 + </delete>
  79 + <insert id="insert" parameterType="com.tianbo.analysis.model.TRANSTOARRIVEEXPORT" >
  80 + insert into CGONMS.TRANS_TO_ARRIVE_EXPORT (AUTOID, IEFlag, SeqNo,
  81 + CustomsCode, InputOpId, InputOpName,
  82 + ApplyName, ApplyCode, CopCode,
  83 + ArriveNo, ContaId, BillNo,
  84 + TrafMode, TrafName, VoyageNo,
  85 + TrafWay, PackNo, GrossWt,
  86 + UnloadCode, ArriveTime, ContaType,
  87 + TrnMode, Notes, OperType,
  88 + Sign, SignDate, ClientSeqNo,
  89 + HostId, CertNo, USERNAME,
  90 + CREATTIME, DSTATUS, CUSTOM_RESPONSE_TEXT,
  91 + CUSTOM_RESPONSE_STATUS, UPDATETIME)
  92 + values (#{autoid,jdbcType=VARCHAR}, #{ieflag,jdbcType=VARCHAR}, #{seqno,jdbcType=VARCHAR},
  93 + #{customscode,jdbcType=VARCHAR}, #{inputopid,jdbcType=OTHER}, #{inputopname,jdbcType=VARCHAR},
  94 + #{applyname,jdbcType=VARCHAR}, #{applycode,jdbcType=VARCHAR}, #{copcode,jdbcType=VARCHAR},
  95 + #{arriveno,jdbcType=VARCHAR}, #{contaid,jdbcType=VARCHAR}, #{billno,jdbcType=VARCHAR},
  96 + #{trafmode,jdbcType=VARCHAR}, #{trafname,jdbcType=VARCHAR}, #{voyageno,jdbcType=VARCHAR},
  97 + #{trafway,jdbcType=VARCHAR}, #{packno,jdbcType=VARCHAR}, #{grosswt,jdbcType=VARCHAR},
  98 + #{unloadcode,jdbcType=VARCHAR}, #{arrivetime,jdbcType=TIMESTAMP}, #{contatype,jdbcType=VARCHAR},
  99 + #{trnmode,jdbcType=VARCHAR}, #{notes,jdbcType=VARCHAR}, #{opertype,jdbcType=VARCHAR},
  100 + #{sign,jdbcType=VARCHAR}, #{signdate,jdbcType=TIMESTAMP}, #{clientseqno,jdbcType=VARCHAR},
  101 + #{hostid,jdbcType=VARCHAR}, #{certno,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR},
  102 + #{creattime,jdbcType=TIMESTAMP}, #{dstatus,jdbcType=VARCHAR}, #{customResponseText,jdbcType=VARCHAR},
  103 + #{customResponseStatus,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP})
  104 + </insert>
  105 + <insert id="insertSelective" parameterType="com.tianbo.analysis.model.TRANSTOARRIVEEXPORT" >
  106 + insert into CGONMS.TRANS_TO_ARRIVE_EXPORT
  107 + <trim prefix="(" suffix=")" suffixOverrides="," >
  108 + <if test="autoid != null" >
  109 + AUTOID,
  110 + </if>
  111 + <if test="ieflag != null" >
  112 + IEFlag,
  113 + </if>
  114 + <if test="seqno != null" >
  115 + SeqNo,
  116 + </if>
  117 + <if test="customscode != null" >
  118 + CustomsCode,
  119 + </if>
  120 + <if test="inputopid != null" >
  121 + InputOpId,
  122 + </if>
  123 + <if test="inputopname != null" >
  124 + InputOpName,
  125 + </if>
  126 + <if test="applyname != null" >
  127 + ApplyName,
  128 + </if>
  129 + <if test="applycode != null" >
  130 + ApplyCode,
  131 + </if>
  132 + <if test="copcode != null" >
  133 + CopCode,
  134 + </if>
  135 + <if test="arriveno != null" >
  136 + ArriveNo,
  137 + </if>
  138 + <if test="contaid != null" >
  139 + ContaId,
  140 + </if>
  141 + <if test="billno != null" >
  142 + BillNo,
  143 + </if>
  144 + <if test="trafmode != null" >
  145 + TrafMode,
  146 + </if>
  147 + <if test="trafname != null" >
  148 + TrafName,
  149 + </if>
  150 + <if test="voyageno != null" >
  151 + VoyageNo,
  152 + </if>
  153 + <if test="trafway != null" >
  154 + TrafWay,
  155 + </if>
  156 + <if test="packno != null" >
  157 + PackNo,
  158 + </if>
  159 + <if test="grosswt != null" >
  160 + GrossWt,
  161 + </if>
  162 + <if test="unloadcode != null" >
  163 + UnloadCode,
  164 + </if>
  165 + <if test="arrivetime != null" >
  166 + ArriveTime,
  167 + </if>
  168 + <if test="contatype != null" >
  169 + ContaType,
  170 + </if>
  171 + <if test="trnmode != null" >
  172 + TrnMode,
  173 + </if>
  174 + <if test="notes != null" >
  175 + Notes,
  176 + </if>
  177 + <if test="opertype != null" >
  178 + OperType,
  179 + </if>
  180 + <if test="sign != null" >
  181 + Sign,
  182 + </if>
  183 + <if test="signdate != null" >
  184 + SignDate,
  185 + </if>
  186 + <if test="clientseqno != null" >
  187 + ClientSeqNo,
  188 + </if>
  189 + <if test="hostid != null" >
  190 + HostId,
  191 + </if>
  192 + <if test="certno != null" >
  193 + CertNo,
  194 + </if>
  195 + <if test="username != null" >
  196 + USERNAME,
  197 + </if>
  198 + <if test="creattime != null" >
  199 + CREATTIME,
  200 + </if>
  201 + <if test="dstatus != null" >
  202 + DSTATUS,
  203 + </if>
  204 + <if test="customResponseText != null" >
  205 + CUSTOM_RESPONSE_TEXT,
  206 + </if>
  207 + <if test="customResponseStatus != null" >
  208 + CUSTOM_RESPONSE_STATUS,
  209 + </if>
  210 + <if test="updatetime != null" >
  211 + UPDATETIME,
  212 + </if>
  213 + </trim>
  214 + <trim prefix="values (" suffix=")" suffixOverrides="," >
  215 + <if test="autoid != null" >
  216 + #{autoid,jdbcType=VARCHAR},
  217 + </if>
  218 + <if test="ieflag != null" >
  219 + #{ieflag,jdbcType=VARCHAR},
  220 + </if>
  221 + <if test="seqno != null" >
  222 + #{seqno,jdbcType=VARCHAR},
  223 + </if>
  224 + <if test="customscode != null" >
  225 + #{customscode,jdbcType=VARCHAR},
  226 + </if>
  227 + <if test="inputopid != null" >
  228 + #{inputopid,jdbcType=OTHER},
  229 + </if>
  230 + <if test="inputopname != null" >
  231 + #{inputopname,jdbcType=VARCHAR},
  232 + </if>
  233 + <if test="applyname != null" >
  234 + #{applyname,jdbcType=VARCHAR},
  235 + </if>
  236 + <if test="applycode != null" >
  237 + #{applycode,jdbcType=VARCHAR},
  238 + </if>
  239 + <if test="copcode != null" >
  240 + #{copcode,jdbcType=VARCHAR},
  241 + </if>
  242 + <if test="arriveno != null" >
  243 + #{arriveno,jdbcType=VARCHAR},
  244 + </if>
  245 + <if test="contaid != null" >
  246 + #{contaid,jdbcType=VARCHAR},
  247 + </if>
  248 + <if test="billno != null" >
  249 + #{billno,jdbcType=VARCHAR},
  250 + </if>
  251 + <if test="trafmode != null" >
  252 + #{trafmode,jdbcType=VARCHAR},
  253 + </if>
  254 + <if test="trafname != null" >
  255 + #{trafname,jdbcType=VARCHAR},
  256 + </if>
  257 + <if test="voyageno != null" >
  258 + #{voyageno,jdbcType=VARCHAR},
  259 + </if>
  260 + <if test="trafway != null" >
  261 + #{trafway,jdbcType=VARCHAR},
  262 + </if>
  263 + <if test="packno != null" >
  264 + #{packno,jdbcType=VARCHAR},
  265 + </if>
  266 + <if test="grosswt != null" >
  267 + #{grosswt,jdbcType=VARCHAR},
  268 + </if>
  269 + <if test="unloadcode != null" >
  270 + #{unloadcode,jdbcType=VARCHAR},
  271 + </if>
  272 + <if test="arrivetime != null" >
  273 + #{arrivetime,jdbcType=TIMESTAMP},
  274 + </if>
  275 + <if test="contatype != null" >
  276 + #{contatype,jdbcType=VARCHAR},
  277 + </if>
  278 + <if test="trnmode != null" >
  279 + #{trnmode,jdbcType=VARCHAR},
  280 + </if>
  281 + <if test="notes != null" >
  282 + #{notes,jdbcType=VARCHAR},
  283 + </if>
  284 + <if test="opertype != null" >
  285 + #{opertype,jdbcType=VARCHAR},
  286 + </if>
  287 + <if test="sign != null" >
  288 + #{sign,jdbcType=VARCHAR},
  289 + </if>
  290 + <if test="signdate != null" >
  291 + #{signdate,jdbcType=TIMESTAMP},
  292 + </if>
  293 + <if test="clientseqno != null" >
  294 + #{clientseqno,jdbcType=VARCHAR},
  295 + </if>
  296 + <if test="hostid != null" >
  297 + #{hostid,jdbcType=VARCHAR},
  298 + </if>
  299 + <if test="certno != null" >
  300 + #{certno,jdbcType=VARCHAR},
  301 + </if>
  302 + <if test="username != null" >
  303 + #{username,jdbcType=VARCHAR},
  304 + </if>
  305 + <if test="creattime != null" >
  306 + #{creattime,jdbcType=TIMESTAMP},
  307 + </if>
  308 + <if test="dstatus != null" >
  309 + #{dstatus,jdbcType=VARCHAR},
  310 + </if>
  311 + <if test="customResponseText != null" >
  312 + #{customResponseText,jdbcType=VARCHAR},
  313 + </if>
  314 + <if test="customResponseStatus != null" >
  315 + #{customResponseStatus,jdbcType=VARCHAR},
  316 + </if>
  317 + <if test="updatetime != null" >
  318 + #{updatetime,jdbcType=TIMESTAMP},
  319 + </if>
  320 + </trim>
  321 + </insert>
  322 + <update id="updateByPrimaryKeySelective" parameterType="com.tianbo.analysis.model.TRANSTOARRIVEEXPORT" >
  323 + update CGONMS.TRANS_TO_ARRIVE_EXPORT
  324 + <set >
  325 + <if test="ieflag != null" >
  326 + IEFlag = #{ieflag,jdbcType=VARCHAR},
  327 + </if>
  328 + <if test="seqno != null" >
  329 + SeqNo = #{seqno,jdbcType=VARCHAR},
  330 + </if>
  331 + <if test="customscode != null" >
  332 + CustomsCode = #{customscode,jdbcType=VARCHAR},
  333 + </if>
  334 + <if test="inputopid != null" >
  335 + InputOpId = #{inputopid,jdbcType=OTHER},
  336 + </if>
  337 + <if test="inputopname != null" >
  338 + InputOpName = #{inputopname,jdbcType=VARCHAR},
  339 + </if>
  340 + <if test="applyname != null" >
  341 + ApplyName = #{applyname,jdbcType=VARCHAR},
  342 + </if>
  343 + <if test="applycode != null" >
  344 + ApplyCode = #{applycode,jdbcType=VARCHAR},
  345 + </if>
  346 + <if test="copcode != null" >
  347 + CopCode = #{copcode,jdbcType=VARCHAR},
  348 + </if>
  349 + <if test="arriveno != null" >
  350 + ArriveNo = #{arriveno,jdbcType=VARCHAR},
  351 + </if>
  352 + <if test="contaid != null" >
  353 + ContaId = #{contaid,jdbcType=VARCHAR},
  354 + </if>
  355 + <if test="billno != null" >
  356 + BillNo = #{billno,jdbcType=VARCHAR},
  357 + </if>
  358 + <if test="trafmode != null" >
  359 + TrafMode = #{trafmode,jdbcType=VARCHAR},
  360 + </if>
  361 + <if test="trafname != null" >
  362 + TrafName = #{trafname,jdbcType=VARCHAR},
  363 + </if>
  364 + <if test="voyageno != null" >
  365 + VoyageNo = #{voyageno,jdbcType=VARCHAR},
  366 + </if>
  367 + <if test="trafway != null" >
  368 + TrafWay = #{trafway,jdbcType=VARCHAR},
  369 + </if>
  370 + <if test="packno != null" >
  371 + PackNo = #{packno,jdbcType=VARCHAR},
  372 + </if>
  373 + <if test="grosswt != null" >
  374 + GrossWt = #{grosswt,jdbcType=VARCHAR},
  375 + </if>
  376 + <if test="unloadcode != null" >
  377 + UnloadCode = #{unloadcode,jdbcType=VARCHAR},
  378 + </if>
  379 + <if test="arrivetime != null" >
  380 + ArriveTime = #{arrivetime,jdbcType=TIMESTAMP},
  381 + </if>
  382 + <if test="contatype != null" >
  383 + ContaType = #{contatype,jdbcType=VARCHAR},
  384 + </if>
  385 + <if test="trnmode != null" >
  386 + TrnMode = #{trnmode,jdbcType=VARCHAR},
  387 + </if>
  388 + <if test="notes != null" >
  389 + Notes = #{notes,jdbcType=VARCHAR},
  390 + </if>
  391 + <if test="opertype != null" >
  392 + OperType = #{opertype,jdbcType=VARCHAR},
  393 + </if>
  394 + <if test="sign != null" >
  395 + Sign = #{sign,jdbcType=VARCHAR},
  396 + </if>
  397 + <if test="signdate != null" >
  398 + SignDate = #{signdate,jdbcType=TIMESTAMP},
  399 + </if>
  400 + <if test="clientseqno != null" >
  401 + ClientSeqNo = #{clientseqno,jdbcType=VARCHAR},
  402 + </if>
  403 + <if test="hostid != null" >
  404 + HostId = #{hostid,jdbcType=VARCHAR},
  405 + </if>
  406 + <if test="certno != null" >
  407 + CertNo = #{certno,jdbcType=VARCHAR},
  408 + </if>
  409 + <if test="username != null" >
  410 + USERNAME = #{username,jdbcType=VARCHAR},
  411 + </if>
  412 + <if test="creattime != null" >
  413 + CREATTIME = #{creattime,jdbcType=TIMESTAMP},
  414 + </if>
  415 + <if test="dstatus != null" >
  416 + DSTATUS = #{dstatus,jdbcType=VARCHAR},
  417 + </if>
  418 + <if test="customResponseText != null" >
  419 + CUSTOM_RESPONSE_TEXT = #{customResponseText,jdbcType=VARCHAR},
  420 + </if>
  421 + <if test="customResponseStatus != null" >
  422 + CUSTOM_RESPONSE_STATUS = #{customResponseStatus,jdbcType=VARCHAR},
  423 + </if>
  424 + <if test="updatetime != null" >
  425 + UPDATETIME = #{updatetime,jdbcType=TIMESTAMP},
  426 + </if>
  427 + </set>
  428 + where AUTOID = #{autoid,jdbcType=VARCHAR}
  429 + </update>
  430 + <update id="updateByPrimaryKey" parameterType="com.tianbo.analysis.model.TRANSTOARRIVEEXPORT" >
  431 + update CGONMS.TRANS_TO_ARRIVE_EXPORT
  432 + set IEFlag = #{ieflag,jdbcType=VARCHAR},
  433 + SeqNo = #{seqno,jdbcType=VARCHAR},
  434 + CustomsCode = #{customscode,jdbcType=VARCHAR},
  435 + InputOpId = #{inputopid,jdbcType=OTHER},
  436 + InputOpName = #{inputopname,jdbcType=VARCHAR},
  437 + ApplyName = #{applyname,jdbcType=VARCHAR},
  438 + ApplyCode = #{applycode,jdbcType=VARCHAR},
  439 + CopCode = #{copcode,jdbcType=VARCHAR},
  440 + ArriveNo = #{arriveno,jdbcType=VARCHAR},
  441 + ContaId = #{contaid,jdbcType=VARCHAR},
  442 + BillNo = #{billno,jdbcType=VARCHAR},
  443 + TrafMode = #{trafmode,jdbcType=VARCHAR},
  444 + TrafName = #{trafname,jdbcType=VARCHAR},
  445 + VoyageNo = #{voyageno,jdbcType=VARCHAR},
  446 + TrafWay = #{trafway,jdbcType=VARCHAR},
  447 + PackNo = #{packno,jdbcType=VARCHAR},
  448 + GrossWt = #{grosswt,jdbcType=VARCHAR},
  449 + UnloadCode = #{unloadcode,jdbcType=VARCHAR},
  450 + ArriveTime = #{arrivetime,jdbcType=TIMESTAMP},
  451 + ContaType = #{contatype,jdbcType=VARCHAR},
  452 + TrnMode = #{trnmode,jdbcType=VARCHAR},
  453 + Notes = #{notes,jdbcType=VARCHAR},
  454 + OperType = #{opertype,jdbcType=VARCHAR},
  455 + Sign = #{sign,jdbcType=VARCHAR},
  456 + SignDate = #{signdate,jdbcType=TIMESTAMP},
  457 + ClientSeqNo = #{clientseqno,jdbcType=VARCHAR},
  458 + HostId = #{hostid,jdbcType=VARCHAR},
  459 + CertNo = #{certno,jdbcType=VARCHAR},
  460 + USERNAME = #{username,jdbcType=VARCHAR},
  461 + CREATTIME = #{creattime,jdbcType=TIMESTAMP},
  462 + DSTATUS = #{dstatus,jdbcType=VARCHAR},
  463 + CUSTOM_RESPONSE_TEXT = #{customResponseText,jdbcType=VARCHAR},
  464 + CUSTOM_RESPONSE_STATUS = #{customResponseStatus,jdbcType=VARCHAR},
  465 + UPDATETIME = #{updatetime,jdbcType=TIMESTAMP}
  466 + where AUTOID = #{autoid,jdbcType=VARCHAR}
  467 + </update>
  468 +</mapper>