作者 朱兆平

删除运单接口

  1 +package com.tianbo.analysis.controller;
  2 +
  3 +import com.tianbo.analysis.dao.ORIGINMANIFESTMASTERMapper;
  4 +import com.tianbo.analysis.model.CUSTOMSMESSAGE;
  5 +import com.tianbo.analysis.model.ORIGINMANIFESTMASTER;
  6 +import com.tianbo.analysis.model.ResultJson;
  7 +import com.tianbo.analysis.service.OriginService;
  8 +import com.tianbo.util.Date.DateUtil;
  9 +
  10 +import org.springframework.beans.factory.annotation.Autowired;
  11 +import org.springframework.web.bind.annotation.*;
  12 +
  13 +import javax.annotation.Resource;
  14 +import java.util.Date;
  15 +import java.util.List;
  16 +
  17 +@RestController
  18 +@RequestMapping("/nmms/dev")
  19 +public class NmmsController {
  20 +
  21 + @Resource
  22 + ORIGINMANIFESTMASTERMapper originmanifestmasterMapper;
  23 +
  24 + @Autowired
  25 + OriginService originService;
  26 +
  27 +
  28 + @DeleteMapping("/delOriginAWBH")
  29 + public ResultJson getCustomMessageId(@RequestParam(value = "awba",required = true) String awba,
  30 + @RequestParam(value = "awbh",required = true) String awbh,
  31 + @RequestParam(value = "flightDate",required = true) String flightDate,
  32 + @RequestParam(value = "flightNo",required = true) String flightNo
  33 + ){
  34 + Date flight_date = DateUtil.parseDate(flightDate,"yyyy-MM-dd");
  35 + ORIGINMANIFESTMASTER originmanifestmaster = new ORIGINMANIFESTMASTER(awba,flight_date,flightNo);
  36 + originmanifestmaster = originmanifestmasterMapper.selectByAHBA(originmanifestmaster);
  37 + return originService.deleteAwbh(originmanifestmaster.getAutoid())>0 ? new ResultJson("200","删除成功") : new ResultJson("200","删除失败");
  38 +
  39 + }
  40 +}
@@ -10,4 +10,6 @@ public interface ORIGINMANIFESTMASTERMapper { @@ -10,4 +10,6 @@ public interface ORIGINMANIFESTMASTERMapper {
10 int insertSelective(ORIGINMANIFESTMASTER record); 10 int insertSelective(ORIGINMANIFESTMASTER record);
11 11
12 int changeFlightDate(HashMap map); 12 int changeFlightDate(HashMap map);
  13 +
  14 + ORIGINMANIFESTMASTER selectByAHBA(ORIGINMANIFESTMASTER record);
13 } 15 }
  1 +package com.tianbo.analysis.dao;
  2 +
  3 +import com.tianbo.analysis.model.Originmanifestsecondary;
  4 +
  5 +import java.util.List;
  6 +
  7 +public interface OriginmanifestsecondaryMapper {
  8 + int insert(Originmanifestsecondary record);
  9 +
  10 + int insertSelective(Originmanifestsecondary record);
  11 +
  12 + int updateRECEIPTION(Originmanifestsecondary record);
  13 +
  14 + List<Originmanifestsecondary> selectAutoIdByawbAawbH(Originmanifestsecondary record);
  15 +
  16 + int deleteAwbh(String awbhAutoId);
  17 +}
