|
|
|
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> |