|
|
@@ -21,6 +21,10 @@
|
|
21
|
21
|
<result column="hckyxfx" property="hckyxfx" jdbcType="VARCHAR" />
|
|
22
|
22
|
<result column="fsbw" property="fsbw" jdbcType="VARCHAR" />
|
|
23
|
23
|
<result column="hcjcdh" property="hcjcdh" jdbcType="VARCHAR" />
|
|
|
24
|
+ <result column="lypz" property="lypz" jdbcType="INTEGER" />
|
|
|
25
|
+ <result column="kcsl" property="kcsl" jdbcType="VARCHAR" />
|
|
|
26
|
+ <result column="commit_people" property="commitPeople" jdbcType="VARCHAR" />
|
|
|
27
|
+ <result column="commit_time" property="commitTime" jdbcType="TIMESTAMP" />
|
|
24
|
28
|
</resultMap>
|
|
25
|
29
|
<resultMap id="ResultMapWithBLOBs" type="com.chinaitop.depot.storage.model.TCcdata" extends="BaseResultMap" >
|
|
26
|
30
|
<result column="c_image" property="cImage" jdbcType="LONGVARBINARY" />
|
|
|
@@ -86,7 +90,8 @@
|
|
86
|
90
|
</sql>
|
|
87
|
91
|
<sql id="Base_Column_List" >
|
|
88
|
92
|
id, org_id, v_cc_code, v_hw_code, stand_or, stand_time, i_tdh, i_value, v_update_time,
|
|
89
|
|
- v_update_people, data_source, v_remark, updatetime, jchcff, hczl, cldjpd, hckyxfx, fsbw, hcjcdh
|
|
|
93
|
+ v_update_people, data_source, v_remark, updatetime, jchcff, hczl, cldjpd, hckyxfx, fsbw, hcjcdh,
|
|
|
94
|
+ lypz, kcsl, commit_people, commit_time
|
|
90
|
95
|
</sql>
|
|
91
|
96
|
<sql id="Blob_Column_List" >
|
|
92
|
97
|
c_image, ckmdzjh
|
|
|
@@ -135,7 +140,7 @@
|
|
135
|
140
|
i_tdh, i_value, v_update_time,
|
|
136
|
141
|
v_update_people, data_source, v_remark,
|
|
137
|
142
|
updatetime, jchcff, hczl,
|
|
138
|
|
- cldjpd, hckyxfx, c_image, ckmdzjh,fsbw, hcjcdh
|
|
|
143
|
+ cldjpd, hckyxfx, c_image, ckmdzjh,fsbw, hcjcdh, lypz, kcsl, commit_people, commit_time
|
|
139
|
144
|
)
|
|
140
|
145
|
values (#{id,jdbcType=VARCHAR}, #{orgId,jdbcType=VARCHAR}, #{vCcCode,jdbcType=VARCHAR},
|
|
141
|
146
|
#{vHwCode,jdbcType=VARCHAR}, #{standOr,jdbcType=VARCHAR}, #{standTime,jdbcType=TIMESTAMP},
|
|
|
@@ -143,7 +148,8 @@
|
|
143
|
148
|
#{vUpdatePeople,jdbcType=VARCHAR}, #{dataSource,jdbcType=VARCHAR}, #{vRemark,jdbcType=VARCHAR},
|
|
144
|
149
|
#{updatetime,jdbcType=TIMESTAMP}, #{jchcff,jdbcType=VARCHAR}, #{hczl,jdbcType=VARCHAR},
|
|
145
|
150
|
#{cldjpd,jdbcType=VARCHAR}, #{hckyxfx,jdbcType=VARCHAR}, #{cImage,jdbcType=LONGVARBINARY},
|
|
146
|
|
- #{ckmdzjh,jdbcType=LONGVARBINARY},#{fsbw,jdbcType=VARCHAR},#{hcjcdh,jdbcType=VARCHAR}
|
|
|
151
|
+ #{ckmdzjh,jdbcType=LONGVARBINARY},#{fsbw,jdbcType=VARCHAR},#{hcjcdh,jdbcType=VARCHAR},
|
|
|
152
|
+ #{lypz,jdbcType=INTEGER},#{kcsl,jdbcType=VARCHAR},#{commitPeople,jdbcType=VARCHAR},#{commitTime,jdbcType=TIMESTAMP}
|
|
147
|
153
|
)
|
|
148
|
154
|
</insert>
|
|
149
|
155
|
<insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.TCcdata" >
|
|
|
@@ -212,6 +218,18 @@
|
|
212
|
218
|
<if test="hcjcdh != null">
|
|
213
|
219
|
hcjcdh,
|
|
214
|
220
|
</if>
|
|
|
221
|
+ <if test="lypz != null">
|
|
|
222
|
+ lypz,
|
|
|
223
|
+ </if>
|
|
|
224
|
+ <if test="kcsl != null">
|
|
|
225
|
+ kcsl,
|
|
|
226
|
+ </if>
|
|
|
227
|
+ <if test="commitPeople != null">
|
|
|
228
|
+ commit_people,
|
|
|
229
|
+ </if>
|
|
|
230
|
+ <if test="commitTime != null">
|
|
|
231
|
+ commit_time,
|
|
|
232
|
+ </if>
|
|
215
|
233
|
</trim>
|
|
216
|
234
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
217
|
235
|
<if test="id != null" >
|
|
|
@@ -277,6 +295,18 @@
|
|
277
|
295
|
<if test="hcjcdh != null">
|
|
278
|
296
|
#{hcjcdh,jdbcType=VARCHAR},
|
|
279
|
297
|
</if>
|
|
|
298
|
+ <if test="lypz != null">
|
|
|
299
|
+ #{lypz,jdbcType=VARCHAR},
|
|
|
300
|
+ </if>
|
|
|
301
|
+ <if test="kcsl != null">
|
|
|
302
|
+ #{kcsl,jdbcType=VARCHAR},
|
|
|
303
|
+ </if>
|
|
|
304
|
+ <if test="commitPeople != null">
|
|
|
305
|
+ #{commitPeople,jdbcType=INTEGER},
|
|
|
306
|
+ </if>
|
|
|
307
|
+ <if test="commitTime != null">
|
|
|
308
|
+ #{commitTime,jdbcType=TIMESTAMP},
|
|
|
309
|
+ </if>
|
|
280
|
310
|
</trim>
|
|
281
|
311
|
</insert>
|
|
282
|
312
|
<select id="countByExample" parameterType="com.chinaitop.depot.storage.model.TCcdataExample" resultType="java.lang.Integer" >
|
|
|
@@ -351,6 +381,18 @@
|
|
351
|
381
|
<if test="record.hcjcdh != null">
|
|
352
|
382
|
hcjcdh = #{record.hcjcdh,jdbcType=VARCHAR},
|
|
353
|
383
|
</if>
|
|
|
384
|
+ <if test="record.lypz != null">
|
|
|
385
|
+ lypz = #{record.lypz,jdbcType=INTEGER},
|
|
|
386
|
+ </if>
|
|
|
387
|
+ <if test="record.kcsl != null">
|
|
|
388
|
+ kcsl = #{record.kcsl,jdbcType=VARCHAR},
|
|
|
389
|
+ </if>
|
|
|
390
|
+ <if test="record.commitPeople != null">
|
|
|
391
|
+ commit_people = #{record.commitPeople,jdbcType=VARCHAR},
|
|
|
392
|
+ </if>
|
|
|
393
|
+ <if test="record.commitTime != null">
|
|
|
394
|
+ commit_time = #{record.commitTime,jdbcType=TIMESTAMP},
|
|
|
395
|
+ </if>
|
|
354
|
396
|
</set>
|
|
355
|
397
|
<if test="_parameter != null" >
|
|
356
|
398
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -377,7 +419,11 @@
|
|
377
|
419
|
c_image = #{record.cImage,jdbcType=LONGVARBINARY},
|
|
378
|
420
|
ckmdzjh = #{record.ckmdzjh,jdbcType=LONGVARBINARY},
|
|
379
|
421
|
fsbw = #{record.fsbw,jdbcType=VARCHAR},
|
|
380
|
|
- hcjcdh = #{record.hcjcdh,jdbcType=VARCHAR}
|
|
|
422
|
+ hcjcdh = #{record.hcjcdh,jdbcType=VARCHAR},
|
|
|
423
|
+ lypz = #{record.lypz,jdbcType=INTEGER},
|
|
|
424
|
+ kcsl = #{record.kcsl,jdbcType=VARCHAR},
|
|
|
425
|
+ commit_people = #{record.commitPeople,jdbcType=VARCHAR},
|
|
|
426
|
+ commit_time = #{record.commitTime,jdbcType=TIMESTAMP}
|
|
381
|
427
|
<if test="_parameter != null" >
|
|
382
|
428
|
<include refid="Update_By_Example_Where_Clause" />
|
|
383
|
429
|
</if>
|
|
|
@@ -403,7 +449,11 @@
|
|
403
|
449
|
c_image = #{cImage,jdbcType=LONGVARBINARY},
|
|
404
|
450
|
ckmdzjh = #{ckmdzjh,jdbcType=LONGVARBINARY},
|
|
405
|
451
|
fsbw = #{fsbw,jdbcType=VARCHAR},
|
|
406
|
|
- hcjcdh = #{hcjcdh,jdbcType=VARCHAR}
|
|
|
452
|
+ hcjcdh = #{hcjcdh,jdbcType=VARCHAR},
|
|
|
453
|
+ lypz = #{record.lypz,jdbcType=INTEGER},
|
|
|
454
|
+ kcsl = #{record.kcsl,jdbcType=VARCHAR},
|
|
|
455
|
+ commit_people = #{record.commitPeople,jdbcType=VARCHAR},
|
|
|
456
|
+ commit_time = #{record.commitTime,jdbcType=TIMESTAMP}
|
|
407
|
457
|
where id = #{id,jdbcType=VARCHAR}
|
|
408
|
458
|
</update>
|
|
409
|
459
|
<update id="updateByExample" parameterType="map" >
|
|
|
@@ -426,7 +476,11 @@
|
|
426
|
476
|
cldjpd = #{record.cldjpd,jdbcType=VARCHAR},
|
|
427
|
477
|
hckyxfx = #{record.hckyxfx,jdbcType=VARCHAR},
|
|
428
|
478
|
fsbw = #{record.fsbw,jdbcType=VARCHAR},
|
|
429
|
|
- hcjcdh = #{record.hcjcdh,jdbcType=VARCHAR}
|
|
|
479
|
+ hcjcdh = #{record.hcjcdh,jdbcType=VARCHAR},
|
|
|
480
|
+ lypz = #{record.lypz,jdbcType=INTEGER},
|
|
|
481
|
+ kcsl = #{record.kcsl,jdbcType=VARCHAR},
|
|
|
482
|
+ commit_people = #{record.commitPeople,jdbcType=VARCHAR},
|
|
|
483
|
+ commit_time = #{record.commitTime,jdbcType=TIMESTAMP}
|
|
430
|
484
|
<if test="_parameter != null" >
|
|
431
|
485
|
<include refid="Update_By_Example_Where_Clause" />
|
|
432
|
486
|
</if>
|
|
|
@@ -435,14 +489,15 @@
|
|
435
|
489
|
<insert id="insertBatch" parameterType="java.util.List">
|
|
436
|
490
|
insert into t_ccdata (id, org_id, v_cc_code,
|
|
437
|
491
|
i_tdh, i_value, v_update_time,
|
|
438
|
|
- data_source, v_remark, c_image,hcjcdh
|
|
|
492
|
+ data_source, v_remark, c_image,hcjcdh,
|
|
|
493
|
+ lypz, kcsl, commit_people, commit_time
|
|
439
|
494
|
)
|
|
440
|
495
|
values
|
|
441
|
496
|
<foreach collection="list" item="cc" index="index" separator=",">
|
|
442
|
497
|
(#{cc.id,jdbcType=VARCHAR}, #{cc.orgId,jdbcType=VARCHAR}, #{cc.vCcCode,jdbcType=VARCHAR},
|
|
443
|
498
|
#{cc.iTdh,jdbcType=INTEGER}, #{cc.iValue,jdbcType=INTEGER}, #{cc.vUpdateTime,jdbcType=TIMESTAMP},
|
|
444
|
499
|
#{cc.dataSource,jdbcType=VARCHAR}, #{cc.vRemark,jdbcType=VARCHAR}, #{cc.cImage,jdbcType=LONGVARBINARY},
|
|
445
|
|
- #{cc.hcjcdh,jdbcType=VARCHAR},
|
|
|
500
|
+ #{cc.hcjcdh,jdbcType=VARCHAR},#{lypz,jdbcType=INTEGER},#{kcsl,jdbcType=VARCHAR},#{commitPeople,jdbcType=VARCHAR},#{commitTime,jdbcType=TIMESTAMP}
|
|
446
|
501
|
)
|
|
447
|
502
|
</foreach>
|
|
448
|
503
|
</insert>
|
|
|
@@ -484,4 +539,21 @@
|
|
484
|
539
|
</if>
|
|
485
|
540
|
</where>
|
|
486
|
541
|
</select>
|
|
|
542
|
+ <select id="getLastJCDH" resultType="string">
|
|
|
543
|
+ select hcjcdh from t_ccdata where commit_time is not null order by commit_time desc
|
|
|
544
|
+ </select>
|
|
|
545
|
+ <select id="getAJBM" parameterType="string" resultType="string">
|
|
|
546
|
+ select ajdm from ods_up_hwxxjk_final where id = #{hwCode}
|
|
|
547
|
+ </select>
|
|
|
548
|
+ <select id="getCheckGrainAttribute" parameterType="integer" resultType="com.chinaitop.depot.storage.model.TCcdata">
|
|
|
549
|
+ select
|
|
|
550
|
+ sub_type lypz,
|
|
|
551
|
+ number_update/1000 kcsl
|
|
|
552
|
+ from
|
|
|
553
|
+ storage_qualitycheck
|
|
|
554
|
+ where
|
|
|
555
|
+ org_id = #{orgId}
|
|
|
556
|
+ and house_id = #{houseId}
|
|
|
557
|
+ and warehouse_id = #{warehouseId}
|
|
|
558
|
+ </select>
|
|
487
|
559
|
</mapper>
|