@@ -442,4 +442,14 @@ public class ORIGINMANIFESTMASTER { @@ -442,4 +442,14 @@ public class ORIGINMANIFESTMASTER {
442 public void setConsigneePhone(String consigneePhone) { 442 public void setConsigneePhone(String consigneePhone) {
443 this.consigneePhone = consigneePhone == null ? null : consigneePhone.trim(); 443 this.consigneePhone = consigneePhone == null ? null : consigneePhone.trim();
444 } 444 }
  445 +
  446 + public ORIGINMANIFESTMASTER() {
  447 +
  448 + }
  449 +
  450 + public ORIGINMANIFESTMASTER(String waybillnomaster, Date flightDate, String flightno ) {
  451 + this.waybillnomaster = waybillnomaster;
  452 + this.flightno = flightno;
  453 + this.flightDate = flightDate;
  454 + }
445 } 455 }
  1 +package com.tianbo.analysis.model;
  2 +
  3 +
  4 +import com.tianbo.util.Date.DateUtil;
  5 +import lombok.Data;
  6 +import lombok.extern.slf4j.Slf4j;
  7 +import org.apache.commons.lang.StringUtils;
  8 +
  9 +import java.util.Date;
  10 +import java.util.List;
  11 +
  12 +@Data
  13 +@Slf4j
  14 +public class Originmanifestsecondary {
  15 + private String autoid;
  16 +
  17 + private String waybillnomaster;
  18 +
  19 + private String waybillnosecondary;
  20 +
  21 + private String weight;
  22 +
  23 + private String piece;
  24 +
  25 + private String manifestpiece;
  26 +
  27 + private String manifestweight;
  28 +
  29 + private String productname;
  30 +
  31 + private String paymode;
  32 +
  33 + private String specialgoodscode;
  34 +
  35 + private String customscode;
  36 +
  37 + private String shippername;
  38 +
  39 + private String shipperaddress;
  40 +
  41 + private String consigneename;
  42 +
  43 + private String consigneeaddress;
  44 +
  45 + private Date createdate;
  46 +
  47 + private String originmanifestmasterautoid;
  48 +
  49 + private String customsstatus;
  50 +
  51 + private String status;
  52 +
  53 + private String receiption;
  54 +
  55 + private String originatingstationBill;
  56 +
  57 + private String destinationstationBill;
  58 +
  59 + private String shipperCode;
  60 +
  61 + private String shipperCountrycode;
  62 +
  63 + private String shipperPhone;
  64 +
  65 + private String shipperFax;
  66 +
  67 + private String consigneeCode;
  68 +
  69 + private String consigneeCountrycode;
  70 +
  71 + private String consigneeFax;
  72 +
  73 + private String specificConsigneename;
  74 +
  75 + private String specificConsigneePhone;
  76 +
  77 + private String consigneePhone;
  78 +
  79 + private ORIGINMANIFESTMASTER master;
  80 +
  81 + public String getAutoid() {
  82 + return autoid;
  83 + }
  84 +
  85 + public void setAutoid(String autoid) {
  86 + this.autoid = autoid == null ? null : autoid.trim();
  87 + }
  88 +
  89 + public String getWaybillnomaster() {
  90 + return waybillnomaster;
  91 + }
  92 +
  93 + public void setWaybillnomaster(String waybillnomaster) {
  94 + this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim();
  95 + }
  96 +
  97 + public String getWaybillnosecondary() {
  98 + return waybillnosecondary;
  99 + }
  100 +
  101 + public void setWaybillnosecondary(String waybillnosecondary) {
  102 + this.waybillnosecondary = waybillnosecondary == null ? null : waybillnosecondary.trim();
  103 + }
  104 +
  105 + public String getWeight() {
  106 + return weight;
  107 + }
  108 +
  109 + public void setWeight(String weight) {
  110 + this.weight = weight == null ? null : weight.trim();
  111 + }
  112 +
  113 + public String getPiece() {
  114 + return piece;
  115 + }
  116 +
  117 + public void setPiece(String piece) {
  118 + this.piece = piece == null ? null : piece.trim();
  119 + }
  120 +
  121 + public String getManifestpiece() {
  122 + return manifestpiece;
  123 + }
  124 +
  125 + public void setManifestpiece(String manifestpiece) {
  126 + this.manifestpiece = manifestpiece == null ? null : manifestpiece.trim();
  127 + }
  128 +
  129 + public String getManifestweight() {
  130 + return manifestweight;
  131 + }
  132 +
  133 + public void setManifestweight(String manifestweight) {
  134 + this.manifestweight = manifestweight == null ? null : manifestweight.trim();
  135 + }
  136 +
  137 + public String getProductname() {
  138 + return productname;
  139 + }
  140 +
  141 + public void setProductname(String productname) {
  142 + this.productname = productname == null ? null : productname.trim();
  143 + }
  144 +
  145 + public String getPaymode() {
  146 + return paymode;
  147 + }
  148 +
  149 + public void setPaymode(String paymode) {
  150 + this.paymode = paymode == null ? null : paymode.trim();
  151 + }
  152 +
  153 + public String getSpecialgoodscode() {
  154 + return specialgoodscode;
  155 + }
  156 +
  157 + public void setSpecialgoodscode(String specialgoodscode) {
  158 + this.specialgoodscode = specialgoodscode == null ? null : specialgoodscode.trim();
  159 + }
  160 +
  161 + public String getCustomscode() {
  162 + return customscode;
  163 + }
  164 +
  165 + public void setCustomscode(String customscode) {
  166 + this.customscode = customscode == null ? null : customscode.trim();
  167 + }
  168 +
  169 + public String getShippername() {
  170 + return shippername;
  171 + }
  172 +
  173 + public void setShippername(String shippername) {
  174 + this.shippername = shippername == null ? null : shippername.trim();
  175 + }
  176 +
  177 + public String getShipperaddress() {
  178 + return shipperaddress;
  179 + }
  180 +
  181 + public void setShipperaddress(String shipperaddress) {
  182 + this.shipperaddress = shipperaddress == null ? null : shipperaddress.trim();
  183 + }
  184 +
  185 + public String getConsigneename() {
  186 + return consigneename;
  187 + }
  188 +
  189 + public void setConsigneename(String consigneename) {
  190 + this.consigneename = consigneename == null ? null : consigneename.trim();
  191 + }
  192 +
  193 + public String getConsigneeaddress() {
  194 + return consigneeaddress;
  195 + }
  196 +
  197 + public void setConsigneeaddress(String consigneeaddress) {
  198 + this.consigneeaddress = consigneeaddress == null ? null : consigneeaddress.trim();
  199 + }
  200 +
  201 + public Date getCreatedate() {
  202 + return createdate;
  203 + }
  204 +
  205 + public void setCreatedate(Date createdate) {
  206 + this.createdate = createdate;
  207 + }
  208 +
  209 + public String getOriginmanifestmasterautoid() {
  210 + return originmanifestmasterautoid;
  211 + }
  212 +
  213 + public void setOriginmanifestmasterautoid(String originmanifestmasterautoid) {
  214 + this.originmanifestmasterautoid = originmanifestmasterautoid == null ? null : originmanifestmasterautoid.trim();
  215 + }
  216 +
  217 + public String getCustomsstatus() {
  218 + return customsstatus;
  219 + }
  220 +
  221 + public void setCustomsstatus(String customsstatus) {
  222 + this.customsstatus = customsstatus == null ? null : customsstatus.trim();
  223 + }
  224 +
  225 + public String getStatus() {
  226 + return status;
  227 + }
  228 +
  229 + public void setStatus(String status) {
  230 + this.status = status == null ? null : status.trim();
  231 + }
  232 +
  233 + public String getReceiption() {
  234 + return receiption;
  235 + }
  236 +
  237 + public void setReceiption(String receiption) {
  238 + this.receiption = receiption == null ? null : receiption.trim();
  239 + }
  240 +
  241 + public String getOriginatingstationBill() {
  242 + return originatingstationBill;
  243 + }
  244 +
  245 + public void setOriginatingstationBill(String originatingstationBill) {
  246 + this.originatingstationBill = originatingstationBill == null ? null : originatingstationBill.trim();
  247 + }
  248 +
  249 + public String getDestinationstationBill() {
  250 + return destinationstationBill;
  251 + }
  252 +
  253 + public void setDestinationstationBill(String destinationstationBill) {
  254 + this.destinationstationBill = destinationstationBill == null ? null : destinationstationBill.trim();
  255 + }
  256 +
  257 + public String getShipperCode() {
  258 + return shipperCode;
  259 + }
  260 +
  261 + public void setShipperCode(String shipperCode) {
  262 + this.shipperCode = shipperCode == null ? null : shipperCode.trim();
  263 + }
  264 +
  265 + public String getShipperCountrycode() {
  266 + return shipperCountrycode;
  267 + }
  268 +
  269 + public void setShipperCountrycode(String shipperCountrycode) {
  270 + this.shipperCountrycode = shipperCountrycode == null ? null : shipperCountrycode.trim();
  271 + }
  272 +
  273 + public String getShipperPhone() {
  274 + return shipperPhone;
  275 + }
  276 +
  277 + public void setShipperPhone(String shipperPhone) {
  278 + this.shipperPhone = shipperPhone == null ? null : shipperPhone.trim();
  279 + }
  280 +
  281 + public String getShipperFax() {
  282 + return shipperFax;
  283 + }
  284 +
  285 + public void setShipperFax(String shipperFax) {
  286 + this.shipperFax = shipperFax == null ? null : shipperFax.trim();
  287 + }
  288 +
  289 + public String getConsigneeCode() {
  290 + return consigneeCode;
  291 + }
  292 +
  293 + public void setConsigneeCode(String consigneeCode) {
  294 + this.consigneeCode = consigneeCode == null ? null : consigneeCode.trim();
  295 + }
  296 +
  297 + public String getConsigneeCountrycode() {
  298 + return consigneeCountrycode;
  299 + }
  300 +
  301 + public void setConsigneeCountrycode(String consigneeCountrycode) {
  302 + this.consigneeCountrycode = consigneeCountrycode == null ? null : consigneeCountrycode.trim();
  303 + }
  304 +
  305 + public String getConsigneeFax() {
  306 + return consigneeFax;
  307 + }
  308 +
  309 + public void setConsigneeFax(String consigneeFax) {
  310 + this.consigneeFax = consigneeFax == null ? null : consigneeFax.trim();
  311 + }
  312 +
  313 + public String getSpecificConsigneename() {
  314 + return specificConsigneename;
  315 + }
  316 +
  317 + public void setSpecificConsigneename(String specificConsigneename) {
  318 + this.specificConsigneename = specificConsigneename == null ? null : specificConsigneename.trim();
  319 + }
  320 +
  321 + public String getSpecificConsigneePhone() {
  322 + return specificConsigneePhone;
  323 + }
  324 +
  325 + public void setSpecificConsigneePhone(String specificConsigneePhone) {
  326 + this.specificConsigneePhone = specificConsigneePhone == null ? null : specificConsigneePhone.trim();
  327 + }
  328 +
  329 + public String getConsigneePhone() {
  330 + return consigneePhone;
  331 + }
  332 +
  333 + public void setConsigneePhone(String consigneePhone) {
  334 + this.consigneePhone = consigneePhone == null ? null : consigneePhone.trim();
  335 + }
  336 +
  337 + public Originmanifestsecondary(){
  338 +
  339 + }
  340 +
  341 + public Originmanifestsecondary(String waybillnomaster, String waybillnosecondary, String originmanifestmasterautoid) {
  342 + this.waybillnomaster = waybillnomaster;
  343 + this.waybillnosecondary = waybillnosecondary;
  344 + this.originmanifestmasterautoid = originmanifestmasterautoid;
  345 + }
  346 +}
  1 +package com.tianbo.analysis.service;
  2 +
  3 +import com.tianbo.analysis.model.Originmanifestsecondary;
  4 +
  5 +public interface OriginService {
  6 +
  7 + /**
  8 + * 删除分单
  9 + * @param awbhAutoId 分单id
  10 + * @return
  11 + */
  12 + int deleteAwbh(String awbhAutoId);
  13 +}
  1 +package com.tianbo.analysis.service.imp;
  2 +
  3 +import com.tianbo.analysis.dao.ORIGINMANIFESTMASTERMapper;
  4 +import com.tianbo.analysis.dao.OriginmanifestsecondaryMapper;
  5 +import com.tianbo.analysis.service.OriginService;
  6 +import org.springframework.beans.factory.annotation.Autowired;
  7 +import org.springframework.stereotype.Service;
  8 +
  9 +import javax.annotation.Resource;
  10 +
  11 +@Service
  12 +public class OriginServiceImp implements OriginService {
  13 +
  14 +
  15 + @Resource
  16 + private OriginmanifestsecondaryMapper originmanifestsecondaryMapper;
  17 +
  18 + @Resource
  19 + private ORIGINMANIFESTMASTERMapper originmanifestmasterMapper;
  20 +
  21 + @Override
  22 + public int deleteAwbh(String awbhAutoId){
  23 + return originmanifestsecondaryMapper.deleteAwbh(awbhAutoId);
  24 + }
  25 +}
