AironeImStockDao.xml
6.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
<?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.thinkgem.jeesite.modules.imextock.dao.AironeImStockDao">
<sql id="aironeImStockColumns">
a.work_no AS "workNo",
a.in_stock_no AS "inStockNo",
a.voyage_no AS "voyageNo",
a.voyage_name AS "voyageName",
a.ie_date AS "ieDate",
a.traf_mode AS "trafMode",
a.ie_flag AS "ieFlag",
a.is_transfer AS "isTransfer",
a.im_type AS "imType",
a.hawb_no AS "hawbNo",
a.mawb_no AS "mawbNo",
a.owner_name AS "ownerName",
a.owner_code AS "ownerCode",
a.seal_no AS "sealNo",
a.arr_date AS "arrDate",
a.g_name AS "gName",
a.cnt AS "cnt",
a.wt AS "wt",
a.vol AS "vol",
a.consignor AS "consignor",
a.loading_port AS "loadingPort",
a.destination_port AS "destinationPort",
a.discharge_place AS "dischargePlace",
a.mark_contr AS "markContr",
a.curr_code AS "currCode",
a.curr_value AS "currValue",
a.app_man AS "appMan",
a.in_man AS "inMan",
a.status AS "status",
a.remark AS "remark",
a.cop_code AS "copCode",
a.cop_name AS "copName",
a.customs_code AS "customsCode",
a.op_id AS "opId",
a.op_man AS "opMan",
a.op_time AS "opTime",
a.trade_code AS "tradeCode",
a.comp_result AS "compResult",
a.last_num AS "lastNum",
a.last_wt AS "lastWt",
a.goods_type AS "goodsType",
a.pkg_info AS "pkgInfo",
a.damage_info AS "damageInfo",
a.flag1 AS "flag1",
a.flag2 AS "flag2",
a.flag3 AS "flag3",
a.flag4 AS "flag4",
a.flag5 AS "flag5",
a.remark1 AS "remark1",
a.remark2 AS "remark2",
a.remark3 AS "remark3",
a.remark4 AS "remark4",
a.remark5 AS "remark5",
a.area_code AS "areaCode",
a.sup_name AS "supName",
a.sup_code AS "supCode",
a.input_code AS "inputCode",
a.declare_code AS "declareCode",
a.op_flag AS "opFlag",
a.im_reason AS "imReason",
a.transfer_cop AS "transferCop",
a.isgeneral AS "isgeneral",
a.issample AS "issample",
a.isippc AS "isippc",
a.isdangerous AS "isdangerous",
a.grossunit AS "grossunit"
</sql>
<sql id="aironeImStockJoins">
</sql>
<select id="get" resultType="AironeImStock">
SELECT
<include refid="aironeImStockColumns"/>
FROM airone_im_stock a
<include refid="aironeImStockJoins"/>
WHERE a.id = #{id}
</select>
<select id="findList" resultType="AironeImStock">
SELECT
<include refid="aironeImStockColumns"/>
FROM airone_im_stock a
<include refid="aironeImStockJoins"/>
<where>
<if test ="mawbNo !=null and mawbNo !=''">
mawb_no=#{mawbNo}
</if>
</where>
<!-- <choose>
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
ORDER BY ${page.orderBy}
</when>
<otherwise>
</otherwise>
</choose> -->
ORDER BY OP_TIME DESC
</select>
<select id="findAllList" resultType="AironeImStock">
SELECT
<include refid="aironeImStockColumns"/>
FROM airone_im_stock a
<include refid="aironeImStockJoins"/>
<where>
</where>
<choose>
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
ORDER BY ${page.orderBy}
</when>
<otherwise>
</otherwise>
</choose>
</select>
<insert id="insert">
INSERT INTO airone_im_stock(
work_no,
in_stock_no,
voyage_no,
voyage_name,
ie_date,
traf_mode,
ie_flag,
is_transfer,
im_type,
hawb_no,
mawb_no,
owner_name,
owner_code,
seal_no,
arr_date,
g_name,
cnt,
wt,
vol,
consignor,
loading_port,
destination_port,
discharge_place,
mark_contr,
curr_code,
curr_value,
app_man,
in_man,
status,
remark,
cop_code,
cop_name,
customs_code,
op_id,
op_man,
op_time,
trade_code,
comp_result,
last_num,
last_wt,
goods_type,
pkg_info,
damage_info,
flag1,
flag2,
flag3,
flag4,
flag5,
remark1,
remark2,
remark3,
remark4,
remark5,
area_code,
sup_name,
sup_code,
input_code,
declare_code,
op_flag,
im_reason,
transfer_cop,
isgeneral,
issample,
isippc,
isdangerous,
grossunit
) VALUES (
#{workNo},
#{inStockNo},
#{voyageNo},
#{voyageName},
#{ieDate},
#{trafMode},
#{ieFlag},
#{isTransfer},
#{imType},
#{hawbNo},
#{mawbNo},
#{ownerName},
#{ownerCode},
#{sealNo},
#{arrDate},
#{gName},
#{cnt},
#{wt},
#{vol},
#{consignor},
#{loadingPort},
#{destinationPort},
#{dischargePlace},
#{markContr},
#{currCode},
#{currValue},
#{appMan},
#{inMan},
#{status},
#{remark},
#{copCode},
#{copName},
#{customsCode},
#{opId},
#{opMan},
#{opTime},
#{tradeCode},
#{compResult},
#{lastNum},
#{lastWt},
#{goodsType},
#{pkgInfo},
#{damageInfo},
#{flag1},
#{flag2},
#{flag3},
#{flag4},
#{flag5},
#{remark1},
#{remark2},
#{remark3},
#{remark4},
#{remark5},
#{areaCode},
#{supName},
#{supCode},
#{inputCode},
#{declareCode},
#{opFlag},
#{imReason},
#{transferCop},
#{isgeneral},
#{issample},
#{isippc},
#{isdangerous},
#{grossunit}
)
</insert>
<update id="update">
UPDATE airone_im_stock SET
work_no = #{workNo},
in_stock_no = #{inStockNo},
voyage_no = #{voyageNo},
voyage_name = #{voyageName},
ie_date = #{ieDate},
traf_mode = #{trafMode},
ie_flag = #{ieFlag},
is_transfer = #{isTransfer},
im_type = #{imType},
hawb_no = #{hawbNo},
mawb_no = #{mawbNo},
owner_name = #{ownerName},
owner_code = #{ownerCode},
seal_no = #{sealNo},
arr_date = #{arrDate},
g_name = #{gName},
cnt = #{cnt},
wt = #{wt},
vol = #{vol},
consignor = #{consignor},
loading_port = #{loadingPort},
destination_port = #{destinationPort},
discharge_place = #{dischargePlace},
mark_contr = #{markContr},
curr_code = #{currCode},
curr_value = #{currValue},
app_man = #{appMan},
in_man = #{inMan},
status = #{status},
remark = #{remark},
cop_code = #{copCode},
cop_name = #{copName},
customs_code = #{customsCode},
op_id = #{opId},
op_man = #{opMan},
op_time = #{opTime},
trade_code = #{tradeCode},
comp_result = #{compResult},
last_num = #{lastNum},
last_wt = #{lastWt},
goods_type = #{goodsType},
pkg_info = #{pkgInfo},
damage_info = #{damageInfo},
flag1 = #{flag1},
flag2 = #{flag2},
flag3 = #{flag3},
flag4 = #{flag4},
flag5 = #{flag5},
remark1 = #{remark1},
remark2 = #{remark2},
remark3 = #{remark3},
remark4 = #{remark4},
remark5 = #{remark5},
area_code = #{areaCode},
sup_name = #{supName},
sup_code = #{supCode},
input_code = #{inputCode},
declare_code = #{declareCode},
op_flag = #{opFlag},
im_reason = #{imReason},
transfer_cop = #{transferCop},
isgeneral = #{isgeneral},
issample = #{issample},
isippc = #{isippc},
isdangerous = #{isdangerous},
grossunit = #{grossunit}
WHERE id = #{id}
</update>
<update id="delete">
DELETE FROM airone_im_stock
WHERE id = #{id}
</update>
</mapper>