|
|
@@ -27,9 +27,24 @@
|
|
27
|
27
|
<result column="grain_detail_kind" property="grainDetailKind" jdbcType="INTEGER" />
|
|
28
|
28
|
<result column="receive_time" property="receiveTime" jdbcType="TIMESTAMP" />
|
|
29
|
29
|
<result column="input_time" property="inputTime" jdbcType="TIMESTAMP" />
|
|
30
|
|
- <result column="grain_annual" property="grainAnnual" jdbcType="INTEGER" />
|
|
|
30
|
+ <result column="grain_annual" property="grainAnnual" jdbcType="INTEGER" />
|
|
31
|
31
|
<result column="productive_year" property="productiveYear" jdbcType="INTEGER" />
|
|
32
|
|
- <result column="grain_producing_area" property="grainProducingArea" jdbcType="INTEGER" />
|
|
|
32
|
+ <result column="grain_producing_area" property="grainProducingArea" jdbcType="INTEGER" />
|
|
|
33
|
+
|
|
|
34
|
+ <result column="lsxzzbdh" property="lsxzzbdh" jdbcType="VARCHAR" />
|
|
|
35
|
+ <result column="lssl" property="lssl" jdbcType="VARCHAR" />
|
|
|
36
|
+ <result column="hzqlsxzdm" property="hzqlsxzdm" jdbcType="INTEGER" />
|
|
|
37
|
+ <result column="hzrq" property="hzrq" jdbcType="TIMESTAMP" />
|
|
|
38
|
+ <result column="ccshr" property="ccshr" jdbcType="VARCHAR" />
|
|
|
39
|
+ <result column="zjshr" property="zjshr" jdbcType="VARCHAR" />
|
|
|
40
|
+ <result column="tjshr" property="tjshr" jdbcType="VARCHAR" />
|
|
|
41
|
+ <result column="kjshr" property="kjshr" jdbcType="VARCHAR" />
|
|
|
42
|
+ <result column="ldshr" property="ldshr" jdbcType="VARCHAR" />
|
|
|
43
|
+ <result column="bz" property="bz" jdbcType="VARCHAR" />
|
|
|
44
|
+ <result column="audit_state" property="auditState" jdbcType="INTEGER" />
|
|
|
45
|
+ <result column="is_notice" property="isNotice" jdbcType="INTEGER" />
|
|
|
46
|
+ <result column="pzmc" property="pzmc" jdbcType="VARCHAR" />
|
|
|
47
|
+
|
|
33
|
48
|
</resultMap>
|
|
34
|
49
|
<sql id="Example_Where_Clause" >
|
|
35
|
50
|
<!--
|
|
|
@@ -107,7 +122,8 @@
|
|
107
|
122
|
-->
|
|
108
|
123
|
id, notice_number, crktype, contract_number, ywtype, house_id, ware_house_id, grain_kind,
|
|
109
|
124
|
grain_grade, count, outgoing_period, forwarding_unit, receive_unit, resion, in_application,
|
|
110
|
|
- org_id, grain_attribute, grain_detail_kind, receive_time,input_time,grain_annual,productive_year,grain_producing_area
|
|
|
125
|
+ org_id, grain_attribute, grain_detail_kind, receive_time,input_time,grain_annual,productive_year,grain_producing_area,
|
|
|
126
|
+ lsxzzbdh,lssl,hzqlsxzdm,hzrq,ccshr,zjshr,tjshr,kjshr,ldshr,bz,audit_state,is_notice,pzmc
|
|
111
|
127
|
</sql>
|
|
112
|
128
|
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceiveExample" >
|
|
113
|
129
|
<!--
|
|
|
@@ -171,7 +187,8 @@
|
|
171
|
187
|
count, outgoing_period, forwarding_unit,
|
|
172
|
188
|
receive_unit, resion, in_application,
|
|
173
|
189
|
org_id, grain_attribute, grain_detail_kind,
|
|
174
|
|
- receive_time,input_time,grain_annual,productive_year,grain_producing_area)
|
|
|
190
|
+ receive_time,input_time,grain_annual,productive_year,grain_producing_area,
|
|
|
191
|
+ lsxzzbdh,lssl,hzqlsxzdm,hzrq,ccshr,zjshr,tjshr,kjshr,ldshr,bz,audit_state,is_notice,pzmc)
|
|
175
|
192
|
values (#{id,jdbcType=INTEGER}, #{noticeNumber,jdbcType=VARCHAR}, #{crktype,jdbcType=VARCHAR},
|
|
176
|
193
|
#{contractNumber,jdbcType=VARCHAR}, #{ywtype,jdbcType=VARCHAR}, #{houseId,jdbcType=INTEGER},
|
|
177
|
194
|
#{wareHouseId,jdbcType=INTEGER}, #{grainKind,jdbcType=INTEGER}, #{grainGrade,jdbcType=INTEGER},
|
|
|
@@ -179,7 +196,11 @@
|
|
179
|
196
|
#{receiveUnit,jdbcType=VARCHAR}, #{resion,jdbcType=VARCHAR}, #{inApplication,jdbcType=INTEGER},
|
|
180
|
197
|
#{orgId,jdbcType=INTEGER}, #{grainAttribute,jdbcType=INTEGER}, #{grainDetailKind,jdbcType=INTEGER},
|
|
181
|
198
|
#{receiveTime,jdbcType=TIMESTAMP},#{inputTime,jdbcType=TIMESTAMP},#{grainAnnual,jdbcType=INTEGER},
|
|
182
|
|
- #{productiveYear,jdbcType=INTEGER},#{grainProducingArea,jdbcType=INTEGER})
|
|
|
199
|
+ #{productiveYear,jdbcType=INTEGER},#{grainProducingArea,jdbcType=INTEGER},
|
|
|
200
|
+ #{lsxzzbdh,jdbcType=VARCHAR},#{lssl,jdbcType=VARCHAR},#{hzqlsxzdm,jdbcType=INTEGER},
|
|
|
201
|
+ #{hzrq,jdbcType=TIMESTAMP},#{ccshr,jdbcType=VARCHAR},#{zjshr,jdbcType=VARCHAR},
|
|
|
202
|
+ #{tjshr,jdbcType=VARCHAR},#{kjshr,jdbcType=VARCHAR},#{ldshr,jdbcType=VARCHAR},
|
|
|
203
|
+ #{bz,jdbcType=VARCHAR},#{auditState,jdbcType=INTEGER},#{isNotice,jdbcType=INTEGER},#{pzmc,jdbcType=VARCHAR})
|
|
183
|
204
|
</insert>
|
|
184
|
205
|
<insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceive" >
|
|
185
|
206
|
<!--
|
|
|
@@ -258,6 +279,46 @@
|
|
258
|
279
|
<if test="grainProducingArea != null" >
|
|
259
|
280
|
grain_producing_area,
|
|
260
|
281
|
</if>
|
|
|
282
|
+ <if test="lsxzzbdh != null" >
|
|
|
283
|
+ lsxzzbdh,
|
|
|
284
|
+ </if>
|
|
|
285
|
+ <if test="lssl != null" >
|
|
|
286
|
+ lssl,
|
|
|
287
|
+ </if>
|
|
|
288
|
+ <if test="hzqlsxzdm != null" >
|
|
|
289
|
+ hzqlsxzdm,
|
|
|
290
|
+ </if>
|
|
|
291
|
+ <if test="hzrq != null" >
|
|
|
292
|
+ hzrq,
|
|
|
293
|
+ </if>
|
|
|
294
|
+ <if test="ccshr != null" >
|
|
|
295
|
+ ccshr,
|
|
|
296
|
+ </if>
|
|
|
297
|
+ <if test="zjshr != null" >
|
|
|
298
|
+ zjshr,
|
|
|
299
|
+ </if>
|
|
|
300
|
+ <if test="tjshr != null" >
|
|
|
301
|
+ tjshr,
|
|
|
302
|
+ </if>
|
|
|
303
|
+ <if test="kjshr != null" >
|
|
|
304
|
+ kjshr,
|
|
|
305
|
+ </if>
|
|
|
306
|
+ <if test="ldshr != null" >
|
|
|
307
|
+ ldshr,
|
|
|
308
|
+ </if>
|
|
|
309
|
+ <if test="bz != null" >
|
|
|
310
|
+ bz,
|
|
|
311
|
+ </if>
|
|
|
312
|
+ <if test="auditState != null" >
|
|
|
313
|
+ audit_state,
|
|
|
314
|
+ </if>
|
|
|
315
|
+ <if test="isNotice != null" >
|
|
|
316
|
+ is_notice,
|
|
|
317
|
+ </if>
|
|
|
318
|
+ <if test="pzmc != null" >
|
|
|
319
|
+ pzmc,
|
|
|
320
|
+ </if>
|
|
|
321
|
+
|
|
261
|
322
|
</trim>
|
|
262
|
323
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
263
|
324
|
<if test="id != null" >
|
|
|
@@ -329,6 +390,45 @@
|
|
329
|
390
|
<if test="grainProducingArea != null" >
|
|
330
|
391
|
#{grainProducingArea,jdbcType=INTEGER},
|
|
331
|
392
|
</if>
|
|
|
393
|
+ <if test="lsxzzbdh != null" >
|
|
|
394
|
+ #{lsxzzbdh,jdbcType=VARCHAR},
|
|
|
395
|
+ </if>
|
|
|
396
|
+ <if test="lssl != null" >
|
|
|
397
|
+ #{lssl,jdbcType=VARCHAR},
|
|
|
398
|
+ </if>
|
|
|
399
|
+ <if test="hzqlsxzdm != null" >
|
|
|
400
|
+ #{hzqlsxzdm,jdbcType=INTEGER},
|
|
|
401
|
+ </if>
|
|
|
402
|
+ <if test="hzrq != null" >
|
|
|
403
|
+ #{hzrq,jdbcType=TIMESTAMP},
|
|
|
404
|
+ </if>
|
|
|
405
|
+ <if test="ccshr != null" >
|
|
|
406
|
+ #{ccshr,jdbcType=VARCHAR},
|
|
|
407
|
+ </if>
|
|
|
408
|
+ <if test="zjshr != null" >
|
|
|
409
|
+ #{zjshr,jdbcType=VARCHAR},
|
|
|
410
|
+ </if>
|
|
|
411
|
+ <if test="tjshr != null" >
|
|
|
412
|
+ #{tjshr,jdbcType=VARCHAR},
|
|
|
413
|
+ </if>
|
|
|
414
|
+ <if test="kjshr != null" >
|
|
|
415
|
+ #{kjshr,jdbcType=VARCHAR},
|
|
|
416
|
+ </if>
|
|
|
417
|
+ <if test="ldshr != null" >
|
|
|
418
|
+ #{ldshr,jdbcType=VARCHAR},
|
|
|
419
|
+ </if>
|
|
|
420
|
+ <if test="bz != null" >
|
|
|
421
|
+ #{bz,jdbcType=VARCHAR},
|
|
|
422
|
+ </if>
|
|
|
423
|
+ <if test="auditState != null" >
|
|
|
424
|
+ #{auditState,jdbcType=INTEGER},
|
|
|
425
|
+ </if>
|
|
|
426
|
+ <if test="isNotice != null" >
|
|
|
427
|
+ #{isNotice,jdbcType=INTEGER},
|
|
|
428
|
+ </if>
|
|
|
429
|
+ <if test="pzmc != null" >
|
|
|
430
|
+ #{pzmc,jdbcType=VARCHAR},
|
|
|
431
|
+ </if>
|
|
332
|
432
|
</trim>
|
|
333
|
433
|
</insert>
|
|
334
|
434
|
<select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessNoticeReceiveExample" resultType="java.lang.Integer" >
|
|
|
@@ -419,6 +519,46 @@
|
|
419
|
519
|
<if test="record.grainProducingArea != null" >
|
|
420
|
520
|
grain_producing_area = #{record.grainProducingArea,jdbcType=INTEGER},
|
|
421
|
521
|
</if>
|
|
|
522
|
+
|
|
|
523
|
+ <if test="record.lsxzzbdh != null" >
|
|
|
524
|
+ lsxzzbdh = #{record.lsxzzbdh,jdbcType=VARCHAR},
|
|
|
525
|
+ </if>
|
|
|
526
|
+ <if test="record.lssl != null" >
|
|
|
527
|
+ lssl = #{record.lssl,jdbcType=VARCHAR},
|
|
|
528
|
+ </if>
|
|
|
529
|
+ <if test="record.hzqlsxzdm != null" >
|
|
|
530
|
+ hzqlsxzdm = #{record.hzqlsxzdm,jdbcType=INTEGER},
|
|
|
531
|
+ </if>
|
|
|
532
|
+ <if test="record.hzrq != null" >
|
|
|
533
|
+ hzrq = #{record.hzrq,jdbcType=TIMESTAMP},
|
|
|
534
|
+ </if>
|
|
|
535
|
+ <if test="record.ccshr != null" >
|
|
|
536
|
+ ccshr = #{record.ccshr,jdbcType=VARCHAR},
|
|
|
537
|
+ </if>
|
|
|
538
|
+ <if test="record.zjshr != null" >
|
|
|
539
|
+ zjshr = #{record.zjshr,jdbcType=VARCHAR},
|
|
|
540
|
+ </if>
|
|
|
541
|
+ <if test="record.tjshr != null" >
|
|
|
542
|
+ tjshr = #{record.tjshr,jdbcType=VARCHAR},
|
|
|
543
|
+ </if>
|
|
|
544
|
+ <if test="record.kjshr != null" >
|
|
|
545
|
+ kjshr = #{record.kjshr,jdbcType=VARCHAR},
|
|
|
546
|
+ </if>
|
|
|
547
|
+ <if test="record.ldshr != null" >
|
|
|
548
|
+ ldshr = #{record.ldshr,jdbcType=VARCHAR},
|
|
|
549
|
+ </if>
|
|
|
550
|
+ <if test="record.bz != null" >
|
|
|
551
|
+ bz = #{record.bz,jdbcType=VARCHAR},
|
|
|
552
|
+ </if>
|
|
|
553
|
+ <if test="record.auditState != null" >
|
|
|
554
|
+ audit_state = #{record.auditState,jdbcType=INTEGER},
|
|
|
555
|
+ </if>
|
|
|
556
|
+ <if test="record.isNotice != null" >
|
|
|
557
|
+ is_notice = #{record.isNotice,jdbcType=INTEGER},
|
|
|
558
|
+ </if>
|
|
|
559
|
+ <if test="record.pzmc != null" >
|
|
|
560
|
+ pzmc = #{record.pzmc,jdbcType=VARCHAR},
|
|
|
561
|
+ </if>
|
|
422
|
562
|
</set>
|
|
423
|
563
|
<if test="_parameter != null" >
|
|
424
|
564
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -453,7 +593,20 @@
|
|
453
|
593
|
input_time = #{record.inputTime,jdbcType=TIMESTAMP},
|
|
454
|
594
|
grain_annual = #{record.grainAnnual,jdbcType=INTEGER},
|
|
455
|
595
|
productive_year = #{record.productiveYear,jdbcType=INTEGER},
|
|
456
|
|
- grain_producing_area = #{record.grainProducingArea,jdbcType=INTEGER}
|
|
|
596
|
+ grain_producing_area = #{record.grainProducingArea,jdbcType=INTEGER},
|
|
|
597
|
+ lsxzzbdh = #{record.lsxzzbdh,jdbcType=VARCHAR},
|
|
|
598
|
+ lssl = #{record.lssl,jdbcType=VARCHAR},
|
|
|
599
|
+ hzqlsxzdm = #{record.hzqlsxzdm,jdbcType=INTEGER},
|
|
|
600
|
+ hzrq = #{record.hzrq,jdbcType=TIMESTAMP},
|
|
|
601
|
+ ccshr = #{record.ccshr,jdbcType=VARCHAR},
|
|
|
602
|
+ zjshr = #{record.zjshr,jdbcType=VARCHAR},
|
|
|
603
|
+ tjshr = #{record.tjshr,jdbcType=VARCHAR},
|
|
|
604
|
+ kjshr = #{record.kjshr,jdbcType=VARCHAR},
|
|
|
605
|
+ ldshr = #{record.ldshr,jdbcType=VARCHAR},
|
|
|
606
|
+ bz = #{record.bz,jdbcType=VARCHAR},
|
|
|
607
|
+ audit_state = #{record.auditState,jdbcType=INTEGER},
|
|
|
608
|
+ is_notice = #{record.isNotice,jdbcType=INTEGER},
|
|
|
609
|
+ pzmc = #{record.pzmc,jdbcType=VARCHAR}
|
|
457
|
610
|
|
|
458
|
611
|
<if test="_parameter != null" >
|
|
459
|
612
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -533,6 +686,46 @@
|
|
533
|
686
|
<if test="grainProducingArea != null" >
|
|
534
|
687
|
grain_producing_area = #{grainProducingArea,jdbcType=INTEGER},
|
|
535
|
688
|
</if>
|
|
|
689
|
+
|
|
|
690
|
+ <if test="lsxzzbdh != null" >
|
|
|
691
|
+ lsxzzbdh = #{lsxzzbdh,jdbcType=VARCHAR},
|
|
|
692
|
+ </if>
|
|
|
693
|
+ <if test="lssl != null" >
|
|
|
694
|
+ lssl = #{lssl,jdbcType=VARCHAR},
|
|
|
695
|
+ </if>
|
|
|
696
|
+ <if test="hzqlsxzdm != null" >
|
|
|
697
|
+ hzqlsxzdm = #{hzqlsxzdm,jdbcType=INTEGER},
|
|
|
698
|
+ </if>
|
|
|
699
|
+ <if test="hzrq != null" >
|
|
|
700
|
+ hzrq = #{hzrq,jdbcType=TIMESTAMP},
|
|
|
701
|
+ </if>
|
|
|
702
|
+ <if test="ccshr != null" >
|
|
|
703
|
+ ccshr = #{ccshr,jdbcType=VARCHAR},
|
|
|
704
|
+ </if>
|
|
|
705
|
+ <if test="zjshr != null" >
|
|
|
706
|
+ zjshr = #{zjshr,jdbcType=VARCHAR},
|
|
|
707
|
+ </if>
|
|
|
708
|
+ <if test="tjshr != null" >
|
|
|
709
|
+ tjshr = #{tjshr,jdbcType=VARCHAR},
|
|
|
710
|
+ </if>
|
|
|
711
|
+ <if test="kjshr != null" >
|
|
|
712
|
+ kjshr = #{kjshr,jdbcType=VARCHAR},
|
|
|
713
|
+ </if>
|
|
|
714
|
+ <if test="ldshr != null" >
|
|
|
715
|
+ ldshr = #{ldshr,jdbcType=VARCHAR},
|
|
|
716
|
+ </if>
|
|
|
717
|
+ <if test="bz != null" >
|
|
|
718
|
+ bz = #{bz,jdbcType=VARCHAR},
|
|
|
719
|
+ </if>
|
|
|
720
|
+ <if test="auditState != null" >
|
|
|
721
|
+ audit_state = #{auditState,jdbcType=INTEGER},
|
|
|
722
|
+ </if>
|
|
|
723
|
+ <if test="isNotice != null" >
|
|
|
724
|
+ is_notice = #{isNotice,jdbcType=INTEGER},
|
|
|
725
|
+ </if>
|
|
|
726
|
+ <if test="pzmc != null" >
|
|
|
727
|
+ pzmc = #{pzmc,jdbcType=VARCHAR},
|
|
|
728
|
+ </if>
|
|
536
|
729
|
</set>
|
|
537
|
730
|
where id = #{id,jdbcType=INTEGER}
|
|
538
|
731
|
</update>
|
|
|
@@ -564,7 +757,36 @@
|
|
564
|
757
|
input_time = #{inputTime,jdbcType=TIMESTAMP},
|
|
565
|
758
|
grain_annual = #{grainAnnual,jdbcType=INTEGER},
|
|
566
|
759
|
productive_year = #{productiveYear,jdbcType=INTEGER},
|
|
567
|
|
- grain_producing_area = #{grainProducingArea,jdbcType=INTEGER}
|
|
|
760
|
+ grain_producing_area = #{grainProducingArea,jdbcType=INTEGER},
|
|
|
761
|
+ lsxzzbdh = #{lsxzzbdh,jdbcType=VARCHAR},
|
|
|
762
|
+ lssl = #{lssl,jdbcType=VARCHAR},
|
|
|
763
|
+ hzqlsxzdm = #{hzqlsxzdm,jdbcType=INTEGER},
|
|
|
764
|
+ hzrq = #{hzrq,jdbcType=TIMESTAMP},
|
|
|
765
|
+ ccshr = #{ccshr,jdbcType=VARCHAR},
|
|
|
766
|
+ zjshr = #{zjshr,jdbcType=VARCHAR},
|
|
|
767
|
+ tjshr = #{tjshr,jdbcType=VARCHAR},
|
|
|
768
|
+ kjshr = #{kjshr,jdbcType=VARCHAR},
|
|
|
769
|
+ ldshr = #{ldshr,jdbcType=VARCHAR},
|
|
|
770
|
+ bz = #{bz,jdbcType=VARCHAR},
|
|
|
771
|
+ audit_state = #{auditState,jdbcType=INTEGER},
|
|
|
772
|
+ is_notice = #{isNotice,jdbcType=INTEGER},
|
|
|
773
|
+ pzmc = #{pzmc,jdbcType=VARCHAR}
|
|
568
|
774
|
where id = #{id,jdbcType=INTEGER}
|
|
569
|
775
|
</update>
|
|
|
776
|
+
|
|
|
777
|
+ <select id="getUserRole" parameterType="java.lang.Integer" resultType="java.util.HashMap">
|
|
|
778
|
+ SELECT
|
|
|
779
|
+ role_name
|
|
|
780
|
+ FROM
|
|
|
781
|
+ role_info
|
|
|
782
|
+ WHERE
|
|
|
783
|
+ role_id IN (
|
|
|
784
|
+ SELECT
|
|
|
785
|
+ role_id
|
|
|
786
|
+ FROM
|
|
|
787
|
+ user_role
|
|
|
788
|
+ WHERE
|
|
|
789
|
+ user_id = #{userId,jdbcType=INTEGER}
|
|
|
790
|
+ )
|
|
|
791
|
+ </select>
|
|
570
|
792
|
</mapper>
|