@@ -29,7 +29,7 @@ @@ -29,7 +29,7 @@
29 <result column="CONSIGNEEADDRESS" property="consigneeaddress" jdbcType="VARCHAR" /> 29 <result column="CONSIGNEEADDRESS" property="consigneeaddress" jdbcType="VARCHAR" />
30 <result column="RECEIPTINFORMATION" property="receiptinformation" jdbcType="VARCHAR" /> 30 <result column="RECEIPTINFORMATION" property="receiptinformation" jdbcType="VARCHAR" />
31 <result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" /> 31 <result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
32 - <result column="FLIGHT_DATE" property="flightDate" jdbcType="TIMESTAMP" /> 32 + <result column="FLIGHT_DATE" property="flightDate" jdbcType="DATE" />
33 <result column="STATUS" property="status" jdbcType="VARCHAR" /> 33 <result column="STATUS" property="status" jdbcType="VARCHAR" />
34 <result column="ISBATCH" property="isbatch" jdbcType="VARCHAR" /> 34 <result column="ISBATCH" property="isbatch" jdbcType="VARCHAR" />
35 <result column="ORIGINATINGSTATION_BILL" property="originatingstationBill" jdbcType="VARCHAR" /> 35 <result column="ORIGINATINGSTATION_BILL" property="originatingstationBill" jdbcType="VARCHAR" />
@@ -47,6 +47,9 @@ @@ -47,6 +47,9 @@
47 <result column="SPECIFIC_CONSIGNEE_PHONE" property="specificConsigneePhone" jdbcType="VARCHAR" /> 47 <result column="SPECIFIC_CONSIGNEE_PHONE" property="specificConsigneePhone" jdbcType="VARCHAR" />
48 <result column="CONSIGNEE_PHONE" property="consigneePhone" jdbcType="VARCHAR" /> 48 <result column="CONSIGNEE_PHONE" property="consigneePhone" jdbcType="VARCHAR" />
49 </resultMap> 49 </resultMap>
  50 + <sql id="Base_Column_List">
  51 + AUTOID, WAYBILLNOMASTER, FLIGHTNO, FLIGHT_DATE
  52 + </sql>
