正在显示
8 个修改的文件
包含
596 行增加
和
5 行删除
| @@ -51,7 +51,7 @@ spring: | @@ -51,7 +51,7 @@ spring: | ||
| 51 | # username: root | 51 | # username: root |
| 52 | # password: | 52 | # password: |
| 53 | # driver-class-name: com.mysql.jdbc.Driver | 53 | # driver-class-name: com.mysql.jdbc.Driver |
| 54 | - max-idle: 10 | 54 | + max-idle: 20 |
| 55 | max-wait: 10000 | 55 | max-wait: 10000 |
| 56 | min-idle: 5 | 56 | min-idle: 5 |
| 57 | initial-size: 5 | 57 | initial-size: 5 |
| @@ -59,7 +59,8 @@ spring: | @@ -59,7 +59,8 @@ spring: | ||
| 59 | druid: | 59 | druid: |
| 60 | initial-size: 1 | 60 | initial-size: 1 |
| 61 | min-idle: 1 | 61 | min-idle: 1 |
| 62 | - max-active: 20 | 62 | + #最大并发连接数 |
| 63 | + max-active: 40 | ||
| 63 | #获取连接等待超时时间 | 64 | #获取连接等待超时时间 |
| 64 | max-wait: 60000 | 65 | max-wait: 60000 |
| 65 | #一个连接在池中最小生存的时间 | 66 | #一个连接在池中最小生存的时间 |
| 1 | -# 通用IMF接收客户端框架 | 1 | +# 通用IMF接收客户端框架 - 新舱单接收微信端修改数据业务后端服务 |
| 2 | 2 | ||
| 3 | * 集成IMFjar包 | 3 | * 集成IMFjar包 |
| 4 | * 集成Spring boot 及 srping cloud | 4 | * 集成Spring boot 及 srping cloud |
| 5 | * 集成websocket | 5 | * 集成websocket |
| 6 | - * 可以在线查看imf客户端运行情况 web访问路径/log/imf,可查看项目logs目录下的imf.log | ||
| 6 | + * 可以在线查看imf客户端运行情况 web访问路径/log/imf,可查看项目logs目录下的imf.log | ||
| 7 | + | ||
| 8 | +* 目前提供的接口有 | ||
| 9 | + * 更新航班日期 | ||
| 10 | + * 更新分单运抵状态重发分单 | ||
| 11 | + * 查询运单回执信息,包括运单发送的报文ID |
| 1 | +package com.tianbo.imfClient.controller; | ||
| 2 | + | ||
| 3 | +import com.tianbo.imfClient.dao.ARRIVEDSECONDARYMapper; | ||
| 4 | +import com.tianbo.imfClient.model.CUSTOMSMESSAGE; | ||
| 5 | +import com.tianbo.imfClient.model.ResultJson; | ||
| 6 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 7 | +import org.springframework.web.bind.annotation.PostMapping; | ||
| 8 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 9 | +import org.springframework.web.bind.annotation.RequestParam; | ||
| 10 | +import org.springframework.web.bind.annotation.RestController; | ||
| 11 | + | ||
| 12 | +import java.util.HashMap; | ||
| 13 | +import java.util.List; | ||
| 14 | + | ||
| 15 | +/** | ||
| 16 | + * 出港运抵服务接口 | ||
| 17 | + */ | ||
| 18 | +@RestController | ||
| 19 | +@RequestMapping("/awb") | ||
| 20 | +public class AWBController { | ||
| 21 | + | ||
| 22 | + @Autowired | ||
| 23 | + private ARRIVEDSECONDARYMapper arrivedsecondaryMapper; | ||
| 24 | + /** | ||
| 25 | + * 更新分单运抵发送状态为01-(未发送可发送) | ||
| 26 | + * @param masterno 主单号 | ||
| 27 | + * @param secendno 分单号 | ||
| 28 | + * @return 更新成功/失败 | ||
| 29 | + */ | ||
| 30 | + @PostMapping("/customres") | ||
| 31 | + public ResultJson getCustomResponse(@RequestParam(value = "masterno",required = true) String masterno, | ||
| 32 | + @RequestParam(value = "secendno",required = true) String secendno){ | ||
| 33 | + | ||
| 34 | + HashMap<String ,String> map = new HashMap(); | ||
| 35 | + map.put("masterno",masterno); | ||
| 36 | + map.put("secendno",secendno); | ||
| 37 | + int i = arrivedsecondaryMapper.updatestatus(map); | ||
| 38 | + if (i>0) | ||
| 39 | + { | ||
| 40 | + return new ResultJson("200","重发分单运抵成功",i); | ||
| 41 | +// return "航班日期更新成功"+i; | ||
| 42 | + } | ||
| 43 | + return new ResultJson("500","重发失败",i); | ||
| 44 | + } | ||
| 45 | +} |
| @@ -13,6 +13,9 @@ import org.springframework.web.bind.annotation.RestController; | @@ -13,6 +13,9 @@ import org.springframework.web.bind.annotation.RestController; | ||
| 13 | import java.util.HashMap; | 13 | import java.util.HashMap; |
| 14 | import java.util.List; | 14 | import java.util.List; |
| 15 | 15 | ||
| 16 | +/** | ||
| 17 | + * 航班信息服务接口 | ||
| 18 | + */ | ||
| 16 | @RestController | 19 | @RestController |
| 17 | @RequestMapping("/flight") | 20 | @RequestMapping("/flight") |
| 18 | public class FlightController { | 21 | public class FlightController { |
| 1 | +package com.tianbo.imfClient.dao; | ||
| 2 | + | ||
| 3 | +import com.tianbo.imfClient.model.ARRIVEDSECONDARY; | ||
| 4 | + | ||
| 5 | +import java.util.HashMap; | ||
| 6 | + | ||
| 7 | +public interface ARRIVEDSECONDARYMapper { | ||
| 8 | + int insert(ARRIVEDSECONDARY record); | ||
| 9 | + | ||
| 10 | + int insertSelective(ARRIVEDSECONDARY record); | ||
| 11 | + | ||
| 12 | + int updatestatus(HashMap map); | ||
| 13 | +} |
| 1 | +package com.tianbo.imfClient.model; | ||
| 2 | + | ||
| 3 | +import java.util.Date; | ||
| 4 | + | ||
| 5 | +public class ARRIVEDSECONDARY { | ||
| 6 | + private String autoid; | ||
| 7 | + | ||
| 8 | + private String waybillnomaster; | ||
| 9 | + | ||
| 10 | + private String tcdName; | ||
| 11 | + | ||
| 12 | + private String tcdTypecode; | ||
| 13 | + | ||
| 14 | + private String waybillnosecondary; | ||
| 15 | + | ||
| 16 | + private String carrier; | ||
| 17 | + | ||
| 18 | + private String oId; | ||
| 19 | + | ||
| 20 | + private String oName; | ||
| 21 | + | ||
| 22 | + private String fdId; | ||
| 23 | + | ||
| 24 | + private String fdName; | ||
| 25 | + | ||
| 26 | + private String flightno; | ||
| 27 | + | ||
| 28 | + private Date flightdate; | ||
| 29 | + | ||
| 30 | + private String arrivedtotalpiece; | ||
| 31 | + | ||
| 32 | + private String totalpiecequantity; | ||
| 33 | + | ||
| 34 | + private String arrivedtotalweight; | ||
| 35 | + | ||
| 36 | + private String grossweightmeasureuc; | ||
| 37 | + | ||
| 38 | + private String totalgrossweightmeasure; | ||
| 39 | + | ||
| 40 | + private String totalgrossweightmeasureuc; | ||
| 41 | + | ||
| 42 | + private String chargeableweightmeasure; | ||
| 43 | + | ||
| 44 | + private String chargeableweightmeasureuc; | ||
| 45 | + | ||
| 46 | + private Date arriveddate; | ||
| 47 | + | ||
| 48 | + private String customscode; | ||
| 49 | + | ||
| 50 | + private String productname; | ||
| 51 | + | ||
| 52 | + private Date createdate; | ||
| 53 | + | ||
| 54 | + private String arrivedmasterid; | ||
| 55 | + | ||
| 56 | + private String transportsplitdescription; | ||
| 57 | + | ||
| 58 | + private String receiption; | ||
| 59 | + | ||
| 60 | + private String status; | ||
| 61 | + | ||
| 62 | + public String getAutoid() { | ||
| 63 | + return autoid; | ||
| 64 | + } | ||
| 65 | + | ||
| 66 | + public void setAutoid(String autoid) { | ||
| 67 | + this.autoid = autoid == null ? null : autoid.trim(); | ||
| 68 | + } | ||
| 69 | + | ||
| 70 | + public String getWaybillnomaster() { | ||
| 71 | + return waybillnomaster; | ||
| 72 | + } | ||
| 73 | + | ||
| 74 | + public void setWaybillnomaster(String waybillnomaster) { | ||
| 75 | + this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim(); | ||
| 76 | + } | ||
| 77 | + | ||
| 78 | + public String getTcdName() { | ||
| 79 | + return tcdName; | ||
| 80 | + } | ||
| 81 | + | ||
| 82 | + public void setTcdName(String tcdName) { | ||
| 83 | + this.tcdName = tcdName == null ? null : tcdName.trim(); | ||
| 84 | + } | ||
| 85 | + | ||
| 86 | + public String getTcdTypecode() { | ||
| 87 | + return tcdTypecode; | ||
| 88 | + } | ||
| 89 | + | ||
| 90 | + public void setTcdTypecode(String tcdTypecode) { | ||
| 91 | + this.tcdTypecode = tcdTypecode == null ? null : tcdTypecode.trim(); | ||
| 92 | + } | ||
| 93 | + | ||
| 94 | + public String getWaybillnosecondary() { | ||
| 95 | + return waybillnosecondary; | ||
| 96 | + } | ||
| 97 | + | ||
| 98 | + public void setWaybillnosecondary(String waybillnosecondary) { | ||
| 99 | + this.waybillnosecondary = waybillnosecondary == null ? null : waybillnosecondary.trim(); | ||
| 100 | + } | ||
| 101 | + | ||
| 102 | + public String getCarrier() { | ||
| 103 | + return carrier; | ||
| 104 | + } | ||
| 105 | + | ||
| 106 | + public void setCarrier(String carrier) { | ||
| 107 | + this.carrier = carrier == null ? null : carrier.trim(); | ||
| 108 | + } | ||
| 109 | + | ||
| 110 | + public String getoId() { | ||
| 111 | + return oId; | ||
| 112 | + } | ||
| 113 | + | ||
| 114 | + public void setoId(String oId) { | ||
| 115 | + this.oId = oId == null ? null : oId.trim(); | ||
| 116 | + } | ||
| 117 | + | ||
| 118 | + public String getoName() { | ||
| 119 | + return oName; | ||
| 120 | + } | ||
| 121 | + | ||
| 122 | + public void setoName(String oName) { | ||
| 123 | + this.oName = oName == null ? null : oName.trim(); | ||
| 124 | + } | ||
| 125 | + | ||
| 126 | + public String getFdId() { | ||
| 127 | + return fdId; | ||
| 128 | + } | ||
| 129 | + | ||
| 130 | + public void setFdId(String fdId) { | ||
| 131 | + this.fdId = fdId == null ? null : fdId.trim(); | ||
| 132 | + } | ||
| 133 | + | ||
| 134 | + public String getFdName() { | ||
| 135 | + return fdName; | ||
| 136 | + } | ||
| 137 | + | ||
| 138 | + public void setFdName(String fdName) { | ||
| 139 | + this.fdName = fdName == null ? null : fdName.trim(); | ||
| 140 | + } | ||
| 141 | + | ||
| 142 | + public String getFlightno() { | ||
| 143 | + return flightno; | ||
| 144 | + } | ||
| 145 | + | ||
| 146 | + public void setFlightno(String flightno) { | ||
| 147 | + this.flightno = flightno == null ? null : flightno.trim(); | ||
| 148 | + } | ||
| 149 | + | ||
| 150 | + public Date getFlightdate() { | ||
| 151 | + return flightdate; | ||
| 152 | + } | ||
| 153 | + | ||
| 154 | + public void setFlightdate(Date flightdate) { | ||
| 155 | + this.flightdate = flightdate; | ||
| 156 | + } | ||
| 157 | + | ||
| 158 | + public String getArrivedtotalpiece() { | ||
| 159 | + return arrivedtotalpiece; | ||
| 160 | + } | ||
| 161 | + | ||
| 162 | + public void setArrivedtotalpiece(String arrivedtotalpiece) { | ||
| 163 | + this.arrivedtotalpiece = arrivedtotalpiece == null ? null : arrivedtotalpiece.trim(); | ||
| 164 | + } | ||
| 165 | + | ||
| 166 | + public String getTotalpiecequantity() { | ||
| 167 | + return totalpiecequantity; | ||
| 168 | + } | ||
| 169 | + | ||
| 170 | + public void setTotalpiecequantity(String totalpiecequantity) { | ||
| 171 | + this.totalpiecequantity = totalpiecequantity == null ? null : totalpiecequantity.trim(); | ||
| 172 | + } | ||
| 173 | + | ||
| 174 | + public String getArrivedtotalweight() { | ||
| 175 | + return arrivedtotalweight; | ||
| 176 | + } | ||
| 177 | + | ||
| 178 | + public void setArrivedtotalweight(String arrivedtotalweight) { | ||
| 179 | + this.arrivedtotalweight = arrivedtotalweight == null ? null : arrivedtotalweight.trim(); | ||
| 180 | + } | ||
| 181 | + | ||
| 182 | + public String getGrossweightmeasureuc() { | ||
| 183 | + return grossweightmeasureuc; | ||
| 184 | + } | ||
| 185 | + | ||
| 186 | + public void setGrossweightmeasureuc(String grossweightmeasureuc) { | ||
| 187 | + this.grossweightmeasureuc = grossweightmeasureuc == null ? null : grossweightmeasureuc.trim(); | ||
| 188 | + } | ||
| 189 | + | ||
| 190 | + public String getTotalgrossweightmeasure() { | ||
| 191 | + return totalgrossweightmeasure; | ||
| 192 | + } | ||
| 193 | + | ||
| 194 | + public void setTotalgrossweightmeasure(String totalgrossweightmeasure) { | ||
| 195 | + this.totalgrossweightmeasure = totalgrossweightmeasure == null ? null : totalgrossweightmeasure.trim(); | ||
| 196 | + } | ||
| 197 | + | ||
| 198 | + public String getTotalgrossweightmeasureuc() { | ||
| 199 | + return totalgrossweightmeasureuc; | ||
| 200 | + } | ||
| 201 | + | ||
| 202 | + public void setTotalgrossweightmeasureuc(String totalgrossweightmeasureuc) { | ||
| 203 | + this.totalgrossweightmeasureuc = totalgrossweightmeasureuc == null ? null : totalgrossweightmeasureuc.trim(); | ||
| 204 | + } | ||
| 205 | + | ||
| 206 | + public String getChargeableweightmeasure() { | ||
| 207 | + return chargeableweightmeasure; | ||
| 208 | + } | ||
| 209 | + | ||
| 210 | + public void setChargeableweightmeasure(String chargeableweightmeasure) { | ||
| 211 | + this.chargeableweightmeasure = chargeableweightmeasure == null ? null : chargeableweightmeasure.trim(); | ||
| 212 | + } | ||
| 213 | + | ||
| 214 | + public String getChargeableweightmeasureuc() { | ||
| 215 | + return chargeableweightmeasureuc; | ||
| 216 | + } | ||
| 217 | + | ||
| 218 | + public void setChargeableweightmeasureuc(String chargeableweightmeasureuc) { | ||
| 219 | + this.chargeableweightmeasureuc = chargeableweightmeasureuc == null ? null : chargeableweightmeasureuc.trim(); | ||
| 220 | + } | ||
| 221 | + | ||
| 222 | + public Date getArriveddate() { | ||
| 223 | + return arriveddate; | ||
| 224 | + } | ||
| 225 | + | ||
| 226 | + public void setArriveddate(Date arriveddate) { | ||
| 227 | + this.arriveddate = arriveddate; | ||
| 228 | + } | ||
| 229 | + | ||
| 230 | + public String getCustomscode() { | ||
| 231 | + return customscode; | ||
| 232 | + } | ||
| 233 | + | ||
| 234 | + public void setCustomscode(String customscode) { | ||
| 235 | + this.customscode = customscode == null ? null : customscode.trim(); | ||
| 236 | + } | ||
| 237 | + | ||
| 238 | + public String getProductname() { | ||
| 239 | + return productname; | ||
| 240 | + } | ||
| 241 | + | ||
| 242 | + public void setProductname(String productname) { | ||
| 243 | + this.productname = productname == null ? null : productname.trim(); | ||
| 244 | + } | ||
| 245 | + | ||
| 246 | + public Date getCreatedate() { | ||
| 247 | + return createdate; | ||
| 248 | + } | ||
| 249 | + | ||
| 250 | + public void setCreatedate(Date createdate) { | ||
| 251 | + this.createdate = createdate; | ||
| 252 | + } | ||
| 253 | + | ||
| 254 | + public String getArrivedmasterid() { | ||
| 255 | + return arrivedmasterid; | ||
| 256 | + } | ||
| 257 | + | ||
| 258 | + public void setArrivedmasterid(String arrivedmasterid) { | ||
| 259 | + this.arrivedmasterid = arrivedmasterid == null ? null : arrivedmasterid.trim(); | ||
| 260 | + } | ||
| 261 | + | ||
| 262 | + public String getTransportsplitdescription() { | ||
| 263 | + return transportsplitdescription; | ||
| 264 | + } | ||
| 265 | + | ||
| 266 | + public void setTransportsplitdescription(String transportsplitdescription) { | ||
| 267 | + this.transportsplitdescription = transportsplitdescription == null ? null : transportsplitdescription.trim(); | ||
| 268 | + } | ||
| 269 | + | ||
| 270 | + public String getReceiption() { | ||
| 271 | + return receiption; | ||
| 272 | + } | ||
| 273 | + | ||
| 274 | + public void setReceiption(String receiption) { | ||
| 275 | + this.receiption = receiption == null ? null : receiption.trim(); | ||
| 276 | + } | ||
| 277 | + | ||
| 278 | + public String getStatus() { | ||
| 279 | + return status; | ||
| 280 | + } | ||
| 281 | + | ||
| 282 | + public void setStatus(String status) { | ||
| 283 | + this.status = status == null ? null : status.trim(); | ||
| 284 | + } | ||
| 285 | +} |
| @@ -45,6 +45,6 @@ | @@ -45,6 +45,6 @@ | ||
| 45 | <property name="enableSubPackages" value="true"/> | 45 | <property name="enableSubPackages" value="true"/> |
| 46 | </javaClientGenerator> | 46 | </javaClientGenerator> |
| 47 | <!-- 要生成的表 tableName是数据库中的表名或视图名 domainObjectName是实体类名--> | 47 | <!-- 要生成的表 tableName是数据库中的表名或视图名 domainObjectName是实体类名--> |
| 48 | - <table tableName="CUSTOMSMESSAGE" domainObjectName="CUSTOMSMESSAGE" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table> | 48 | + <table tableName="ARRIVEDSECONDARY" domainObjectName="ARRIVEDSECONDARY" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table> |
| 49 | </context> | 49 | </context> |
| 50 | </generatorConfiguration> | 50 | </generatorConfiguration> |
| 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.imfClient.dao.ARRIVEDSECONDARYMapper" > | ||
| 4 | + <resultMap id="BaseResultMap" type="com.tianbo.imfClient.model.ARRIVEDSECONDARY" > | ||
| 5 | + <result column="AUTOID" property="autoid" jdbcType="VARCHAR" /> | ||
| 6 | + <result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" /> | ||
| 7 | + <result column="TCD_NAME" property="tcdName" jdbcType="VARCHAR" /> | ||
| 8 | + <result column="TCD_TYPECODE" property="tcdTypecode" jdbcType="VARCHAR" /> | ||
| 9 | + <result column="WAYBILLNOSECONDARY" property="waybillnosecondary" jdbcType="VARCHAR" /> | ||
| 10 | + <result column="CARRIER" property="carrier" jdbcType="VARCHAR" /> | ||
| 11 | + <result column="O_ID" property="oId" jdbcType="VARCHAR" /> | ||
| 12 | + <result column="O_NAME" property="oName" jdbcType="VARCHAR" /> | ||
| 13 | + <result column="FD_ID" property="fdId" jdbcType="VARCHAR" /> | ||
| 14 | + <result column="FD_NAME" property="fdName" jdbcType="VARCHAR" /> | ||
| 15 | + <result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" /> | ||
| 16 | + <result column="FLIGHTDATE" property="flightdate" jdbcType="TIMESTAMP" /> | ||
| 17 | + <result column="ARRIVEDTOTALPIECE" property="arrivedtotalpiece" jdbcType="VARCHAR" /> | ||
| 18 | + <result column="TOTALPIECEQUANTITY" property="totalpiecequantity" jdbcType="VARCHAR" /> | ||
| 19 | + <result column="ARRIVEDTOTALWEIGHT" property="arrivedtotalweight" jdbcType="VARCHAR" /> | ||
| 20 | + <result column="GROSSWEIGHTMEASUREUC" property="grossweightmeasureuc" jdbcType="VARCHAR" /> | ||
| 21 | + <result column="TOTALGROSSWEIGHTMEASURE" property="totalgrossweightmeasure" jdbcType="VARCHAR" /> | ||
| 22 | + <result column="TOTALGROSSWEIGHTMEASUREUC" property="totalgrossweightmeasureuc" jdbcType="VARCHAR" /> | ||
| 23 | + <result column="CHARGEABLEWEIGHTMEASURE" property="chargeableweightmeasure" jdbcType="VARCHAR" /> | ||
| 24 | + <result column="CHARGEABLEWEIGHTMEASUREUC" property="chargeableweightmeasureuc" jdbcType="VARCHAR" /> | ||
| 25 | + <result column="ARRIVEDDATE" property="arriveddate" jdbcType="TIMESTAMP" /> | ||
| 26 | + <result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" /> | ||
| 27 | + <result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" /> | ||
| 28 | + <result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" /> | ||
| 29 | + <result column="ARRIVEDMASTERID" property="arrivedmasterid" jdbcType="VARCHAR" /> | ||
| 30 | + <result column="TRANSPORTSPLITDESCRIPTION" property="transportsplitdescription" jdbcType="VARCHAR" /> | ||
| 31 | + <result column="RECEIPTION" property="receiption" jdbcType="VARCHAR" /> | ||
| 32 | + <result column="STATUS" property="status" jdbcType="VARCHAR" /> | ||
| 33 | + </resultMap> | ||
| 34 | + <insert id="insert" parameterType="com.tianbo.imfClient.model.ARRIVEDSECONDARY" > | ||
| 35 | + insert into ARRIVEDSECONDARY (AUTOID, WAYBILLNOMASTER, TCD_NAME, | ||
| 36 | + TCD_TYPECODE, WAYBILLNOSECONDARY, CARRIER, | ||
| 37 | + O_ID, O_NAME, FD_ID, FD_NAME, | ||
| 38 | + FLIGHTNO, FLIGHTDATE, ARRIVEDTOTALPIECE, | ||
| 39 | + TOTALPIECEQUANTITY, ARRIVEDTOTALWEIGHT, | ||
| 40 | + GROSSWEIGHTMEASUREUC, TOTALGROSSWEIGHTMEASURE, | ||
| 41 | + TOTALGROSSWEIGHTMEASUREUC, CHARGEABLEWEIGHTMEASURE, | ||
| 42 | + CHARGEABLEWEIGHTMEASUREUC, ARRIVEDDATE, | ||
| 43 | + CUSTOMSCODE, PRODUCTNAME, CREATEDATE, | ||
| 44 | + ARRIVEDMASTERID, TRANSPORTSPLITDESCRIPTION, | ||
| 45 | + RECEIPTION, STATUS) | ||
| 46 | + values (#{autoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{tcdName,jdbcType=VARCHAR}, | ||
| 47 | + #{tcdTypecode,jdbcType=VARCHAR}, #{waybillnosecondary,jdbcType=VARCHAR}, #{carrier,jdbcType=VARCHAR}, | ||
| 48 | + #{oId,jdbcType=VARCHAR}, #{oName,jdbcType=VARCHAR}, #{fdId,jdbcType=VARCHAR}, #{fdName,jdbcType=VARCHAR}, | ||
| 49 | + #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=TIMESTAMP}, #{arrivedtotalpiece,jdbcType=VARCHAR}, | ||
| 50 | + #{totalpiecequantity,jdbcType=VARCHAR}, #{arrivedtotalweight,jdbcType=VARCHAR}, | ||
| 51 | + #{grossweightmeasureuc,jdbcType=VARCHAR}, #{totalgrossweightmeasure,jdbcType=VARCHAR}, | ||
| 52 | + #{totalgrossweightmeasureuc,jdbcType=VARCHAR}, #{chargeableweightmeasure,jdbcType=VARCHAR}, | ||
| 53 | + #{chargeableweightmeasureuc,jdbcType=VARCHAR}, #{arriveddate,jdbcType=TIMESTAMP}, | ||
| 54 | + #{customscode,jdbcType=VARCHAR}, #{productname,jdbcType=VARCHAR}, #{createdate,jdbcType=TIMESTAMP}, | ||
| 55 | + #{arrivedmasterid,jdbcType=VARCHAR}, #{transportsplitdescription,jdbcType=VARCHAR}, | ||
| 56 | + #{receiption,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}) | ||
| 57 | + </insert> | ||
| 58 | + <insert id="insertSelective" parameterType="com.tianbo.imfClient.model.ARRIVEDSECONDARY" > | ||
| 59 | + insert into ARRIVEDSECONDARY | ||
| 60 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
| 61 | + <if test="autoid != null" > | ||
| 62 | + AUTOID, | ||
| 63 | + </if> | ||
| 64 | + <if test="waybillnomaster != null" > | ||
| 65 | + WAYBILLNOMASTER, | ||
| 66 | + </if> | ||
| 67 | + <if test="tcdName != null" > | ||
| 68 | + TCD_NAME, | ||
| 69 | + </if> | ||
| 70 | + <if test="tcdTypecode != null" > | ||
| 71 | + TCD_TYPECODE, | ||
| 72 | + </if> | ||
| 73 | + <if test="waybillnosecondary != null" > | ||
| 74 | + WAYBILLNOSECONDARY, | ||
| 75 | + </if> | ||
| 76 | + <if test="carrier != null" > | ||
| 77 | + CARRIER, | ||
| 78 | + </if> | ||
| 79 | + <if test="oId != null" > | ||
| 80 | + O_ID, | ||
| 81 | + </if> | ||
| 82 | + <if test="oName != null" > | ||
| 83 | + O_NAME, | ||
| 84 | + </if> | ||
| 85 | + <if test="fdId != null" > | ||
| 86 | + FD_ID, | ||
| 87 | + </if> | ||
| 88 | + <if test="fdName != null" > | ||
| 89 | + FD_NAME, | ||
| 90 | + </if> | ||
| 91 | + <if test="flightno != null" > | ||
| 92 | + FLIGHTNO, | ||
| 93 | + </if> | ||
| 94 | + <if test="flightdate != null" > | ||
| 95 | + FLIGHTDATE, | ||
| 96 | + </if> | ||
| 97 | + <if test="arrivedtotalpiece != null" > | ||
| 98 | + ARRIVEDTOTALPIECE, | ||
| 99 | + </if> | ||
| 100 | + <if test="totalpiecequantity != null" > | ||
| 101 | + TOTALPIECEQUANTITY, | ||
| 102 | + </if> | ||
| 103 | + <if test="arrivedtotalweight != null" > | ||
| 104 | + ARRIVEDTOTALWEIGHT, | ||
| 105 | + </if> | ||
| 106 | + <if test="grossweightmeasureuc != null" > | ||
| 107 | + GROSSWEIGHTMEASUREUC, | ||
| 108 | + </if> | ||
| 109 | + <if test="totalgrossweightmeasure != null" > | ||
| 110 | + TOTALGROSSWEIGHTMEASURE, | ||
| 111 | + </if> | ||
| 112 | + <if test="totalgrossweightmeasureuc != null" > | ||
| 113 | + TOTALGROSSWEIGHTMEASUREUC, | ||
| 114 | + </if> | ||
| 115 | + <if test="chargeableweightmeasure != null" > | ||
| 116 | + CHARGEABLEWEIGHTMEASURE, | ||
| 117 | + </if> | ||
| 118 | + <if test="chargeableweightmeasureuc != null" > | ||
| 119 | + CHARGEABLEWEIGHTMEASUREUC, | ||
| 120 | + </if> | ||
| 121 | + <if test="arriveddate != null" > | ||
| 122 | + ARRIVEDDATE, | ||
| 123 | + </if> | ||
| 124 | + <if test="customscode != null" > | ||
| 125 | + CUSTOMSCODE, | ||
| 126 | + </if> | ||
| 127 | + <if test="productname != null" > | ||
| 128 | + PRODUCTNAME, | ||
| 129 | + </if> | ||
| 130 | + <if test="createdate != null" > | ||
| 131 | + CREATEDATE, | ||
| 132 | + </if> | ||
| 133 | + <if test="arrivedmasterid != null" > | ||
| 134 | + ARRIVEDMASTERID, | ||
| 135 | + </if> | ||
| 136 | + <if test="transportsplitdescription != null" > | ||
| 137 | + TRANSPORTSPLITDESCRIPTION, | ||
| 138 | + </if> | ||
| 139 | + <if test="receiption != null" > | ||
| 140 | + RECEIPTION, | ||
| 141 | + </if> | ||
| 142 | + <if test="status != null" > | ||
| 143 | + STATUS, | ||
| 144 | + </if> | ||
| 145 | + </trim> | ||
| 146 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
| 147 | + <if test="autoid != null" > | ||
| 148 | + #{autoid,jdbcType=VARCHAR}, | ||
| 149 | + </if> | ||
| 150 | + <if test="waybillnomaster != null" > | ||
| 151 | + #{waybillnomaster,jdbcType=VARCHAR}, | ||
| 152 | + </if> | ||
| 153 | + <if test="tcdName != null" > | ||
| 154 | + #{tcdName,jdbcType=VARCHAR}, | ||
| 155 | + </if> | ||
| 156 | + <if test="tcdTypecode != null" > | ||
| 157 | + #{tcdTypecode,jdbcType=VARCHAR}, | ||
| 158 | + </if> | ||
| 159 | + <if test="waybillnosecondary != null" > | ||
| 160 | + #{waybillnosecondary,jdbcType=VARCHAR}, | ||
| 161 | + </if> | ||
| 162 | + <if test="carrier != null" > | ||
| 163 | + #{carrier,jdbcType=VARCHAR}, | ||
| 164 | + </if> | ||
| 165 | + <if test="oId != null" > | ||
| 166 | + #{oId,jdbcType=VARCHAR}, | ||
| 167 | + </if> | ||
| 168 | + <if test="oName != null" > | ||
| 169 | + #{oName,jdbcType=VARCHAR}, | ||
| 170 | + </if> | ||
| 171 | + <if test="fdId != null" > | ||
| 172 | + #{fdId,jdbcType=VARCHAR}, | ||
| 173 | + </if> | ||
| 174 | + <if test="fdName != null" > | ||
| 175 | + #{fdName,jdbcType=VARCHAR}, | ||
| 176 | + </if> | ||
| 177 | + <if test="flightno != null" > | ||
| 178 | + #{flightno,jdbcType=VARCHAR}, | ||
| 179 | + </if> | ||
| 180 | + <if test="flightdate != null" > | ||
| 181 | + #{flightdate,jdbcType=TIMESTAMP}, | ||
| 182 | + </if> | ||
| 183 | + <if test="arrivedtotalpiece != null" > | ||
| 184 | + #{arrivedtotalpiece,jdbcType=VARCHAR}, | ||
| 185 | + </if> | ||
| 186 | + <if test="totalpiecequantity != null" > | ||
| 187 | + #{totalpiecequantity,jdbcType=VARCHAR}, | ||
| 188 | + </if> | ||
| 189 | + <if test="arrivedtotalweight != null" > | ||
| 190 | + #{arrivedtotalweight,jdbcType=VARCHAR}, | ||
| 191 | + </if> | ||
| 192 | + <if test="grossweightmeasureuc != null" > | ||
| 193 | + #{grossweightmeasureuc,jdbcType=VARCHAR}, | ||
| 194 | + </if> | ||
| 195 | + <if test="totalgrossweightmeasure != null" > | ||
| 196 | + #{totalgrossweightmeasure,jdbcType=VARCHAR}, | ||
| 197 | + </if> | ||
| 198 | + <if test="totalgrossweightmeasureuc != null" > | ||
| 199 | + #{totalgrossweightmeasureuc,jdbcType=VARCHAR}, | ||
| 200 | + </if> | ||
| 201 | + <if test="chargeableweightmeasure != null" > | ||
| 202 | + #{chargeableweightmeasure,jdbcType=VARCHAR}, | ||
| 203 | + </if> | ||
| 204 | + <if test="chargeableweightmeasureuc != null" > | ||
| 205 | + #{chargeableweightmeasureuc,jdbcType=VARCHAR}, | ||
| 206 | + </if> | ||
| 207 | + <if test="arriveddate != null" > | ||
| 208 | + #{arriveddate,jdbcType=TIMESTAMP}, | ||
| 209 | + </if> | ||
| 210 | + <if test="customscode != null" > | ||
| 211 | + #{customscode,jdbcType=VARCHAR}, | ||
| 212 | + </if> | ||
| 213 | + <if test="productname != null" > | ||
| 214 | + #{productname,jdbcType=VARCHAR}, | ||
| 215 | + </if> | ||
| 216 | + <if test="createdate != null" > | ||
| 217 | + #{createdate,jdbcType=TIMESTAMP}, | ||
| 218 | + </if> | ||
| 219 | + <if test="arrivedmasterid != null" > | ||
| 220 | + #{arrivedmasterid,jdbcType=VARCHAR}, | ||
| 221 | + </if> | ||
| 222 | + <if test="transportsplitdescription != null" > | ||
| 223 | + #{transportsplitdescription,jdbcType=VARCHAR}, | ||
| 224 | + </if> | ||
| 225 | + <if test="receiption != null" > | ||
| 226 | + #{receiption,jdbcType=VARCHAR}, | ||
| 227 | + </if> | ||
| 228 | + <if test="status != null" > | ||
| 229 | + #{status,jdbcType=VARCHAR}, | ||
| 230 | + </if> | ||
| 231 | + </trim> | ||
| 232 | + </insert> | ||
| 233 | + <update id="updatestatus" parameterType="hashmap"> | ||
| 234 | + UPDATE ARRIVEDSECONDARY | ||
| 235 | + set STATUS = '01' | ||
| 236 | + WHERE WAYBILLNOMASTER = #{masterno} | ||
| 237 | + AND WAYBILLNOSECONDARY = #{secendno} | ||
| 238 | + </update> | ||
| 239 | +</mapper> |
-
请 注册 或 登录 后发表评论