|
|
@@ -44,6 +44,13 @@
|
|
44
|
44
|
<result column="sfgd" property="sfgd" jdbcType="VARCHAR" />
|
|
45
|
45
|
<result column="gdsj" property="gdsj" jdbcType="TIMESTAMP" />
|
|
46
|
46
|
<result column="zhycsj" property="zhycsj" jdbcType="TIMESTAMP" />
|
|
|
47
|
+ <result column="jkr" property="jkr" jdbcType="VARCHAR" />
|
|
|
48
|
+ <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" />
|
|
|
49
|
+ <result column="lqss" property="lqss" jdbcType="VARCHAR" />
|
|
|
50
|
+ <result column="ywlx" property="ywlx" jdbcType="VARCHAR" />
|
|
|
51
|
+ <result column="cj" property="cj" jdbcType="VARCHAR" />
|
|
|
52
|
+ <result column="remark" property="remark" jdbcType="VARCHAR" />
|
|
|
53
|
+ <result column="data_status" property="dataStatus" jdbcType="VARCHAR" />
|
|
47
|
54
|
</resultMap>
|
|
48
|
55
|
<sql id="Example_Where_Clause" >
|
|
49
|
56
|
<where >
|
|
|
@@ -109,7 +116,7 @@
|
|
109
|
116
|
in_width, grain_line_heigth, bin_volume, storeman_code, storeman_name, lypz_code,
|
|
110
|
117
|
lypz_name, lydj_code, lydj_name, rksj, scrq, lycd_code, lycd_name, lysl, js, bzgg,
|
|
111
|
118
|
pinp, ccfs_code, ccfs_name, jkrq, org_id, image_url, spare_one, spare_two, spare_three,
|
|
112
|
|
- spare_four, spare_five, sfgd, gdsj, zhycsj
|
|
|
119
|
+ spare_four, spare_five, sfgd, gdsj, zhycsj, jkr, updatetime, lqss, ywlx, cj, remark, data_status
|
|
113
|
120
|
</sql>
|
|
114
|
121
|
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.grainSituationCard.model.StorageCerealsCardExample" >
|
|
115
|
122
|
select
|
|
|
@@ -154,8 +161,8 @@
|
|
154
|
161
|
bzgg, pinp, ccfs_code,
|
|
155
|
162
|
ccfs_name, jkrq, org_id,
|
|
156
|
163
|
image_url, spare_one, spare_two,
|
|
157
|
|
- spare_three, spare_four, spare_five, sfgd, gdsj, zhycsj
|
|
158
|
|
- )
|
|
|
164
|
+ spare_three, spare_four, spare_five, sfgd, gdsj, zhycsj, jkr, updatetime, lqss, ywlx, cj, remark,
|
|
|
165
|
+ data_status)
|
|
159
|
166
|
values (#{id,jdbcType=VARCHAR}, #{storehouseCode,jdbcType=VARCHAR}, #{storehouseName,jdbcType=VARCHAR},
|
|
160
|
167
|
#{warehouseCode,jdbcType=VARCHAR}, #{warehouseName,jdbcType=VARCHAR}, #{storehouseType,jdbcType=VARCHAR},
|
|
161
|
168
|
#{storehouseTypeName,jdbcType=VARCHAR}, #{buildDate,jdbcType=TIMESTAMP}, #{wallCode,jdbcType=VARCHAR},
|
|
|
@@ -169,7 +176,9 @@
|
|
169
|
176
|
#{ccfsName,jdbcType=VARCHAR}, #{jkrq,jdbcType=TIMESTAMP}, #{orgId,jdbcType=VARCHAR},
|
|
170
|
177
|
#{imageUrl,jdbcType=VARCHAR}, #{spareOne,jdbcType=VARCHAR}, #{spareTwo,jdbcType=VARCHAR},
|
|
171
|
178
|
#{spareThree,jdbcType=VARCHAR}, #{spareFour,jdbcType=VARCHAR}, #{spareFive,jdbcType=VARCHAR},
|
|
172
|
|
- #{sfgd,jdbcType=VARCHAR}, #{gdsj,jdbcType=TIMESTAMP}, #{zhycsj,jdbcType=TIMESTAMP}
|
|
|
179
|
+ #{sfgd,jdbcType=VARCHAR}, #{gdsj,jdbcType=TIMESTAMP}, #{zhycsj,jdbcType=TIMESTAMP}, #{jkr,jdbcType=VARCHAR},
|
|
|
180
|
+ #{updatetime,jdbcType=TIMESTAMP}, #{lqss,jdbcType=VARCHAR}, #{ywlx,jdbcType=VARCHAR}, #{cj,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
|
|
|
181
|
+ #{dataStatus,jdbcType=VARCHAR}
|
|
173
|
182
|
)
|
|
174
|
183
|
</insert>
|
|
175
|
184
|
<insert id="insertSelective" parameterType="com.chinaitop.depot.grainSituationCard.model.StorageCerealsCard" >
|
|
|
@@ -301,6 +310,27 @@
|
|
301
|
310
|
<if test="zhycsj != null">
|
|
302
|
311
|
zhycsj,
|
|
303
|
312
|
</if>
|
|
|
313
|
+ <if test="jkr != null">
|
|
|
314
|
+ jkr,
|
|
|
315
|
+ </if>
|
|
|
316
|
+ <if test="updatetime != null">
|
|
|
317
|
+ updatetime,
|
|
|
318
|
+ </if>
|
|
|
319
|
+ <if test="lqss != null">
|
|
|
320
|
+ lqss,
|
|
|
321
|
+ </if>
|
|
|
322
|
+ <if test="ywlx != null">
|
|
|
323
|
+ ywlx,
|
|
|
324
|
+ </if>
|
|
|
325
|
+ <if test="cj != null">
|
|
|
326
|
+ cj,
|
|
|
327
|
+ </if>
|
|
|
328
|
+ <if test="remark != null">
|
|
|
329
|
+ remark,
|
|
|
330
|
+ </if>
|
|
|
331
|
+ <if test="dataStatus != null">
|
|
|
332
|
+ data_status,
|
|
|
333
|
+ </if>
|
|
304
|
334
|
</trim>
|
|
305
|
335
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
306
|
336
|
<if test="id != null" >
|
|
|
@@ -429,6 +459,27 @@
|
|
429
|
459
|
<if test="zhycsj != null">
|
|
430
|
460
|
#{zhycsj,jdbcType=TIMESTAMP},
|
|
431
|
461
|
</if>
|
|
|
462
|
+ <if test="jkr != null">
|
|
|
463
|
+ #{jkr,jdbcType=VARCHAR},
|
|
|
464
|
+ </if>
|
|
|
465
|
+ <if test="updatetime != null">
|
|
|
466
|
+ #{updatetime,jdbcType=TIMESTAMP},
|
|
|
467
|
+ </if>
|
|
|
468
|
+ <if test="lqss != null">
|
|
|
469
|
+ #{lqss,jdbcType=VARCHAR},
|
|
|
470
|
+ </if>
|
|
|
471
|
+ <if test="ywlx != null">
|
|
|
472
|
+ #{ywlx,jdbcType=VARCHAR},
|
|
|
473
|
+ </if>
|
|
|
474
|
+ <if test="cj != null">
|
|
|
475
|
+ #{cj,jdbcType=VARCHAR},
|
|
|
476
|
+ </if>
|
|
|
477
|
+ <if test="remark != null">
|
|
|
478
|
+ #{remark,jdbcType=VARCHAR},
|
|
|
479
|
+ </if>
|
|
|
480
|
+ <if test="dataStatus != null">
|
|
|
481
|
+ #{dataStatus,jdbcType=VARCHAR},
|
|
|
482
|
+ </if>
|
|
432
|
483
|
</trim>
|
|
433
|
484
|
</insert>
|
|
434
|
485
|
<select id="countByExample" parameterType="com.chinaitop.depot.grainSituationCard.model.StorageCerealsCardExample" resultType="java.lang.Integer" >
|
|
|
@@ -566,6 +617,27 @@
|
|
566
|
617
|
<if test="record.zhycsj != null">
|
|
567
|
618
|
zhycsj = #{record.zhycsj,jdbcType=TIMESTAMP},
|
|
568
|
619
|
</if>
|
|
|
620
|
+ <if test="record.jkr != null">
|
|
|
621
|
+ jkr = #{record.jkr,jdbcType=VARCHAR},
|
|
|
622
|
+ </if>
|
|
|
623
|
+ <if test="record.updatetime != null">
|
|
|
624
|
+ updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
|
|
|
625
|
+ </if>
|
|
|
626
|
+ <if test="record.lqss != null">
|
|
|
627
|
+ lqss = #{record.lqss,jdbcType=VARCHAR},
|
|
|
628
|
+ </if>
|
|
|
629
|
+ <if test="record.ywlx != null">
|
|
|
630
|
+ ywlx = #{record.ywlx,jdbcType=VARCHAR},
|
|
|
631
|
+ </if>
|
|
|
632
|
+ <if test="record.cj != null">
|
|
|
633
|
+ cj = #{record.cj,jdbcType=VARCHAR},
|
|
|
634
|
+ </if>
|
|
|
635
|
+ <if test="record.remark != null">
|
|
|
636
|
+ remark = #{record.remark,jdbcType=VARCHAR},
|
|
|
637
|
+ </if>
|
|
|
638
|
+ <if test="record.dataStatus != null">
|
|
|
639
|
+ data_status = #{record.dataStatus,jdbcType=VARCHAR},
|
|
|
640
|
+ </if>
|
|
569
|
641
|
</set>
|
|
570
|
642
|
<if test="_parameter != null" >
|
|
571
|
643
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -614,7 +686,14 @@
|
|
614
|
686
|
spare_five = #{record.spareFive,jdbcType=VARCHAR},
|
|
615
|
687
|
sfgd = #{record.sfgd,jdbcType=VARCHAR},
|
|
616
|
688
|
gdsj = #{record.gdsj,jdbcType=TIMESTAMP},
|
|
617
|
|
- zhycsj = #{record.zhycsj,jdbcType=TIMESTAMP}
|
|
|
689
|
+ zhycsj = #{record.zhycsj,jdbcType=TIMESTAMP},
|
|
|
690
|
+ jkr = #{record.jkr,jdbcType=VARCHAR},
|
|
|
691
|
+ updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
|
|
|
692
|
+ lqss = #{record.lqss,jdbcType=VARCHAR},
|
|
|
693
|
+ ywlx = #{record.ywlx,jdbcType=VARCHAR},
|
|
|
694
|
+ cj = #{record.cj,jdbcType=VARCHAR},
|
|
|
695
|
+ remark = #{record.remark,jdbcType=VARCHAR},
|
|
|
696
|
+ data_status = #{record.dataStatus,jdbcType=VARCHAR}
|
|
618
|
697
|
<if test="_parameter != null" >
|
|
619
|
698
|
<include refid="Update_By_Example_Where_Clause" />
|
|
620
|
699
|
</if>
|
|
|
@@ -745,6 +824,27 @@
|
|
745
|
824
|
<if test="zhycsj != null">
|
|
746
|
825
|
zhycsj = #{zhycsj,jdbcType=TIMESTAMP},
|
|
747
|
826
|
</if>
|
|
|
827
|
+ <if test="jkr != null">
|
|
|
828
|
+ jkr = #{jkr,jdbcType=VARCHAR},
|
|
|
829
|
+ </if>
|
|
|
830
|
+ <if test="updatetime != null">
|
|
|
831
|
+ updatetime = #{updatetime,jdbcType=TIMESTAMP},
|
|
|
832
|
+ </if>
|
|
|
833
|
+ <if test="lqss != null">
|
|
|
834
|
+ lqss = #{lqss,jdbcType=VARCHAR},
|
|
|
835
|
+ </if>
|
|
|
836
|
+ <if test="ywlx != null">
|
|
|
837
|
+ ywlx = #{ywlx,jdbcType=VARCHAR},
|
|
|
838
|
+ </if>
|
|
|
839
|
+ <if test="cj != null">
|
|
|
840
|
+ cj = #{cj,jdbcType=VARCHAR},
|
|
|
841
|
+ </if>
|
|
|
842
|
+ <if test="remark != null">
|
|
|
843
|
+ remark = #{remark,jdbcType=VARCHAR},
|
|
|
844
|
+ </if>
|
|
|
845
|
+ <if test="dataStatus != null">
|
|
|
846
|
+ data_status = #{dataStatus,jdbcType=VARCHAR},
|
|
|
847
|
+ </if>
|
|
748
|
848
|
</set>
|
|
749
|
849
|
where id = #{id,jdbcType=VARCHAR}
|
|
750
|
850
|
</update>
|
|
|
@@ -790,7 +890,14 @@
|
|
790
|
890
|
spare_five = #{spareFive,jdbcType=VARCHAR},
|
|
791
|
891
|
sfgd = #{sfgd,jdbcType=VARCHAR},
|
|
792
|
892
|
gdsj = #{gdsj,jdbcType=TIMESTAMP},
|
|
793
|
|
- zhycsj = #{zhycsj,jdbcType=TIMESTAMP}
|
|
|
893
|
+ zhycsj = #{zhycsj,jdbcType=TIMESTAMP},
|
|
|
894
|
+ jkr = #{jkr,jdbcType=VARCHAR},
|
|
|
895
|
+ updatetime = #{updatetime,jdbcType=TIMESTAMP},
|
|
|
896
|
+ lqss = #{lqss,jdbcType=VARCHAR},
|
|
|
897
|
+ ywlx = #{ywlx,jdbcType=VARCHAR},
|
|
|
898
|
+ cj = #{cj,jdbcType=VARCHAR},
|
|
|
899
|
+ remark = #{remark,jdbcType=VARCHAR},
|
|
|
900
|
+ data_status = #{dataStatus,jdbcType=VARCHAR}
|
|
794
|
901
|
where id = #{id,jdbcType=VARCHAR}
|
|
795
|
902
|
</update>
|
|
796
|
903
|
|
|
|
@@ -843,13 +950,9 @@
|
|
843
|
950
|
scc.spare_four,
|
|
844
|
951
|
scc.spare_five,
|
|
845
|
952
|
scc.zhycsj
|
|
846
|
|
- from
|
|
847
|
|
- basic_keeper bk right join basic_keeper_house bkh on
|
|
848
|
|
- bkh.keeper_id = bk.id
|
|
849
|
|
- and bk.org_id = bkh.org_id right join storage_cereals_card scc on
|
|
850
|
|
- scc.org_id = bk.org_id
|
|
851
|
|
- and scc.org_id = bkh.org_id
|
|
852
|
|
- and scc.spare_one = bkh.house_id
|
|
|
953
|
+ from basic_keeper bk
|
|
|
954
|
+ right join basic_keeper_house bkh on bkh.keeper_id = bk.id and bk.org_id = bkh.org_id
|
|
|
955
|
+ right join storage_cereals_card scc on scc.org_id = bk.org_id and scc.org_id = bkh.org_id and scc.spare_one = bkh.house_id
|
|
853
|
956
|
where
|
|
854
|
957
|
scc.id = #{id,jdbcType=VARCHAR}
|
|
855
|
958
|
) t
|