50 <insert id="insert" parameterType="com.tianbo.analysis.model.ORIGINMANIFESTMASTER" > 53 <insert id="insert" parameterType="com.tianbo.analysis.model.ORIGINMANIFESTMASTER" >
51 insert into ORIGINMANIFESTMASTER (AUTOID, WAYBILLNOMASTER, SEGMENT, 54 insert into ORIGINMANIFESTMASTER (AUTOID, WAYBILLNOMASTER, SEGMENT,
52 ORIGINATINGSTATION, DESTINATIONSTATION, 55 ORIGINATINGSTATION, DESTINATIONSTATION,
@@ -359,4 +362,17 @@ @@ -359,4 +362,17 @@
359 FLIGHT_DATE = "TO_DATE"(#{currDate},'yyyy-mm-dd') 362 FLIGHT_DATE = "TO_DATE"(#{currDate},'yyyy-mm-dd')
360 AND FLIGHTNO=#{flightNo} 363 AND FLIGHTNO=#{flightNo}
361 </update> 364 </update>
  365 +
  366 + <select id="selectByAHBA" parameterType="com.tianbo.analysis.model.ORIGINMANIFESTMASTER" resultMap="BaseResultMap">
  367 + select
  368 + <include refid="Base_Column_List" />
  369 + from
  370 + ORIGINMANIFESTMASTER
  371 + where
  372 + FLIGHT_DATE = #{flightDate ,jdbcType=DATE}
  373 + AND
  374 + FLIGHTNO= #{flightNo,jdbcType=VARCHAR}
  375 + AND
  376 + WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
  377 + </select>
362 </mapper> 378 </mapper>
  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.OriginmanifestsecondaryMapper" >
  4 + <resultMap id="BaseResultMap" type="com.tianbo.analysis.model.Originmanifestsecondary" >
  5 + <result column="AUTOID" property="autoid" jdbcType="VARCHAR" />
  6 + <result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
  7 + <result column="WAYBILLNOSECONDARY" property="waybillnosecondary" jdbcType="VARCHAR" />
  8 + <result column="WEIGHT" property="weight" jdbcType="VARCHAR" />
  9 + <result column="PIECE" property="piece" jdbcType="VARCHAR" />
  10 + <result column="MANIFESTPIECE" property="manifestpiece" jdbcType="VARCHAR" />
  11 + <result column="MANIFESTWEIGHT" property="manifestweight" jdbcType="VARCHAR" />
  12 + <result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" />
  13 + <result column="PAYMODE" property="paymode" jdbcType="VARCHAR" />
  14 + <result column="SPECIALGOODSCODE" property="specialgoodscode" jdbcType="VARCHAR" />
  15 + <result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" />
  16 + <result column="SHIPPERNAME" property="shippername" jdbcType="VARCHAR" />
  17 + <result column="SHIPPERADDRESS" property="shipperaddress" jdbcType="VARCHAR" />
  18 + <result column="CONSIGNEENAME" property="consigneename" jdbcType="VARCHAR" />
  19 + <result column="CONSIGNEEADDRESS" property="consigneeaddress" jdbcType="VARCHAR" />
  20 + <result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
  21 + <result column="ORIGINMANIFESTMASTERAUTOID" property="originmanifestmasterautoid" jdbcType="VARCHAR" />
  22 + <result column="CUSTOMSSTATUS" property="customsstatus" jdbcType="VARCHAR" />
  23 + <result column="STATUS" property="status" jdbcType="VARCHAR" />
  24 + <result column="RECEIPTION" property="receiption" jdbcType="VARCHAR" />
  25 + <result column="ORIGINATINGSTATION_BILL" property="originatingstationBill" jdbcType="VARCHAR" />
  26 + <result column="DESTINATIONSTATION_BILL" property="destinationstationBill" jdbcType="VARCHAR" />
  27 + <result column="SHIPPER_CODE" property="shipperCode" jdbcType="VARCHAR" />
  28 + <result column="SHIPPER_COUNTRYCODE" property="shipperCountrycode" jdbcType="VARCHAR" />
  29 + <result column="SHIPPER_PHONE" property="shipperPhone" jdbcType="VARCHAR" />
  30 + <result column="SHIPPER_FAX" property="shipperFax" jdbcType="VARCHAR" />
  31 + <result column="CONSIGNEE_CODE" property="consigneeCode" jdbcType="VARCHAR" />
  32 + <result column="CONSIGNEE_COUNTRYCODE" property="consigneeCountrycode" jdbcType="VARCHAR" />
  33 + <result column="CONSIGNEE_FAX" property="consigneeFax" jdbcType="VARCHAR" />
  34 + <result column="SPECIFIC_CONSIGNEENAME" property="specificConsigneename" jdbcType="VARCHAR" />
  35 + <result column="SPECIFIC_CONSIGNEE_PHONE" property="specificConsigneePhone" jdbcType="VARCHAR" />
  36 + <result column="CONSIGNEE_PHONE" property="consigneePhone" jdbcType="VARCHAR" />
  37 + </resultMap>
  38 + <insert id="insert" parameterType="com.tianbo.analysis.model.Originmanifestsecondary" >
  39 + insert into ORIGINMANIFESTSECONDARY (AUTOID, WAYBILLNOMASTER, WAYBILLNOSECONDARY,
  40 + WEIGHT, PIECE, MANIFESTPIECE,
  41 + MANIFESTWEIGHT, PRODUCTNAME, PAYMODE,
  42 + SPECIALGOODSCODE, CUSTOMSCODE, SHIPPERNAME,
  43 + SHIPPERADDRESS, CONSIGNEENAME, CONSIGNEEADDRESS,
  44 + CREATEDATE, ORIGINMANIFESTMASTERAUTOID,
  45 + CUSTOMSSTATUS, STATUS, RECEIPTION,
  46 + ORIGINATINGSTATION_BILL, DESTINATIONSTATION_BILL,
  47 + SHIPPER_CODE, SHIPPER_COUNTRYCODE, SHIPPER_PHONE,
  48 + SHIPPER_FAX, CONSIGNEE_CODE, CONSIGNEE_COUNTRYCODE,
  49 + CONSIGNEE_FAX, SPECIFIC_CONSIGNEENAME, SPECIFIC_CONSIGNEE_PHONE,
  50 + CONSIGNEE_PHONE)
  51 + values (#{autoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{waybillnosecondary,jdbcType=VARCHAR},
  52 + #{weight,jdbcType=VARCHAR}, #{piece,jdbcType=VARCHAR}, #{manifestpiece,jdbcType=VARCHAR},
  53 + #{manifestweight,jdbcType=VARCHAR}, #{productname,jdbcType=VARCHAR}, #{paymode,jdbcType=VARCHAR},
  54 + #{specialgoodscode,jdbcType=VARCHAR}, #{customscode,jdbcType=VARCHAR}, #{shippername,jdbcType=VARCHAR},
  55 + #{shipperaddress,jdbcType=VARCHAR}, #{consigneename,jdbcType=VARCHAR}, #{consigneeaddress,jdbcType=VARCHAR},
  56 + #{createdate,jdbcType=TIMESTAMP}, #{originmanifestmasterautoid,jdbcType=VARCHAR},
  57 + #{customsstatus,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{receiption,jdbcType=VARCHAR},
  58 + #{originatingstationBill,jdbcType=VARCHAR}, #{destinationstationBill,jdbcType=VARCHAR},
  59 + #{shipperCode,jdbcType=VARCHAR}, #{shipperCountrycode,jdbcType=VARCHAR}, #{shipperPhone,jdbcType=VARCHAR},
  60 + #{shipperFax,jdbcType=VARCHAR}, #{consigneeCode,jdbcType=VARCHAR}, #{consigneeCountrycode,jdbcType=VARCHAR},
  61 + #{consigneeFax,jdbcType=VARCHAR}, #{specificConsigneename,jdbcType=VARCHAR}, #{specificConsigneePhone,jdbcType=VARCHAR},
  62 + #{consigneePhone,jdbcType=VARCHAR})
  63 + </insert>
  64 + <insert id="insertSelective" parameterType="com.tianbo.analysis.model.Originmanifestsecondary" >
  65 + insert into ORIGINMANIFESTSECONDARY
  66 + <trim prefix="(" suffix=")" suffixOverrides="," >
  67 + <if test="autoid != null" >
  68 + AUTOID,
  69 + </if>
  70 + <if test="waybillnomaster != null" >
  71 + WAYBILLNOMASTER,
  72 + </if>
  73 + <if test="waybillnosecondary != null" >
  74 + WAYBILLNOSECONDARY,
  75 + </if>
  76 + <if test="weight != null" >
  77 + WEIGHT,
  78 + </if>
  79 + <if test="piece != null" >
  80 + PIECE,
  81 + </if>
  82 + <if test="manifestpiece != null" >
  83 + MANIFESTPIECE,
  84 + </if>
  85 + <if test="manifestweight != null" >
  86 + MANIFESTWEIGHT,
  87 + </if>
  88 + <if test="productname != null" >
  89 + PRODUCTNAME,
  90 + </if>
  91 + <if test="paymode != null" >
  92 + PAYMODE,
  93 + </if>
  94 + <if test="specialgoodscode != null" >
  95 + SPECIALGOODSCODE,
  96 + </if>
  97 + <if test="customscode != null" >
  98 + CUSTOMSCODE,
  99 + </if>
  100 + <if test="shippername != null" >
  101 + SHIPPERNAME,
  102 + </if>
  103 + <if test="shipperaddress != null" >
  104 + SHIPPERADDRESS,
  105 + </if>
  106 + <if test="consigneename != null" >
  107 + CONSIGNEENAME,
  108 + </if>
  109 + <if test="consigneeaddress != null" >
  110 + CONSIGNEEADDRESS,
  111 + </if>
  112 + <if test="createdate != null" >
  113 + CREATEDATE,
  114 + </if>
  115 + <if test="originmanifestmasterautoid != null" >
  116 + ORIGINMANIFESTMASTERAUTOID,
  117 + </if>
  118 + <if test="customsstatus != null" >
  119 + CUSTOMSSTATUS,
  120 + </if>
  121 + <if test="status != null" >
  122 + STATUS,
  123 + </if>
  124 + <if test="receiption != null" >
  125 + RECEIPTION,
  126 + </if>
  127 + <if test="originatingstationBill != null" >
  128 + ORIGINATINGSTATION_BILL,
  129 + </if>
  130 + <if test="destinationstationBill != null" >
  131 + DESTINATIONSTATION_BILL,
  132 + </if>
  133 + <if test="shipperCode != null" >
  134 + SHIPPER_CODE,
  135 + </if>
  136 + <if test="shipperCountrycode != null" >
  137 + SHIPPER_COUNTRYCODE,
  138 + </if>
  139 + <if test="shipperPhone != null" >
  140 + SHIPPER_PHONE,
  141 + </if>
  142 + <if test="shipperFax != null" >
  143 + SHIPPER_FAX,
  144 + </if>
  145 + <if test="consigneeCode != null" >
  146 + CONSIGNEE_CODE,
  147 + </if>
  148 + <if test="consigneeCountrycode != null" >
  149 + CONSIGNEE_COUNTRYCODE,
  150 + </if>
  151 + <if test="consigneeFax != null" >
  152 + CONSIGNEE_FAX,
  153 + </if>
  154 + <if test="specificConsigneename != null" >
  155 + SPECIFIC_CONSIGNEENAME,
  156 + </if>
  157 + <if test="specificConsigneePhone != null" >
  158 + SPECIFIC_CONSIGNEE_PHONE,
  159 + </if>
  160 + <if test="consigneePhone != null" >
  161 + CONSIGNEE_PHONE,
  162 + </if>
  163 + </trim>
  164 + <trim prefix="values (" suffix=")" suffixOverrides="," >
  165 + <if test="autoid != null" >
  166 + #{autoid,jdbcType=VARCHAR},
  167 + </if>
  168 + <if test="waybillnomaster != null" >
  169 + #{waybillnomaster,jdbcType=VARCHAR},
  170 + </if>
  171 + <if test="waybillnosecondary != null" >
  172 + #{waybillnosecondary,jdbcType=VARCHAR},
  173 + </if>
  174 + <if test="weight != null" >
  175 + #{weight,jdbcType=VARCHAR},
  176 + </if>
  177 + <if test="piece != null" >
  178 + #{piece,jdbcType=VARCHAR},
  179 + </if>
  180 + <if test="manifestpiece != null" >
  181 + #{manifestpiece,jdbcType=VARCHAR},
  182 + </if>
  183 + <if test="manifestweight != null" >
  184 + #{manifestweight,jdbcType=VARCHAR},
  185 + </if>
  186 + <if test="productname != null" >
  187 + #{productname,jdbcType=VARCHAR},
  188 + </if>
  189 + <if test="paymode != null" >
  190 + #{paymode,jdbcType=VARCHAR},
  191 + </if>
  192 + <if test="specialgoodscode != null" >
  193 + #{specialgoodscode,jdbcType=VARCHAR},
  194 + </if>
  195 + <if test="customscode != null" >
  196 + #{customscode,jdbcType=VARCHAR},
  197 + </if>
  198 + <if test="shippername != null" >
  199 + #{shippername,jdbcType=VARCHAR},
  200 + </if>
  201 + <if test="shipperaddress != null" >
  202 + #{shipperaddress,jdbcType=VARCHAR},
  203 + </if>
  204 + <if test="consigneename != null" >
  205 + #{consigneename,jdbcType=VARCHAR},
  206 + </if>
  207 + <if test="consigneeaddress != null" >
  208 + #{consigneeaddress,jdbcType=VARCHAR},
  209 + </if>
  210 + <if test="createdate != null" >
  211 + #{createdate,jdbcType=TIMESTAMP},
  212 + </if>
  213 + <if test="originmanifestmasterautoid != null" >
  214 + #{originmanifestmasterautoid,jdbcType=VARCHAR},
  215 + </if>
  216 + <if test="customsstatus != null" >
  217 + #{customsstatus,jdbcType=VARCHAR},
  218 + </if>
  219 + <if test="status != null" >
  220 + #{status,jdbcType=VARCHAR},
  221 + </if>
  222 + <if test="receiption != null" >
  223 + #{receiption,jdbcType=VARCHAR},
  224 + </if>
  225 + <if test="originatingstationBill != null" >
  226 + #{originatingstationBill,jdbcType=VARCHAR},
  227 + </if>
  228 + <if test="destinationstationBill != null" >
  229 + #{destinationstationBill,jdbcType=VARCHAR},
  230 + </if>
  231 + <if test="shipperCode != null" >
  232 + #{shipperCode,jdbcType=VARCHAR},
  233 + </if>
  234 + <if test="shipperCountrycode != null" >
  235 + #{shipperCountrycode,jdbcType=VARCHAR},
  236 + </if>
  237 + <if test="shipperPhone != null" >
  238 + #{shipperPhone,jdbcType=VARCHAR},
  239 + </if>
  240 + <if test="shipperFax != null" >
  241 + #{shipperFax,jdbcType=VARCHAR},
  242 + </if>
  243 + <if test="consigneeCode != null" >
  244 + #{consigneeCode,jdbcType=VARCHAR},
  245 + </if>
  246 + <if test="consigneeCountrycode != null" >
  247 + #{consigneeCountrycode,jdbcType=VARCHAR},
  248 + </if>
  249 + <if test="consigneeFax != null" >
  250 + #{consigneeFax,jdbcType=VARCHAR},
  251 + </if>
  252 + <if test="specificConsigneename != null" >
  253 + #{specificConsigneename,jdbcType=VARCHAR},
  254 + </if>
  255 + <if test="specificConsigneePhone != null" >
  256 + #{specificConsigneePhone,jdbcType=VARCHAR},
  257 + </if>
  258 + <if test="consigneePhone != null" >
  259 + #{consigneePhone,jdbcType=VARCHAR},
  260 + </if>
  261 + </trim>
  262 + </insert>
  263 +
  264 + <update id="updateRECEIPTION" parameterType="com.tianbo.analysis.model.Originmanifestsecondary" >
  265 + UPDATE ORIGINMANIFESTSECONDARY
  266 + SET
  267 + RECEIPTION= #{receiption,jdbcType=VARCHAR},
  268 + STATUS=#{status,jdbcType=VARCHAR }
  269 + WHERE
  270 + WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
  271 + AND WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}
  272 + AND ORIGINMANIFESTMASTERAUTOID = #{originmanifestmasterautoid,jdbcType=VARCHAR }
  273 + </update>
  274 +
  275 + <select id="selectAutoIdByawbAawbH" parameterType="com.tianbo.analysis.model.Originmanifestsecondary" resultType="com.tianbo.analysis.model.Originmanifestsecondary">
  276 + SELECT AUTOID
  277 + FROM ORIGINMANIFESTSECONDARY
  278 + WHERE
  279 + WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
  280 + AND WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}
  281 + AND ORIGINMANIFESTMASTERAUTOID = #{originmanifestmasterautoid,jdbcType=VARCHAR }
  282 + </select>
  283 +
  284 + <delete id="deleteAwbh" parameterType="java.lang.String">
  285 + DELETE FROM ORIGINMANIFESTSECONDARY
  286 + WHERE
  287 + AUTOID = #{awbhAutoId,jdbcType=VARCHAR}
  288 + </delete>
  289 +</mapper>