PortManifestHeadDao.xml
6.7 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
<?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.bw.dao.dct.PortManifestHeadDao">
<sql id="portManifestHeadColumns">
a.baseid AS "baseid",
a.tradecode AS "tradecode",
a.tradename AS "tradename",
a.iccode AS "iccode",
a.carno AS "carno",
a.biztype AS "biztype",
a.bizmode AS "bizmode",
a.fromport AS "fromport",
a.toport AS "toport",
a.iemark AS "iemark",
a.ieflag AS "ieflag",
a.totalweight AS "totalweight",
a.totalamount AS "totalamount",
a.status AS "status",
a.bstatus AS "bstatus",
a.mstatus AS "mstatus",
a.fitmark AS "fitmark",
a.portstatus AS "portstatus",
a.billno AS "billno",
a.goodsmark AS "goodsmark",
a.factweight AS "factweight",
a.goodswt AS "goodswt",
a.carwt AS "carwt",
a.gateid AS "gateid",
a.dettype AS "dettype",
a.fcontatype AS "fcontatype",
a.fcontano AS "fcontano",
a.fcontawt AS "fcontawt",
a.fsealno AS "fsealno",
a.acontatype AS "acontatype",
a.acontano AS "acontano",
a.acontawt AS "acontawt",
a.asealno AS "asealno",
a.cartype AS "cartype",
a.carjno AS "carjno",
a.carjwt AS "carjwt",
a.portman AS "portman",
a.portdate AS "portdate",
a.customcode AS "customcode",
a.fromdate AS "fromdate",
a.end_date AS "endDate",
a.fromwt AS "fromwt",
a.towt AS "towt",
a.checkresult AS "checkresult",
a.checktime AS "checktime",
a.checkwt AS "checkwt",
a.ifldflag AS "ifldflag",
a.timeoutflag AS "timeoutflag",
a.timeoutmsg AS "timeoutmsg",
a.timeoutperson AS "timeoutperson",
a.linktype AS "linktype",
a.linkbaseid AS "linkbaseid",
a.contype AS "contype",
a.lclconta AS "lclconta",
a.memo AS "memo",
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"
</sql>
<sql id="portManifestHeadJoins">
</sql>
<select id="get" resultType="PortManifestHead">
SELECT
<include refid="portManifestHeadColumns"/>
FROM port_manifest_head a
<include refid="portManifestHeadJoins"/>
WHERE a.id = #{id}
</select>
<select id="findList" resultType="PortManifestHead">
SELECT
<include refid="portManifestHeadColumns"/>
FROM port_manifest_head a
<include refid="portManifestHeadJoins"/>
<where>
</where>
<choose>
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
ORDER BY ${page.orderBy}
</when>
<otherwise>
</otherwise>
</choose>
</select>
<select id="findAllList" resultType="PortManifestHead">
SELECT
<include refid="portManifestHeadColumns"/>
FROM port_manifest_head a
<include refid="portManifestHeadJoins"/>
<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 port_manifest_head(
baseid,
tradecode,
tradename,
iccode,
carno,
biztype,
bizmode,
fromport,
toport,
iemark,
ieflag,
totalweight,
totalamount,
status,
bstatus,
mstatus,
fitmark,
portstatus,
billno,
goodsmark,
factweight,
goodswt,
carwt,
gateid,
dettype,
fcontatype,
fcontano,
fcontawt,
fsealno,
acontatype,
acontano,
acontawt,
asealno,
cartype,
carjno,
carjwt,
portman,
portdate,
customcode,
fromdate,
end_date,
fromwt,
towt,
checkresult,
checktime,
checkwt,
ifldflag,
timeoutflag,
timeoutmsg,
timeoutperson,
linktype,
linkbaseid,
contype,
lclconta,
memo,
flag1,
flag2,
flag3,
flag4,
flag5,
remark1,
remark2,
remark3,
remark4,
remark5
) VALUES (
#{baseid},
#{tradecode},
#{tradename},
#{iccode},
#{carno},
#{biztype},
#{bizmode},
#{fromport},
#{toport},
#{iemark},
#{ieflag},
#{totalweight},
#{totalamount},
#{status},
#{bstatus},
#{mstatus},
#{fitmark},
#{portstatus},
#{billno},
#{goodsmark},
#{factweight},
#{goodswt},
#{carwt},
#{gateid},
#{dettype},
#{fcontatype},
#{fcontano},
#{fcontawt},
#{fsealno},
#{acontatype},
#{acontano},
#{acontawt},
#{asealno},
#{cartype},
#{carjno},
#{carjwt},
#{portman},
#{portdate},
#{customcode},
#{fromdate},
#{endDate},
#{fromwt},
#{towt},
#{checkresult},
#{checktime},
#{checkwt},
#{ifldflag},
#{timeoutflag},
#{timeoutmsg},
#{timeoutperson},
#{linktype},
#{linkbaseid},
#{contype},
#{lclconta},
#{memo},
#{flag1},
#{flag2},
#{flag3},
#{flag4},
#{flag5},
#{remark1},
#{remark2},
#{remark3},
#{remark4},
#{remark5}
)
</insert>
<update id="update">
UPDATE port_manifest_head SET
baseid = #{baseid},
tradecode = #{tradecode},
tradename = #{tradename},
iccode = #{iccode},
carno = #{carno},
biztype = #{biztype},
bizmode = #{bizmode},
fromport = #{fromport},
toport = #{toport},
iemark = #{iemark},
ieflag = #{ieflag},
totalweight = #{totalweight},
totalamount = #{totalamount},
status = #{status},
bstatus = #{bstatus},
mstatus = #{mstatus},
fitmark = #{fitmark},
portstatus = #{portstatus},
billno = #{billno},
goodsmark = #{goodsmark},
factweight = #{factweight},
goodswt = #{goodswt},
carwt = #{carwt},
gateid = #{gateid},
dettype = #{dettype},
fcontatype = #{fcontatype},
fcontano = #{fcontano},
fcontawt = #{fcontawt},
fsealno = #{fsealno},
acontatype = #{acontatype},
acontano = #{acontano},
acontawt = #{acontawt},
asealno = #{asealno},
cartype = #{cartype},
carjno = #{carjno},
carjwt = #{carjwt},
portman = #{portman},
portdate = #{portdate},
customcode = #{customcode},
fromdate = #{fromdate},
end_date = #{endDate},
fromwt = #{fromwt},
towt = #{towt},
checkresult = #{checkresult},
checktime = #{checktime},
checkwt = #{checkwt},
ifldflag = #{ifldflag},
timeoutflag = #{timeoutflag},
timeoutmsg = #{timeoutmsg},
timeoutperson = #{timeoutperson},
linktype = #{linktype},
linkbaseid = #{linkbaseid},
contype = #{contype},
lclconta = #{lclconta},
memo = #{memo},
flag1 = #{flag1},
flag2 = #{flag2},
flag3 = #{flag3},
flag4 = #{flag4},
flag5 = #{flag5},
remark1 = #{remark1},
remark2 = #{remark2},
remark3 = #{remark3},
remark4 = #{remark4},
remark5 = #{remark5}
WHERE id = #{id}
</update>
<update id="delete">
DELETE FROM port_manifest_head
WHERE id = #{id}
</update>
</mapper>