|
|
@@ -19,9 +19,13 @@
|
|
19
|
19
|
<result column="business_create_time" jdbcType="TIMESTAMP" property="businessCreateTime" />
|
|
20
|
20
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
21
|
21
|
<result column="create_person" jdbcType="VARCHAR" property="createPerson" />
|
|
|
22
|
+ <result column="ccshr" jdbcType="VARCHAR" property="ccshr" />
|
|
|
23
|
+ <result column="zjshr" jdbcType="VARCHAR" property="zjshr" />
|
|
|
24
|
+ <result column="tjshr" jdbcType="VARCHAR" property="tjshr" />
|
|
|
25
|
+ <result column="kjshr" jdbcType="VARCHAR" property="kjshr" />
|
|
|
26
|
+ <result column="ldshr" jdbcType="VARCHAR" property="ldshr" />
|
|
22
|
27
|
<result column="is_upload" jdbcType="INTEGER" property="isUpload" />
|
|
23
|
28
|
<result column="upload_time" jdbcType="TIMESTAMP" property="uploadTime" />
|
|
24
|
|
- <result column="updatetime" jdbcType="TIMESTAMP" property="updatetime" />
|
|
25
|
29
|
</resultMap>
|
|
26
|
30
|
<sql id="Example_Where_Clause">
|
|
27
|
31
|
<where>
|
|
|
@@ -82,8 +86,9 @@
|
|
82
|
86
|
</where>
|
|
83
|
87
|
</sql>
|
|
84
|
88
|
<sql id="Base_Column_List">
|
|
85
|
|
- id, ys_id, org_id, house_id, ware_id, lspz, y_lsxz, x_lsxz, lsdj, clsl, zjjg, ys_status,
|
|
86
|
|
- business_create_time, create_time, create_person, is_upload, upload_time, updatetime
|
|
|
89
|
+ id, ys_id, org_id, house_id, ware_id, lspz, y_lsxz, x_lsxz, lsdj, clsl, transfer_quantity,
|
|
|
90
|
+ approval_no, zjjg, ys_status, business_create_time, create_time, create_person, ccshr,
|
|
|
91
|
+ zjshr, tjshr, kjshr, ldshr, is_upload, upload_time
|
|
87
|
92
|
</sql>
|
|
88
|
93
|
<select id="selectByExample" parameterType="com.chinaitop.depot.storage.model.StorageDumpExample" resultMap="BaseResultMap">
|
|
89
|
94
|
select
|
|
|
@@ -119,17 +124,19 @@
|
|
119
|
124
|
insert into storage_dump (id, ys_id, org_id,
|
|
120
|
125
|
house_id, ware_id, lspz,
|
|
121
|
126
|
y_lsxz, x_lsxz, lsdj,
|
|
122
|
|
- clsl, zjjg, ys_status,
|
|
123
|
|
- business_create_time, create_time, create_person,
|
|
124
|
|
- is_upload, upload_time, updatetime
|
|
125
|
|
- )
|
|
|
127
|
+ clsl, transfer_quantity, approval_no,
|
|
|
128
|
+ zjjg, ys_status, business_create_time,
|
|
|
129
|
+ create_time, create_person, ccshr,
|
|
|
130
|
+ zjshr, tjshr, kjshr,
|
|
|
131
|
+ ldshr, is_upload, upload_time)
|
|
126
|
132
|
values (#{id,jdbcType=INTEGER}, #{ysId,jdbcType=INTEGER}, #{orgId,jdbcType=INTEGER},
|
|
127
|
133
|
#{houseId,jdbcType=VARCHAR}, #{wareId,jdbcType=VARCHAR}, #{lspz,jdbcType=INTEGER},
|
|
128
|
134
|
#{yLsxz,jdbcType=INTEGER}, #{xLsxz,jdbcType=INTEGER}, #{lsdj,jdbcType=INTEGER},
|
|
129
|
|
- #{clsl,jdbcType=DECIMAL}, #{zjjg,jdbcType=VARCHAR}, #{ysStatus,jdbcType=VARCHAR},
|
|
130
|
|
- #{businessCreateTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{createPerson,jdbcType=VARCHAR},
|
|
131
|
|
- #{isUpload,jdbcType=INTEGER}, #{uploadTime,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP}
|
|
132
|
|
- )
|
|
|
135
|
+ #{clsl,jdbcType=DECIMAL}, #{transferQuantity,jdbcType=DECIMAL}, #{approvalNo,jdbcType=VARCHAR},
|
|
|
136
|
+ #{zjjg,jdbcType=VARCHAR}, #{ysStatus,jdbcType=VARCHAR}, #{businessCreateTime,jdbcType=TIMESTAMP},
|
|
|
137
|
+ #{createTime,jdbcType=TIMESTAMP}, #{createPerson,jdbcType=VARCHAR}, #{ccshr,jdbcType=VARCHAR},
|
|
|
138
|
+ #{zjshr,jdbcType=VARCHAR}, #{tjshr,jdbcType=VARCHAR}, #{kjshr,jdbcType=VARCHAR},
|
|
|
139
|
+ #{ldshr,jdbcType=VARCHAR}, #{isUpload,jdbcType=INTEGER}, #{uploadTime,jdbcType=TIMESTAMP})
|
|
133
|
140
|
</insert>
|
|
134
|
141
|
<insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageDump">
|
|
135
|
142
|
insert into storage_dump
|
|
|
@@ -185,15 +192,27 @@
|
|
185
|
192
|
<if test="createPerson != null">
|
|
186
|
193
|
create_person,
|
|
187
|
194
|
</if>
|
|
|
195
|
+ <if test="ccshr != null">
|
|
|
196
|
+ ccshr,
|
|
|
197
|
+ </if>
|
|
|
198
|
+ <if test="zjshr != null">
|
|
|
199
|
+ zjshr,
|
|
|
200
|
+ </if>
|
|
|
201
|
+ <if test="tjshr != null">
|
|
|
202
|
+ tjshr,
|
|
|
203
|
+ </if>
|
|
|
204
|
+ <if test="kjshr != null">
|
|
|
205
|
+ kjshr,
|
|
|
206
|
+ </if>
|
|
|
207
|
+ <if test="ldshr != null">
|
|
|
208
|
+ ldshr,
|
|
|
209
|
+ </if>
|
|
188
|
210
|
<if test="isUpload != null">
|
|
189
|
211
|
is_upload,
|
|
190
|
212
|
</if>
|
|
191
|
213
|
<if test="uploadTime != null">
|
|
192
|
214
|
upload_time,
|
|
193
|
215
|
</if>
|
|
194
|
|
- <if test="updatetime != null">
|
|
195
|
|
- updatetime,
|
|
196
|
|
- </if>
|
|
197
|
216
|
</trim>
|
|
198
|
217
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
199
|
218
|
<if test="id != null">
|
|
|
@@ -247,15 +266,27 @@
|
|
247
|
266
|
<if test="createPerson != null">
|
|
248
|
267
|
#{createPerson,jdbcType=VARCHAR},
|
|
249
|
268
|
</if>
|
|
|
269
|
+ <if test="ccshr != null">
|
|
|
270
|
+ #{ccshr,jdbcType=VARCHAR},
|
|
|
271
|
+ </if>
|
|
|
272
|
+ <if test="zjshr != null">
|
|
|
273
|
+ #{zjshr,jdbcType=VARCHAR},
|
|
|
274
|
+ </if>
|
|
|
275
|
+ <if test="tjshr != null">
|
|
|
276
|
+ #{tjshr,jdbcType=VARCHAR},
|
|
|
277
|
+ </if>
|
|
|
278
|
+ <if test="kjshr != null">
|
|
|
279
|
+ #{kjshr,jdbcType=VARCHAR},
|
|
|
280
|
+ </if>
|
|
|
281
|
+ <if test="ldshr != null">
|
|
|
282
|
+ #{ldshr,jdbcType=VARCHAR},
|
|
|
283
|
+ </if>
|
|
250
|
284
|
<if test="isUpload != null">
|
|
251
|
285
|
#{isUpload,jdbcType=INTEGER},
|
|
252
|
286
|
</if>
|
|
253
|
287
|
<if test="uploadTime != null">
|
|
254
|
288
|
#{uploadTime,jdbcType=TIMESTAMP},
|
|
255
|
289
|
</if>
|
|
256
|
|
- <if test="updatetime != null">
|
|
257
|
|
- #{updatetime,jdbcType=TIMESTAMP},
|
|
258
|
|
- </if>
|
|
259
|
290
|
</trim>
|
|
260
|
291
|
</insert>
|
|
261
|
292
|
<select id="countByExample" parameterType="com.chinaitop.depot.storage.model.StorageDumpExample" resultType="java.lang.Integer">
|
|
|
@@ -297,6 +328,12 @@
|
|
297
|
328
|
<if test="record.clsl != null">
|
|
298
|
329
|
clsl = #{record.clsl,jdbcType=DECIMAL},
|
|
299
|
330
|
</if>
|
|
|
331
|
+ <if test="record.transferQuantity != null">
|
|
|
332
|
+ transfer_quantity = #{record.transferQuantity,jdbcType=DECIMAL},
|
|
|
333
|
+ </if>
|
|
|
334
|
+ <if test="record.approvalNo != null">
|
|
|
335
|
+ approval_no = #{record.approvalNo,jdbcType=VARCHAR},
|
|
|
336
|
+ </if>
|
|
300
|
337
|
<if test="record.zjjg != null">
|
|
301
|
338
|
zjjg = #{record.zjjg,jdbcType=VARCHAR},
|
|
302
|
339
|
</if>
|
|
|
@@ -312,15 +349,27 @@
|
|
312
|
349
|
<if test="record.createPerson != null">
|
|
313
|
350
|
create_person = #{record.createPerson,jdbcType=VARCHAR},
|
|
314
|
351
|
</if>
|
|
|
352
|
+ <if test="record.ccshr != null">
|
|
|
353
|
+ ccshr = #{record.ccshr,jdbcType=VARCHAR},
|
|
|
354
|
+ </if>
|
|
|
355
|
+ <if test="record.zjshr != null">
|
|
|
356
|
+ zjshr = #{record.zjshr,jdbcType=VARCHAR},
|
|
|
357
|
+ </if>
|
|
|
358
|
+ <if test="record.tjshr != null">
|
|
|
359
|
+ tjshr = #{record.tjshr,jdbcType=VARCHAR},
|
|
|
360
|
+ </if>
|
|
|
361
|
+ <if test="record.kjshr != null">
|
|
|
362
|
+ kjshr = #{record.kjshr,jdbcType=VARCHAR},
|
|
|
363
|
+ </if>
|
|
|
364
|
+ <if test="record.ldshr != null">
|
|
|
365
|
+ ldshr = #{record.ldshr,jdbcType=VARCHAR},
|
|
|
366
|
+ </if>
|
|
315
|
367
|
<if test="record.isUpload != null">
|
|
316
|
368
|
is_upload = #{record.isUpload,jdbcType=INTEGER},
|
|
317
|
369
|
</if>
|
|
318
|
370
|
<if test="record.uploadTime != null">
|
|
319
|
371
|
upload_time = #{record.uploadTime,jdbcType=TIMESTAMP},
|
|
320
|
372
|
</if>
|
|
321
|
|
- <if test="record.updatetime != null">
|
|
322
|
|
- updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
|
|
323
|
|
- </if>
|
|
324
|
373
|
</set>
|
|
325
|
374
|
<if test="_parameter != null">
|
|
326
|
375
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -338,14 +387,20 @@
|
|
338
|
387
|
x_lsxz = #{record.xLsxz,jdbcType=INTEGER},
|
|
339
|
388
|
lsdj = #{record.lsdj,jdbcType=INTEGER},
|
|
340
|
389
|
clsl = #{record.clsl,jdbcType=DECIMAL},
|
|
|
390
|
+ transfer_quantity = #{record.transferQuantity,jdbcType=DECIMAL},
|
|
|
391
|
+ approval_no = #{record.approvalNo,jdbcType=VARCHAR},
|
|
341
|
392
|
zjjg = #{record.zjjg,jdbcType=VARCHAR},
|
|
342
|
393
|
ys_status = #{record.ysStatus,jdbcType=VARCHAR},
|
|
343
|
394
|
business_create_time = #{record.businessCreateTime,jdbcType=TIMESTAMP},
|
|
344
|
395
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
345
|
396
|
create_person = #{record.createPerson,jdbcType=VARCHAR},
|
|
|
397
|
+ ccshr = #{record.ccshr,jdbcType=VARCHAR},
|
|
|
398
|
+ zjshr = #{record.zjshr,jdbcType=VARCHAR},
|
|
|
399
|
+ tjshr = #{record.tjshr,jdbcType=VARCHAR},
|
|
|
400
|
+ kjshr = #{record.kjshr,jdbcType=VARCHAR},
|
|
|
401
|
+ ldshr = #{record.ldshr,jdbcType=VARCHAR},
|
|
346
|
402
|
is_upload = #{record.isUpload,jdbcType=INTEGER},
|
|
347
|
403
|
upload_time = #{record.uploadTime,jdbcType=TIMESTAMP},
|
|
348
|
|
- updatetime = #{record.updatetime,jdbcType=TIMESTAMP}
|
|
349
|
404
|
<if test="_parameter != null">
|
|
350
|
405
|
<include refid="Update_By_Example_Where_Clause" />
|
|
351
|
406
|
</if>
|
|
|
@@ -380,6 +435,12 @@
|
|
380
|
435
|
<if test="clsl != null">
|
|
381
|
436
|
clsl = #{clsl,jdbcType=DECIMAL},
|
|
382
|
437
|
</if>
|
|
|
438
|
+ <if test="transferQuantity != null">
|
|
|
439
|
+ transfer_quantity = #{transferQuantity,jdbcType=DECIMAL},
|
|
|
440
|
+ </if>
|
|
|
441
|
+ <if test="approvalNo != null">
|
|
|
442
|
+ approval_no = #{approvalNo,jdbcType=VARCHAR},
|
|
|
443
|
+ </if>
|
|
383
|
444
|
<if test="zjjg != null">
|
|
384
|
445
|
zjjg = #{zjjg,jdbcType=VARCHAR},
|
|
385
|
446
|
</if>
|
|
|
@@ -395,15 +456,27 @@
|
|
395
|
456
|
<if test="createPerson != null">
|
|
396
|
457
|
create_person = #{createPerson,jdbcType=VARCHAR},
|
|
397
|
458
|
</if>
|
|
|
459
|
+ <if test="ccshr != null">
|
|
|
460
|
+ ccshr = #{ccshr,jdbcType=VARCHAR},
|
|
|
461
|
+ </if>
|
|
|
462
|
+ <if test="zjshr != null">
|
|
|
463
|
+ zjshr = #{zjshr,jdbcType=VARCHAR},
|
|
|
464
|
+ </if>
|
|
|
465
|
+ <if test="tjshr != null">
|
|
|
466
|
+ tjshr = #{tjshr,jdbcType=VARCHAR},
|
|
|
467
|
+ </if>
|
|
|
468
|
+ <if test="kjshr != null">
|
|
|
469
|
+ kjshr = #{kjshr,jdbcType=VARCHAR},
|
|
|
470
|
+ </if>
|
|
|
471
|
+ <if test="ldshr != null">
|
|
|
472
|
+ ldshr = #{ldshr,jdbcType=VARCHAR},
|
|
|
473
|
+ </if>
|
|
398
|
474
|
<if test="isUpload != null">
|
|
399
|
475
|
is_upload = #{isUpload,jdbcType=INTEGER},
|
|
400
|
476
|
</if>
|
|
401
|
477
|
<if test="uploadTime != null">
|
|
402
|
478
|
upload_time = #{uploadTime,jdbcType=TIMESTAMP},
|
|
403
|
479
|
</if>
|
|
404
|
|
- <if test="updatetime != null">
|
|
405
|
|
- updatetime = #{updatetime,jdbcType=TIMESTAMP},
|
|
406
|
|
- </if>
|
|
407
|
480
|
</set>
|
|
408
|
481
|
where id = #{id,jdbcType=INTEGER}
|
|
409
|
482
|
</update>
|
|
|
@@ -418,16 +491,23 @@
|
|
418
|
491
|
x_lsxz = #{xLsxz,jdbcType=INTEGER},
|
|
419
|
492
|
lsdj = #{lsdj,jdbcType=INTEGER},
|
|
420
|
493
|
clsl = #{clsl,jdbcType=DECIMAL},
|
|
|
494
|
+ transfer_quantity = #{transferQuantity,jdbcType=DECIMAL},
|
|
|
495
|
+ approval_no = #{approvalNo,jdbcType=VARCHAR},
|
|
421
|
496
|
zjjg = #{zjjg,jdbcType=VARCHAR},
|
|
422
|
497
|
ys_status = #{ysStatus,jdbcType=VARCHAR},
|
|
423
|
498
|
business_create_time = #{businessCreateTime,jdbcType=TIMESTAMP},
|
|
424
|
499
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
425
|
500
|
create_person = #{createPerson,jdbcType=VARCHAR},
|
|
|
501
|
+ ccshr = #{ccshr,jdbcType=VARCHAR},
|
|
|
502
|
+ zjshr = #{zjshr,jdbcType=VARCHAR},
|
|
|
503
|
+ tjshr = #{tjshr,jdbcType=VARCHAR},
|
|
|
504
|
+ kjshr = #{kjshr,jdbcType=VARCHAR},
|
|
|
505
|
+ ldshr = #{ldshr,jdbcType=VARCHAR},
|
|
426
|
506
|
is_upload = #{isUpload,jdbcType=INTEGER},
|
|
427
|
|
- upload_time = #{uploadTime,jdbcType=TIMESTAMP},
|
|
428
|
|
- updatetime = #{updatetime,jdbcType=TIMESTAMP}
|
|
|
507
|
+ upload_time = #{uploadTime,jdbcType=TIMESTAMP}
|
|
429
|
508
|
where id = #{id,jdbcType=INTEGER}
|
|
430
|
509
|
</update>
|
|
|
510
|
+
|
|
431
|
511
|
<!-- 查询验收过通过的数据 -->
|
|
432
|
512
|
<select id="selectYswData" parameterType="java.util.Map" resultType="java.util.Map">
|
|
433
|
513
|
SELECT datas.* FROM
|