正在显示
4 个修改的文件
包含
574 行增加
和
0 行删除
1 | +package com.sunyo.wlpt.base.dao; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.base.model.NMMS_CUSTOM_TRANS; | ||
4 | + | ||
5 | +public interface NMMS_CUSTOM_TRANSMapper { | ||
6 | + int deleteByPrimaryKey(String uuid); | ||
7 | + | ||
8 | + int insert(NMMS_CUSTOM_TRANS record); | ||
9 | + | ||
10 | + int insertSelective(NMMS_CUSTOM_TRANS record); | ||
11 | + | ||
12 | + NMMS_CUSTOM_TRANS selectByPrimaryKey(String uuid); | ||
13 | + | ||
14 | + int updateByPrimaryKeySelective(NMMS_CUSTOM_TRANS record); | ||
15 | + | ||
16 | + int updateByPrimaryKey(NMMS_CUSTOM_TRANS record); | ||
17 | +} |
1 | +package com.sunyo.wlpt.base.model; | ||
2 | + | ||
3 | +import com.fasterxml.jackson.annotation.JsonFormat; | ||
4 | + | ||
5 | +import java.math.BigDecimal; | ||
6 | +import java.util.Date; | ||
7 | + | ||
8 | +public class NMMS_CUSTOM_WAYDECLARATION { | ||
9 | + private String carrier; | ||
10 | + | ||
11 | + private String flightno; | ||
12 | + @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") | ||
13 | + private Date flightdate; | ||
14 | + | ||
15 | + private String originstation; | ||
16 | + | ||
17 | + private String destinationstation; | ||
18 | + private String ext5; | ||
19 | + | ||
20 | + public String getExt5() { | ||
21 | + return ext5; | ||
22 | + } | ||
23 | + | ||
24 | + public void setExt5(String ext5) { | ||
25 | + this.ext5 = ext5; | ||
26 | + } | ||
27 | + | ||
28 | + private String awba; | ||
29 | + | ||
30 | + private String awbh; | ||
31 | + | ||
32 | + private Integer piece; | ||
33 | + | ||
34 | + private BigDecimal weight; | ||
35 | + | ||
36 | + private String customcode; | ||
37 | + | ||
38 | + private Date actime; | ||
39 | + | ||
40 | + private String status; | ||
41 | + | ||
42 | + private String stype; | ||
43 | + | ||
44 | + public String getCarrier() { | ||
45 | + return carrier; | ||
46 | + } | ||
47 | + | ||
48 | + public void setCarrier(String carrier) { | ||
49 | + this.carrier = carrier == null ? null : carrier.trim(); | ||
50 | + } | ||
51 | + | ||
52 | + public String getFlightno() { | ||
53 | + return flightno; | ||
54 | + } | ||
55 | + | ||
56 | + public void setFlightno(String flightno) { | ||
57 | + this.flightno = flightno == null ? null : flightno.trim(); | ||
58 | + } | ||
59 | + | ||
60 | + public Date getFlightdate() { | ||
61 | + return flightdate; | ||
62 | + } | ||
63 | + | ||
64 | + public void setFlightdate(Date flightdate) { | ||
65 | + this.flightdate = flightdate; | ||
66 | + } | ||
67 | + | ||
68 | + public String getOriginstation() { | ||
69 | + return originstation; | ||
70 | + } | ||
71 | + | ||
72 | + public void setOriginstation(String originstation) { | ||
73 | + this.originstation = originstation == null ? null : originstation.trim(); | ||
74 | + } | ||
75 | + | ||
76 | + public String getDestinationstation() { | ||
77 | + return destinationstation; | ||
78 | + } | ||
79 | + | ||
80 | + public void setDestinationstation(String destinationstation) { | ||
81 | + this.destinationstation = destinationstation == null ? null : destinationstation.trim(); | ||
82 | + } | ||
83 | + | ||
84 | + public String getAwba() { | ||
85 | + return awba; | ||
86 | + } | ||
87 | + | ||
88 | + public void setAwba(String awba) { | ||
89 | + this.awba = awba == null ? null : awba.trim(); | ||
90 | + } | ||
91 | + | ||
92 | + public String getAwbh() { | ||
93 | + return awbh; | ||
94 | + } | ||
95 | + | ||
96 | + public void setAwbh(String awbh) { | ||
97 | + this.awbh = awbh == null ? null : awbh.trim(); | ||
98 | + } | ||
99 | + | ||
100 | + public Integer getPiece() { | ||
101 | + return piece; | ||
102 | + } | ||
103 | + | ||
104 | + public void setPiece(Integer piece) { | ||
105 | + this.piece = piece; | ||
106 | + } | ||
107 | + | ||
108 | + public BigDecimal getWeight() { | ||
109 | + return weight; | ||
110 | + } | ||
111 | + | ||
112 | + public void setWeight(BigDecimal weight) { | ||
113 | + this.weight = weight; | ||
114 | + } | ||
115 | + | ||
116 | + public String getCustomcode() { | ||
117 | + return customcode; | ||
118 | + } | ||
119 | + | ||
120 | + public void setCustomcode(String customcode) { | ||
121 | + this.customcode = customcode == null ? null : customcode.trim(); | ||
122 | + } | ||
123 | + | ||
124 | + public Date getActime() { | ||
125 | + return actime; | ||
126 | + } | ||
127 | + | ||
128 | + public void setActime(Date actime) { | ||
129 | + this.actime = actime; | ||
130 | + } | ||
131 | + | ||
132 | + public String getStatus() { | ||
133 | + return status; | ||
134 | + } | ||
135 | + | ||
136 | + public void setStatus(String status) { | ||
137 | + this.status = status == null ? null : status.trim(); | ||
138 | + } | ||
139 | + | ||
140 | + public String getStype() { | ||
141 | + return stype; | ||
142 | + } | ||
143 | + | ||
144 | + public void setStype(String stype) { | ||
145 | + this.stype = stype == null ? null : stype.trim(); | ||
146 | + } | ||
147 | +} |
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.sunyo.wlpt.base.dao.NMMS_CUSTOM_TRANSMapper" > | ||
4 | + <resultMap id="BaseResultMap" type="com.sunyo.wlpt.base.model.NMMS_CUSTOM_TRANS" > | ||
5 | + <id column="uuid" property="uuid" jdbcType="VARCHAR" /> | ||
6 | + <result column="uuid1201" property="uuid1201" jdbcType="VARCHAR" /> | ||
7 | + <result column="awba" property="awba" jdbcType="VARCHAR" /> | ||
8 | + <result column="carrier" property="carrier" jdbcType="VARCHAR" /> | ||
9 | + <result column="flightNo" property="flightno" jdbcType="VARCHAR" /> | ||
10 | + <result column="flightDate" property="flightdate" jdbcType="DATE" /> | ||
11 | + <result column="turnPiece" property="turnpiece" jdbcType="VARCHAR" /> | ||
12 | + <result column="turnWeight" property="turnweight" jdbcType="DECIMAL" /> | ||
13 | + <result column="customCode" property="customcode" jdbcType="VARCHAR" /> | ||
14 | + <result column="turnUnLoading" property="turnunloading" jdbcType="VARCHAR" /> | ||
15 | + <result column="pNo" property="pno" jdbcType="VARCHAR" /> | ||
16 | + <result column="status" property="status" jdbcType="VARCHAR" /> | ||
17 | + <result column="turnType" property="turntype" jdbcType="VARCHAR" /> | ||
18 | + <result column="goodsName" property="goodsname" jdbcType="VARCHAR" /> | ||
19 | + <result column="isDelete" property="isdelete" jdbcType="BIT" /> | ||
20 | + <result column="ext1" property="ext1" jdbcType="VARCHAR" /> | ||
21 | + <result column="ext2" property="ext2" jdbcType="VARCHAR" /> | ||
22 | + <result column="ext3" property="ext3" jdbcType="VARCHAR" /> | ||
23 | + <result column="ext4" property="ext4" jdbcType="VARCHAR" /> | ||
24 | + <result column="ext5" property="ext5" jdbcType="VARCHAR" /> | ||
25 | + </resultMap> | ||
26 | + <sql id="Base_Column_List" > | ||
27 | + uuid, uuid1201, awba, carrier, flightNo, flightDate, turnPiece, turnWeight, customCode, | ||
28 | + turnUnLoading, pNo, status, turnType, goodsName, isDelete, ext1, ext2, ext3, ext4, | ||
29 | + ext5 | ||
30 | + </sql> | ||
31 | + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" > | ||
32 | + select | ||
33 | + <include refid="Base_Column_List" /> | ||
34 | + from CUSTOM_TRANS | ||
35 | + where uuid = #{uuid,jdbcType=VARCHAR} | ||
36 | + </select> | ||
37 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.String" > | ||
38 | + delete from CUSTOM_TRANS | ||
39 | + where uuid = #{uuid,jdbcType=VARCHAR} | ||
40 | + </delete> | ||
41 | + <insert id="insert" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_TRANS" > | ||
42 | + insert into CUSTOM_TRANS (uuid, uuid1201, awba, | ||
43 | + carrier, flightNo, flightDate, | ||
44 | + turnPiece, turnWeight, customCode, | ||
45 | + turnUnLoading, pNo, status, | ||
46 | + turnType, goodsName, isDelete, | ||
47 | + ext1, ext2, ext3, ext4, | ||
48 | + ext5) | ||
49 | + values (#{uuid,jdbcType=VARCHAR}, #{uuid1201,jdbcType=VARCHAR}, #{awba,jdbcType=VARCHAR}, | ||
50 | + #{carrier,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=DATE}, | ||
51 | + #{turnpiece,jdbcType=VARCHAR}, #{turnweight,jdbcType=DECIMAL}, #{customcode,jdbcType=VARCHAR}, | ||
52 | + #{turnunloading,jdbcType=VARCHAR}, #{pno,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, | ||
53 | + #{turntype,jdbcType=VARCHAR}, #{goodsname,jdbcType=VARCHAR}, #{isdelete,jdbcType=BIT}, | ||
54 | + #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, #{ext4,jdbcType=VARCHAR}, | ||
55 | + #{ext5,jdbcType=VARCHAR}) | ||
56 | + </insert> | ||
57 | + <insert id="insertSelective" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_TRANS" > | ||
58 | + insert into CUSTOM_TRANS | ||
59 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
60 | + <if test="uuid != null" > | ||
61 | + uuid, | ||
62 | + </if> | ||
63 | + <if test="uuid1201 != null" > | ||
64 | + uuid1201, | ||
65 | + </if> | ||
66 | + <if test="awba != null" > | ||
67 | + awba, | ||
68 | + </if> | ||
69 | + <if test="carrier != null" > | ||
70 | + carrier, | ||
71 | + </if> | ||
72 | + <if test="flightno != null" > | ||
73 | + flightNo, | ||
74 | + </if> | ||
75 | + <if test="flightdate != null" > | ||
76 | + flightDate, | ||
77 | + </if> | ||
78 | + <if test="turnpiece != null" > | ||
79 | + turnPiece, | ||
80 | + </if> | ||
81 | + <if test="turnweight != null" > | ||
82 | + turnWeight, | ||
83 | + </if> | ||
84 | + <if test="customcode != null" > | ||
85 | + customCode, | ||
86 | + </if> | ||
87 | + <if test="turnunloading != null" > | ||
88 | + turnUnLoading, | ||
89 | + </if> | ||
90 | + <if test="pno != null" > | ||
91 | + pNo, | ||
92 | + </if> | ||
93 | + <if test="status != null" > | ||
94 | + status, | ||
95 | + </if> | ||
96 | + <if test="turntype != null" > | ||
97 | + turnType, | ||
98 | + </if> | ||
99 | + <if test="goodsname != null" > | ||
100 | + goodsName, | ||
101 | + </if> | ||
102 | + <if test="isdelete != null" > | ||
103 | + isDelete, | ||
104 | + </if> | ||
105 | + <if test="ext1 != null" > | ||
106 | + ext1, | ||
107 | + </if> | ||
108 | + <if test="ext2 != null" > | ||
109 | + ext2, | ||
110 | + </if> | ||
111 | + <if test="ext3 != null" > | ||
112 | + ext3, | ||
113 | + </if> | ||
114 | + <if test="ext4 != null" > | ||
115 | + ext4, | ||
116 | + </if> | ||
117 | + <if test="ext5 != null" > | ||
118 | + ext5, | ||
119 | + </if> | ||
120 | + </trim> | ||
121 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
122 | + <if test="uuid != null" > | ||
123 | + #{uuid,jdbcType=VARCHAR}, | ||
124 | + </if> | ||
125 | + <if test="uuid1201 != null" > | ||
126 | + #{uuid1201,jdbcType=VARCHAR}, | ||
127 | + </if> | ||
128 | + <if test="awba != null" > | ||
129 | + #{awba,jdbcType=VARCHAR}, | ||
130 | + </if> | ||
131 | + <if test="carrier != null" > | ||
132 | + #{carrier,jdbcType=VARCHAR}, | ||
133 | + </if> | ||
134 | + <if test="flightno != null" > | ||
135 | + #{flightno,jdbcType=VARCHAR}, | ||
136 | + </if> | ||
137 | + <if test="flightdate != null" > | ||
138 | + #{flightdate,jdbcType=DATE}, | ||
139 | + </if> | ||
140 | + <if test="turnpiece != null" > | ||
141 | + #{turnpiece,jdbcType=VARCHAR}, | ||
142 | + </if> | ||
143 | + <if test="turnweight != null" > | ||
144 | + #{turnweight,jdbcType=DECIMAL}, | ||
145 | + </if> | ||
146 | + <if test="customcode != null" > | ||
147 | + #{customcode,jdbcType=VARCHAR}, | ||
148 | + </if> | ||
149 | + <if test="turnunloading != null" > | ||
150 | + #{turnunloading,jdbcType=VARCHAR}, | ||
151 | + </if> | ||
152 | + <if test="pno != null" > | ||
153 | + #{pno,jdbcType=VARCHAR}, | ||
154 | + </if> | ||
155 | + <if test="status != null" > | ||
156 | + #{status,jdbcType=VARCHAR}, | ||
157 | + </if> | ||
158 | + <if test="turntype != null" > | ||
159 | + #{turntype,jdbcType=VARCHAR}, | ||
160 | + </if> | ||
161 | + <if test="goodsname != null" > | ||
162 | + #{goodsname,jdbcType=VARCHAR}, | ||
163 | + </if> | ||
164 | + <if test="isdelete != null" > | ||
165 | + #{isdelete,jdbcType=BIT}, | ||
166 | + </if> | ||
167 | + <if test="ext1 != null" > | ||
168 | + #{ext1,jdbcType=VARCHAR}, | ||
169 | + </if> | ||
170 | + <if test="ext2 != null" > | ||
171 | + #{ext2,jdbcType=VARCHAR}, | ||
172 | + </if> | ||
173 | + <if test="ext3 != null" > | ||
174 | + #{ext3,jdbcType=VARCHAR}, | ||
175 | + </if> | ||
176 | + <if test="ext4 != null" > | ||
177 | + #{ext4,jdbcType=VARCHAR}, | ||
178 | + </if> | ||
179 | + <if test="ext5 != null" > | ||
180 | + #{ext5,jdbcType=VARCHAR}, | ||
181 | + </if> | ||
182 | + </trim> | ||
183 | + </insert> | ||
184 | + <update id="updateByPrimaryKeySelective" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_TRANS" > | ||
185 | + update CUSTOM_TRANS | ||
186 | + <set > | ||
187 | + <if test="uuid1201 != null" > | ||
188 | + uuid1201 = #{uuid1201,jdbcType=VARCHAR}, | ||
189 | + </if> | ||
190 | + <if test="awba != null" > | ||
191 | + awba = #{awba,jdbcType=VARCHAR}, | ||
192 | + </if> | ||
193 | + <if test="carrier != null" > | ||
194 | + carrier = #{carrier,jdbcType=VARCHAR}, | ||
195 | + </if> | ||
196 | + <if test="flightno != null" > | ||
197 | + flightNo = #{flightno,jdbcType=VARCHAR}, | ||
198 | + </if> | ||
199 | + <if test="flightdate != null" > | ||
200 | + flightDate = #{flightdate,jdbcType=DATE}, | ||
201 | + </if> | ||
202 | + <if test="turnpiece != null" > | ||
203 | + turnPiece = #{turnpiece,jdbcType=VARCHAR}, | ||
204 | + </if> | ||
205 | + <if test="turnweight != null" > | ||
206 | + turnWeight = #{turnweight,jdbcType=DECIMAL}, | ||
207 | + </if> | ||
208 | + <if test="customcode != null" > | ||
209 | + customCode = #{customcode,jdbcType=VARCHAR}, | ||
210 | + </if> | ||
211 | + <if test="turnunloading != null" > | ||
212 | + turnUnLoading = #{turnunloading,jdbcType=VARCHAR}, | ||
213 | + </if> | ||
214 | + <if test="pno != null" > | ||
215 | + pNo = #{pno,jdbcType=VARCHAR}, | ||
216 | + </if> | ||
217 | + <if test="status != null" > | ||
218 | + status = #{status,jdbcType=VARCHAR}, | ||
219 | + </if> | ||
220 | + <if test="turntype != null" > | ||
221 | + turnType = #{turntype,jdbcType=VARCHAR}, | ||
222 | + </if> | ||
223 | + <if test="goodsname != null" > | ||
224 | + goodsName = #{goodsname,jdbcType=VARCHAR}, | ||
225 | + </if> | ||
226 | + <if test="isdelete != null" > | ||
227 | + isDelete = #{isdelete,jdbcType=BIT}, | ||
228 | + </if> | ||
229 | + <if test="ext1 != null" > | ||
230 | + ext1 = #{ext1,jdbcType=VARCHAR}, | ||
231 | + </if> | ||
232 | + <if test="ext2 != null" > | ||
233 | + ext2 = #{ext2,jdbcType=VARCHAR}, | ||
234 | + </if> | ||
235 | + <if test="ext3 != null" > | ||
236 | + ext3 = #{ext3,jdbcType=VARCHAR}, | ||
237 | + </if> | ||
238 | + <if test="ext4 != null" > | ||
239 | + ext4 = #{ext4,jdbcType=VARCHAR}, | ||
240 | + </if> | ||
241 | + <if test="ext5 != null" > | ||
242 | + ext5 = #{ext5,jdbcType=VARCHAR}, | ||
243 | + </if> | ||
244 | + </set> | ||
245 | + where uuid = #{uuid,jdbcType=VARCHAR} | ||
246 | + </update> | ||
247 | + <update id="updateByPrimaryKey" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_TRANS" > | ||
248 | + update CUSTOM_TRANS | ||
249 | + set uuid1201 = #{uuid1201,jdbcType=VARCHAR}, | ||
250 | + awba = #{awba,jdbcType=VARCHAR}, | ||
251 | + carrier = #{carrier,jdbcType=VARCHAR}, | ||
252 | + flightNo = #{flightno,jdbcType=VARCHAR}, | ||
253 | + flightDate = #{flightdate,jdbcType=DATE}, | ||
254 | + turnPiece = #{turnpiece,jdbcType=VARCHAR}, | ||
255 | + turnWeight = #{turnweight,jdbcType=DECIMAL}, | ||
256 | + customCode = #{customcode,jdbcType=VARCHAR}, | ||
257 | + turnUnLoading = #{turnunloading,jdbcType=VARCHAR}, | ||
258 | + pNo = #{pno,jdbcType=VARCHAR}, | ||
259 | + status = #{status,jdbcType=VARCHAR}, | ||
260 | + turnType = #{turntype,jdbcType=VARCHAR}, | ||
261 | + goodsName = #{goodsname,jdbcType=VARCHAR}, | ||
262 | + isDelete = #{isdelete,jdbcType=BIT}, | ||
263 | + ext1 = #{ext1,jdbcType=VARCHAR}, | ||
264 | + ext2 = #{ext2,jdbcType=VARCHAR}, | ||
265 | + ext3 = #{ext3,jdbcType=VARCHAR}, | ||
266 | + ext4 = #{ext4,jdbcType=VARCHAR}, | ||
267 | + ext5 = #{ext5,jdbcType=VARCHAR} | ||
268 | + where uuid = #{uuid,jdbcType=VARCHAR} | ||
269 | + </update> | ||
270 | +</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.sunyo.wlpt.base.dao.NMMS_CUSTOM_WAYDECLARATIONMapper" > | ||
4 | + <resultMap id="BaseResultMap" type="com.sunyo.wlpt.base.model.NMMS_CUSTOM_WAYDECLARATION" > | ||
5 | + <result column="carrier" property="carrier" jdbcType="VARCHAR" /> | ||
6 | + <result column="flightNo" property="flightno" jdbcType="VARCHAR" /> | ||
7 | + <result column="flightDate" property="flightdate" jdbcType="DATE" /> | ||
8 | + <result column="originStation" property="originstation" jdbcType="VARCHAR" /> | ||
9 | + <result column="destinationStation" property="destinationstation" jdbcType="VARCHAR" /> | ||
10 | + <result column="awba" property="awba" jdbcType="VARCHAR" /> | ||
11 | + <result column="awbh" property="awbh" jdbcType="VARCHAR" /> | ||
12 | + <result column="piece" property="piece" jdbcType="INTEGER" /> | ||
13 | + <result column="weight" property="weight" jdbcType="DECIMAL" /> | ||
14 | + <result column="customCode" property="customcode" jdbcType="VARCHAR" /> | ||
15 | + <result column="acTime" property="actime" jdbcType="TIMESTAMP" /> | ||
16 | + <result column="status" property="status" jdbcType="VARCHAR" /> | ||
17 | + <result column="stype" property="stype" jdbcType="VARCHAR" /> | ||
18 | + </resultMap> | ||
19 | + <insert id="insert" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_WAYDECLARATION" > | ||
20 | + insert into NMMS_WAYDECLARATION (carrier, flightNo, flightDate, | ||
21 | + originStation, destinationStation, awba, | ||
22 | + awbh, piece, weight, | ||
23 | + customCode, acTime, status, | ||
24 | + stype) | ||
25 | + values (#{carrier,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=DATE}, | ||
26 | + #{originstation,jdbcType=VARCHAR}, #{destinationstation,jdbcType=VARCHAR}, #{awba,jdbcType=VARCHAR}, | ||
27 | + #{awbh,jdbcType=VARCHAR}, #{piece,jdbcType=INTEGER}, #{weight,jdbcType=DECIMAL}, | ||
28 | + #{customcode,jdbcType=VARCHAR}, #{actime,jdbcType=TIMESTAMP}, #{status,jdbcType=VARCHAR}, | ||
29 | + #{stype,jdbcType=VARCHAR}) | ||
30 | + </insert> | ||
31 | + <insert id="insertSelective" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_WAYDECLARATION" > | ||
32 | + insert into NMMS_WAYDECLARATION | ||
33 | + <trim prefix="(" suffix=")" suffixOverrides="," > | ||
34 | + <if test="carrier != null" > | ||
35 | + carrier, | ||
36 | + </if> | ||
37 | + <if test="flightno != null" > | ||
38 | + flightNo, | ||
39 | + </if> | ||
40 | + <if test="flightdate != null" > | ||
41 | + flightDate, | ||
42 | + </if> | ||
43 | + <if test="originstation != null" > | ||
44 | + originStation, | ||
45 | + </if> | ||
46 | + <if test="destinationstation != null" > | ||
47 | + destinationStation, | ||
48 | + </if> | ||
49 | + <if test="awba != null" > | ||
50 | + awba, | ||
51 | + </if> | ||
52 | + <if test="awbh != null" > | ||
53 | + awbh, | ||
54 | + </if> | ||
55 | + <if test="piece != null" > | ||
56 | + piece, | ||
57 | + </if> | ||
58 | + <if test="weight != null" > | ||
59 | + weight, | ||
60 | + </if> | ||
61 | + <if test="customcode != null" > | ||
62 | + customCode, | ||
63 | + </if> | ||
64 | + <if test="actime != null" > | ||
65 | + acTime, | ||
66 | + </if> | ||
67 | + <if test="status != null" > | ||
68 | + status, | ||
69 | + </if> | ||
70 | + <if test="stype != null" > | ||
71 | + stype, | ||
72 | + </if> | ||
73 | + </trim> | ||
74 | + <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
75 | + <if test="carrier != null" > | ||
76 | + #{carrier,jdbcType=VARCHAR}, | ||
77 | + </if> | ||
78 | + <if test="flightno != null" > | ||
79 | + #{flightno,jdbcType=VARCHAR}, | ||
80 | + </if> | ||
81 | + <if test="flightdate != null" > | ||
82 | + #{flightdate,jdbcType=DATE}, | ||
83 | + </if> | ||
84 | + <if test="originstation != null" > | ||
85 | + #{originstation,jdbcType=VARCHAR}, | ||
86 | + </if> | ||
87 | + <if test="destinationstation != null" > | ||
88 | + #{destinationstation,jdbcType=VARCHAR}, | ||
89 | + </if> | ||
90 | + <if test="awba != null" > | ||
91 | + #{awba,jdbcType=VARCHAR}, | ||
92 | + </if> | ||
93 | + <if test="awbh != null" > | ||
94 | + #{awbh,jdbcType=VARCHAR}, | ||
95 | + </if> | ||
96 | + <if test="piece != null" > | ||
97 | + #{piece,jdbcType=INTEGER}, | ||
98 | + </if> | ||
99 | + <if test="weight != null" > | ||
100 | + #{weight,jdbcType=DECIMAL}, | ||
101 | + </if> | ||
102 | + <if test="customcode != null" > | ||
103 | + #{customcode,jdbcType=VARCHAR}, | ||
104 | + </if> | ||
105 | + <if test="actime != null" > | ||
106 | + #{actime,jdbcType=TIMESTAMP}, | ||
107 | + </if> | ||
108 | + <if test="status != null" > | ||
109 | + #{status,jdbcType=VARCHAR}, | ||
110 | + </if> | ||
111 | + <if test="stype != null" > | ||
112 | + #{stype,jdbcType=VARCHAR}, | ||
113 | + </if> | ||
114 | + </trim> | ||
115 | + </insert> | ||
116 | + <select id="selectWaydeclaration" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_WAYDECLARATION" resultMap="BaseResultMap"> | ||
117 | + select | ||
118 | + <include refid="Base_Column_List" /> | ||
119 | + from NMMS_WAYDECLARATION | ||
120 | + where 1=1 | ||
121 | + <if test="awba !=null and awba != ''"> | ||
122 | + and awba=#{awba,jdbcType=VARCHAR} | ||
123 | + </if> | ||
124 | + <if test="carrier !=null and carrier !=''"> | ||
125 | + AND carrier = #{carrier,jdbcType=VARCHAR} | ||
126 | + </if> | ||
127 | + <if test="flightno !=null and flightno !=''"> | ||
128 | + AND flightNo = #{flightno,jdbcType=VARCHAR} | ||
129 | + </if> | ||
130 | + <if test="flightdate !=null"> | ||
131 | + AND flightDate = #{flightdate,jdbcType=DATE} | ||
132 | + </if> | ||
133 | + <if test="status !=null and status !=''"> | ||
134 | + AND status = #{status,jdbcType=VARCHAR} | ||
135 | + </if> | ||
136 | + <if test="stype !=null and stype !=''"> | ||
137 | + AND stype = #{stype,jdbcType=VARCHAR} | ||
138 | + </if> | ||
139 | + </select> | ||
140 | +</mapper> |
-
请 注册 或 登录 后发表评论