作者 xudada

分拨申请查询实体

package com.sunyo.wlpt.base.dao;
import com.sunyo.wlpt.base.model.NMMS_CUSTOM_TRANS;
public interface NMMS_CUSTOM_TRANSMapper {
int deleteByPrimaryKey(String uuid);
int insert(NMMS_CUSTOM_TRANS record);
int insertSelective(NMMS_CUSTOM_TRANS record);
NMMS_CUSTOM_TRANS selectByPrimaryKey(String uuid);
int updateByPrimaryKeySelective(NMMS_CUSTOM_TRANS record);
int updateByPrimaryKey(NMMS_CUSTOM_TRANS record);
}
\ No newline at end of file
... ...
package com.sunyo.wlpt.base.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import java.util.Date;
public class NMMS_CUSTOM_WAYDECLARATION {
private String carrier;
private String flightno;
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date flightdate;
private String originstation;
private String destinationstation;
private String ext5;
public String getExt5() {
return ext5;
}
public void setExt5(String ext5) {
this.ext5 = ext5;
}
private String awba;
private String awbh;
private Integer piece;
private BigDecimal weight;
private String customcode;
private Date actime;
private String status;
private String stype;
public String getCarrier() {
return carrier;
}
public void setCarrier(String carrier) {
this.carrier = carrier == null ? null : carrier.trim();
}
public String getFlightno() {
return flightno;
}
public void setFlightno(String flightno) {
this.flightno = flightno == null ? null : flightno.trim();
}
public Date getFlightdate() {
return flightdate;
}
public void setFlightdate(Date flightdate) {
this.flightdate = flightdate;
}
public String getOriginstation() {
return originstation;
}
public void setOriginstation(String originstation) {
this.originstation = originstation == null ? null : originstation.trim();
}
public String getDestinationstation() {
return destinationstation;
}
public void setDestinationstation(String destinationstation) {
this.destinationstation = destinationstation == null ? null : destinationstation.trim();
}
public String getAwba() {
return awba;
}
public void setAwba(String awba) {
this.awba = awba == null ? null : awba.trim();
}
public String getAwbh() {
return awbh;
}
public void setAwbh(String awbh) {
this.awbh = awbh == null ? null : awbh.trim();
}
public Integer getPiece() {
return piece;
}
public void setPiece(Integer piece) {
this.piece = piece;
}
public BigDecimal getWeight() {
return weight;
}
public void setWeight(BigDecimal weight) {
this.weight = weight;
}
public String getCustomcode() {
return customcode;
}
public void setCustomcode(String customcode) {
this.customcode = customcode == null ? null : customcode.trim();
}
public Date getActime() {
return actime;
}
public void setActime(Date actime) {
this.actime = actime;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status == null ? null : status.trim();
}
public String getStype() {
return stype;
}
public void setStype(String stype) {
this.stype = stype == null ? null : stype.trim();
}
}
\ No newline at end of file
... ...
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.sunyo.wlpt.base.dao.NMMS_CUSTOM_TRANSMapper" >
<resultMap id="BaseResultMap" type="com.sunyo.wlpt.base.model.NMMS_CUSTOM_TRANS" >
<id column="uuid" property="uuid" jdbcType="VARCHAR" />
<result column="uuid1201" property="uuid1201" jdbcType="VARCHAR" />
<result column="awba" property="awba" jdbcType="VARCHAR" />
<result column="carrier" property="carrier" jdbcType="VARCHAR" />
<result column="flightNo" property="flightno" jdbcType="VARCHAR" />
<result column="flightDate" property="flightdate" jdbcType="DATE" />
<result column="turnPiece" property="turnpiece" jdbcType="VARCHAR" />
<result column="turnWeight" property="turnweight" jdbcType="DECIMAL" />
<result column="customCode" property="customcode" jdbcType="VARCHAR" />
<result column="turnUnLoading" property="turnunloading" jdbcType="VARCHAR" />
<result column="pNo" property="pno" jdbcType="VARCHAR" />
<result column="status" property="status" jdbcType="VARCHAR" />
<result column="turnType" property="turntype" jdbcType="VARCHAR" />
<result column="goodsName" property="goodsname" jdbcType="VARCHAR" />
<result column="isDelete" property="isdelete" jdbcType="BIT" />
<result column="ext1" property="ext1" jdbcType="VARCHAR" />
<result column="ext2" property="ext2" jdbcType="VARCHAR" />
<result column="ext3" property="ext3" jdbcType="VARCHAR" />
<result column="ext4" property="ext4" jdbcType="VARCHAR" />
<result column="ext5" property="ext5" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
uuid, uuid1201, awba, carrier, flightNo, flightDate, turnPiece, turnWeight, customCode,
turnUnLoading, pNo, status, turnType, goodsName, isDelete, ext1, ext2, ext3, ext4,
ext5
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from CUSTOM_TRANS
where uuid = #{uuid,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from CUSTOM_TRANS
where uuid = #{uuid,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_TRANS" >
insert into CUSTOM_TRANS (uuid, uuid1201, awba,
carrier, flightNo, flightDate,
turnPiece, turnWeight, customCode,
turnUnLoading, pNo, status,
turnType, goodsName, isDelete,
ext1, ext2, ext3, ext4,
ext5)
values (#{uuid,jdbcType=VARCHAR}, #{uuid1201,jdbcType=VARCHAR}, #{awba,jdbcType=VARCHAR},
#{carrier,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=DATE},
#{turnpiece,jdbcType=VARCHAR}, #{turnweight,jdbcType=DECIMAL}, #{customcode,jdbcType=VARCHAR},
#{turnunloading,jdbcType=VARCHAR}, #{pno,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR},
#{turntype,jdbcType=VARCHAR}, #{goodsname,jdbcType=VARCHAR}, #{isdelete,jdbcType=BIT},
#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, #{ext4,jdbcType=VARCHAR},
#{ext5,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_TRANS" >
insert into CUSTOM_TRANS
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="uuid != null" >
uuid,
</if>
<if test="uuid1201 != null" >
uuid1201,
</if>
<if test="awba != null" >
awba,
</if>
<if test="carrier != null" >
carrier,
</if>
<if test="flightno != null" >
flightNo,
</if>
<if test="flightdate != null" >
flightDate,
</if>
<if test="turnpiece != null" >
turnPiece,
</if>
<if test="turnweight != null" >
turnWeight,
</if>
<if test="customcode != null" >
customCode,
</if>
<if test="turnunloading != null" >
turnUnLoading,
</if>
<if test="pno != null" >
pNo,
</if>
<if test="status != null" >
status,
</if>
<if test="turntype != null" >
turnType,
</if>
<if test="goodsname != null" >
goodsName,
</if>
<if test="isdelete != null" >
isDelete,
</if>
<if test="ext1 != null" >
ext1,
</if>
<if test="ext2 != null" >
ext2,
</if>
<if test="ext3 != null" >
ext3,
</if>
<if test="ext4 != null" >
ext4,
</if>
<if test="ext5 != null" >
ext5,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="uuid != null" >
#{uuid,jdbcType=VARCHAR},
</if>
<if test="uuid1201 != null" >
#{uuid1201,jdbcType=VARCHAR},
</if>
<if test="awba != null" >
#{awba,jdbcType=VARCHAR},
</if>
<if test="carrier != null" >
#{carrier,jdbcType=VARCHAR},
</if>
<if test="flightno != null" >
#{flightno,jdbcType=VARCHAR},
</if>
<if test="flightdate != null" >
#{flightdate,jdbcType=DATE},
</if>
<if test="turnpiece != null" >
#{turnpiece,jdbcType=VARCHAR},
</if>
<if test="turnweight != null" >
#{turnweight,jdbcType=DECIMAL},
</if>
<if test="customcode != null" >
#{customcode,jdbcType=VARCHAR},
</if>
<if test="turnunloading != null" >
#{turnunloading,jdbcType=VARCHAR},
</if>
<if test="pno != null" >
#{pno,jdbcType=VARCHAR},
</if>
<if test="status != null" >
#{status,jdbcType=VARCHAR},
</if>
<if test="turntype != null" >
#{turntype,jdbcType=VARCHAR},
</if>
<if test="goodsname != null" >
#{goodsname,jdbcType=VARCHAR},
</if>
<if test="isdelete != null" >
#{isdelete,jdbcType=BIT},
</if>
<if test="ext1 != null" >
#{ext1,jdbcType=VARCHAR},
</if>
<if test="ext2 != null" >
#{ext2,jdbcType=VARCHAR},
</if>
<if test="ext3 != null" >
#{ext3,jdbcType=VARCHAR},
</if>
<if test="ext4 != null" >
#{ext4,jdbcType=VARCHAR},
</if>
<if test="ext5 != null" >
#{ext5,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_TRANS" >
update CUSTOM_TRANS
<set >
<if test="uuid1201 != null" >
uuid1201 = #{uuid1201,jdbcType=VARCHAR},
</if>
<if test="awba != null" >
awba = #{awba,jdbcType=VARCHAR},
</if>
<if test="carrier != null" >
carrier = #{carrier,jdbcType=VARCHAR},
</if>
<if test="flightno != null" >
flightNo = #{flightno,jdbcType=VARCHAR},
</if>
<if test="flightdate != null" >
flightDate = #{flightdate,jdbcType=DATE},
</if>
<if test="turnpiece != null" >
turnPiece = #{turnpiece,jdbcType=VARCHAR},
</if>
<if test="turnweight != null" >
turnWeight = #{turnweight,jdbcType=DECIMAL},
</if>
<if test="customcode != null" >
customCode = #{customcode,jdbcType=VARCHAR},
</if>
<if test="turnunloading != null" >
turnUnLoading = #{turnunloading,jdbcType=VARCHAR},
</if>
<if test="pno != null" >
pNo = #{pno,jdbcType=VARCHAR},
</if>
<if test="status != null" >
status = #{status,jdbcType=VARCHAR},
</if>
<if test="turntype != null" >
turnType = #{turntype,jdbcType=VARCHAR},
</if>
<if test="goodsname != null" >
goodsName = #{goodsname,jdbcType=VARCHAR},
</if>
<if test="isdelete != null" >
isDelete = #{isdelete,jdbcType=BIT},
</if>
<if test="ext1 != null" >
ext1 = #{ext1,jdbcType=VARCHAR},
</if>
<if test="ext2 != null" >
ext2 = #{ext2,jdbcType=VARCHAR},
</if>
<if test="ext3 != null" >
ext3 = #{ext3,jdbcType=VARCHAR},
</if>
<if test="ext4 != null" >
ext4 = #{ext4,jdbcType=VARCHAR},
</if>
<if test="ext5 != null" >
ext5 = #{ext5,jdbcType=VARCHAR},
</if>
</set>
where uuid = #{uuid,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_TRANS" >
update CUSTOM_TRANS
set uuid1201 = #{uuid1201,jdbcType=VARCHAR},
awba = #{awba,jdbcType=VARCHAR},
carrier = #{carrier,jdbcType=VARCHAR},
flightNo = #{flightno,jdbcType=VARCHAR},
flightDate = #{flightdate,jdbcType=DATE},
turnPiece = #{turnpiece,jdbcType=VARCHAR},
turnWeight = #{turnweight,jdbcType=DECIMAL},
customCode = #{customcode,jdbcType=VARCHAR},
turnUnLoading = #{turnunloading,jdbcType=VARCHAR},
pNo = #{pno,jdbcType=VARCHAR},
status = #{status,jdbcType=VARCHAR},
turnType = #{turntype,jdbcType=VARCHAR},
goodsName = #{goodsname,jdbcType=VARCHAR},
isDelete = #{isdelete,jdbcType=BIT},
ext1 = #{ext1,jdbcType=VARCHAR},
ext2 = #{ext2,jdbcType=VARCHAR},
ext3 = #{ext3,jdbcType=VARCHAR},
ext4 = #{ext4,jdbcType=VARCHAR},
ext5 = #{ext5,jdbcType=VARCHAR}
where uuid = #{uuid,jdbcType=VARCHAR}
</update>
</mapper>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.sunyo.wlpt.base.dao.NMMS_CUSTOM_WAYDECLARATIONMapper" >
<resultMap id="BaseResultMap" type="com.sunyo.wlpt.base.model.NMMS_CUSTOM_WAYDECLARATION" >
<result column="carrier" property="carrier" jdbcType="VARCHAR" />
<result column="flightNo" property="flightno" jdbcType="VARCHAR" />
<result column="flightDate" property="flightdate" jdbcType="DATE" />
<result column="originStation" property="originstation" jdbcType="VARCHAR" />
<result column="destinationStation" property="destinationstation" jdbcType="VARCHAR" />
<result column="awba" property="awba" jdbcType="VARCHAR" />
<result column="awbh" property="awbh" jdbcType="VARCHAR" />
<result column="piece" property="piece" jdbcType="INTEGER" />
<result column="weight" property="weight" jdbcType="DECIMAL" />
<result column="customCode" property="customcode" jdbcType="VARCHAR" />
<result column="acTime" property="actime" jdbcType="TIMESTAMP" />
<result column="status" property="status" jdbcType="VARCHAR" />
<result column="stype" property="stype" jdbcType="VARCHAR" />
</resultMap>
<insert id="insert" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_WAYDECLARATION" >
insert into NMMS_WAYDECLARATION (carrier, flightNo, flightDate,
originStation, destinationStation, awba,
awbh, piece, weight,
customCode, acTime, status,
stype)
values (#{carrier,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=DATE},
#{originstation,jdbcType=VARCHAR}, #{destinationstation,jdbcType=VARCHAR}, #{awba,jdbcType=VARCHAR},
#{awbh,jdbcType=VARCHAR}, #{piece,jdbcType=INTEGER}, #{weight,jdbcType=DECIMAL},
#{customcode,jdbcType=VARCHAR}, #{actime,jdbcType=TIMESTAMP}, #{status,jdbcType=VARCHAR},
#{stype,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_WAYDECLARATION" >
insert into NMMS_WAYDECLARATION
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="carrier != null" >
carrier,
</if>
<if test="flightno != null" >
flightNo,
</if>
<if test="flightdate != null" >
flightDate,
</if>
<if test="originstation != null" >
originStation,
</if>
<if test="destinationstation != null" >
destinationStation,
</if>
<if test="awba != null" >
awba,
</if>
<if test="awbh != null" >
awbh,
</if>
<if test="piece != null" >
piece,
</if>
<if test="weight != null" >
weight,
</if>
<if test="customcode != null" >
customCode,
</if>
<if test="actime != null" >
acTime,
</if>
<if test="status != null" >
status,
</if>
<if test="stype != null" >
stype,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="carrier != null" >
#{carrier,jdbcType=VARCHAR},
</if>
<if test="flightno != null" >
#{flightno,jdbcType=VARCHAR},
</if>
<if test="flightdate != null" >
#{flightdate,jdbcType=DATE},
</if>
<if test="originstation != null" >
#{originstation,jdbcType=VARCHAR},
</if>
<if test="destinationstation != null" >
#{destinationstation,jdbcType=VARCHAR},
</if>
<if test="awba != null" >
#{awba,jdbcType=VARCHAR},
</if>
<if test="awbh != null" >
#{awbh,jdbcType=VARCHAR},
</if>
<if test="piece != null" >
#{piece,jdbcType=INTEGER},
</if>
<if test="weight != null" >
#{weight,jdbcType=DECIMAL},
</if>
<if test="customcode != null" >
#{customcode,jdbcType=VARCHAR},
</if>
<if test="actime != null" >
#{actime,jdbcType=TIMESTAMP},
</if>
<if test="status != null" >
#{status,jdbcType=VARCHAR},
</if>
<if test="stype != null" >
#{stype,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="selectWaydeclaration" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_WAYDECLARATION" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from NMMS_WAYDECLARATION
where 1=1
<if test="awba !=null and awba != ''">
and awba=#{awba,jdbcType=VARCHAR}
</if>
<if test="carrier !=null and carrier !=''">
AND carrier = #{carrier,jdbcType=VARCHAR}
</if>
<if test="flightno !=null and flightno !=''">
AND flightNo = #{flightno,jdbcType=VARCHAR}
</if>
<if test="flightdate !=null">
AND flightDate = #{flightdate,jdbcType=DATE}
</if>
<if test="status !=null and status !=''">
AND status = #{status,jdbcType=VARCHAR}
</if>
<if test="stype !=null and stype !=''">
AND stype = #{stype,jdbcType=VARCHAR}
</if>
</select>
</mapper>
\ No newline at end of file
... ...