|
|
@@ -41,6 +41,12 @@
|
|
41
|
41
|
<result column="sample_status" property="sampleStatus" jdbcType="VARCHAR" />
|
|
42
|
42
|
<result column="sample_package_model" property="samplePackageModel" jdbcType="VARCHAR" />
|
|
43
|
43
|
<result column="bz" property="bz" jdbcType="VARCHAR" />
|
|
|
44
|
+
|
|
|
45
|
+ <result column="suitable_quantity" property="suitableQuantity" jdbcType="DECIMAL" />
|
|
|
46
|
+ <result column="suitable_rate" property="suitableRate" jdbcType="DECIMAL" />
|
|
|
47
|
+ <result column="person_work" property="personWork" jdbcType="VARCHAR" />
|
|
|
48
|
+ <result column="report_name" property="reportName" jdbcType="VARCHAR" />
|
|
|
49
|
+ <result column="person_name" property="personName" jdbcType="VARCHAR" />
|
|
44
|
50
|
</resultMap>
|
|
45
|
51
|
|
|
46
|
52
|
<resultMap id="BaseResultMap1" extends="BaseResultMap" type="com.chinaitop.depot.qualityControl.model.BusinessQcQualityInspection">
|
|
|
@@ -119,7 +125,7 @@
|
|
119
|
125
|
warehouse_id, grain_variety_id, grain_nature_id, grain_grade_id, rkrq, receive_year, produce_area,
|
|
120
|
126
|
jysj, check_result, jydw, jyr, jyyj, zblb, spaqzbsfhg, qfrq, bgcjsj, shrxm, sfzcccnx,
|
|
121
|
127
|
zbjgpd, qysj, qydbh, qyrxm, qyqy, jdrxm, ypbh, ypsl, dbsl, ypdj, sample_status, sample_package_model,
|
|
122
|
|
- bz
|
|
|
128
|
+ bz, suitable_quantity, suitable_rate, person_work, report_name, person_name
|
|
123
|
129
|
</sql>
|
|
124
|
130
|
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.qualityControl.model.BusinessQcQualityInspectionExample" >
|
|
125
|
131
|
select
|
|
|
@@ -164,7 +170,8 @@
|
|
164
|
170
|
qydbh, qyrxm, qyqy,
|
|
165
|
171
|
jdrxm, ypbh, ypsl,
|
|
166
|
172
|
dbsl, ypdj, sample_status,
|
|
167
|
|
- sample_package_model, bz)
|
|
|
173
|
+ sample_package_model, bz,
|
|
|
174
|
+ suitable_quantity, suitable_rate, person_work, report_name, person_name)
|
|
168
|
175
|
values (#{id,jdbcType=INTEGER}, #{createdate,jdbcType=TIMESTAMP}, #{updatename,jdbcType=VARCHAR},
|
|
169
|
176
|
#{updatedate,jdbcType=TIMESTAMP}, #{zjbgdh,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER},
|
|
170
|
177
|
#{jylb,jdbcType=VARCHAR}, #{basicStorehouseId,jdbcType=INTEGER}, #{warehouseId,jdbcType=INTEGER},
|
|
|
@@ -177,7 +184,8 @@
|
|
177
|
184
|
#{qydbh,jdbcType=VARCHAR}, #{qyrxm,jdbcType=VARCHAR}, #{qyqy,jdbcType=VARCHAR},
|
|
178
|
185
|
#{jdrxm,jdbcType=VARCHAR}, #{ypbh,jdbcType=VARCHAR}, #{ypsl,jdbcType=DECIMAL},
|
|
179
|
186
|
#{dbsl,jdbcType=DECIMAL}, #{ypdj,jdbcType=VARCHAR}, #{sampleStatus,jdbcType=VARCHAR},
|
|
180
|
|
- #{samplePackageModel,jdbcType=VARCHAR}, #{bz,jdbcType=VARCHAR})
|
|
|
187
|
+ #{samplePackageModel,jdbcType=VARCHAR}, #{bz,jdbcType=VARCHAR}), #{suitableQuantity,jdbcType=DECIMAL}, #{suitableRate,jdbcType=DECIMAL},
|
|
|
188
|
+ #{personWork,jdbcType=VARCHAR}, #{personName,jdbcType=VARCHAR}
|
|
181
|
189
|
</insert>
|
|
182
|
190
|
<insert id="insertSelective" parameterType="com.chinaitop.depot.qualityControl.model.BusinessQcQualityInspection" useGeneratedKeys="true" keyProperty="id" >
|
|
183
|
191
|
insert into business_qc_quality_inspection
|
|
|
@@ -299,6 +307,21 @@
|
|
299
|
307
|
<if test="bz != null" >
|
|
300
|
308
|
bz,
|
|
301
|
309
|
</if>
|
|
|
310
|
+ <if test="suitableQuantity != null" >
|
|
|
311
|
+ suitable_quantity,
|
|
|
312
|
+ </if>
|
|
|
313
|
+ <if test="suitableRate != null" >
|
|
|
314
|
+ suitable_rate,
|
|
|
315
|
+ </if>
|
|
|
316
|
+ <if test="personWork != null" >
|
|
|
317
|
+ person_work,
|
|
|
318
|
+ </if>
|
|
|
319
|
+ <if test="reportName != null" >
|
|
|
320
|
+ report_name,
|
|
|
321
|
+ </if>
|
|
|
322
|
+ <if test="personName != null" >
|
|
|
323
|
+ person_name,
|
|
|
324
|
+ </if>
|
|
302
|
325
|
</trim>
|
|
303
|
326
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
304
|
327
|
<if test="id != null" >
|
|
|
@@ -415,6 +438,21 @@
|
|
415
|
438
|
<if test="bz != null" >
|
|
416
|
439
|
#{bz,jdbcType=VARCHAR},
|
|
417
|
440
|
</if>
|
|
|
441
|
+ <if test="suitableQuantity != null" >
|
|
|
442
|
+ #{suitableQuantity,jdbcType=DECIMAL},
|
|
|
443
|
+ </if>
|
|
|
444
|
+ <if test="suitableRate != null" >
|
|
|
445
|
+ #{suitableRate,jdbcType=DECIMAL},
|
|
|
446
|
+ </if>
|
|
|
447
|
+ <if test="personWork != null" >
|
|
|
448
|
+ #{personWork,jdbcType=VARCHAR},
|
|
|
449
|
+ </if>
|
|
|
450
|
+ <if test="reportName != null" >
|
|
|
451
|
+ #{reportName,jdbcType=VARCHAR},
|
|
|
452
|
+ </if>
|
|
|
453
|
+ <if test="personName != null" >
|
|
|
454
|
+ #{personName,jdbcType=VARCHAR},
|
|
|
455
|
+ </if>
|
|
418
|
456
|
</trim>
|
|
419
|
457
|
</insert>
|
|
420
|
458
|
<select id="countByExample" parameterType="com.chinaitop.depot.qualityControl.model.BusinessQcQualityInspectionExample" resultType="java.lang.Integer" >
|
|
|
@@ -543,6 +581,21 @@
|
|
543
|
581
|
<if test="record.bz != null" >
|
|
544
|
582
|
bz = #{record.bz,jdbcType=VARCHAR},
|
|
545
|
583
|
</if>
|
|
|
584
|
+ <if test="record.suitableQuantity != null" >
|
|
|
585
|
+ suitableQuantity = #{record.suitableQuantity,jdbcType=DECIMAL},
|
|
|
586
|
+ </if>
|
|
|
587
|
+ <if test="record.suitableRate != null" >
|
|
|
588
|
+ suitableRate = #{record.suitableRate,jdbcType=DECIMAL},
|
|
|
589
|
+ </if>
|
|
|
590
|
+ <if test="record.personWork != null" >
|
|
|
591
|
+ personWork = #{record.personWork,jdbcType=VARCHAR},
|
|
|
592
|
+ </if>
|
|
|
593
|
+ <if test="record.reportName != null" >
|
|
|
594
|
+ reportName = #{record.reportName,jdbcType=VARCHAR},
|
|
|
595
|
+ </if>
|
|
|
596
|
+ <if test="record.personName != null" >
|
|
|
597
|
+ personName = #{record.personName,jdbcType=VARCHAR},
|
|
|
598
|
+ </if>
|
|
546
|
599
|
</set>
|
|
547
|
600
|
<if test="_parameter != null" >
|
|
548
|
601
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -589,6 +642,11 @@
|
|
589
|
642
|
sample_status = #{record.sampleStatus,jdbcType=VARCHAR},
|
|
590
|
643
|
sample_package_model = #{record.samplePackageModel,jdbcType=VARCHAR},
|
|
591
|
644
|
bz = #{record.bz,jdbcType=VARCHAR}
|
|
|
645
|
+ suitable_quantity = #{record.suitableQuantity,jdbcType=DECIMAL},
|
|
|
646
|
+ suitable_rate = #{record.suitableRate,jdbcType=DECIMAL},
|
|
|
647
|
+ person_work = #{record.personWork,jdbcType=VARCHAR}
|
|
|
648
|
+ report_name = #{record.reportName,jdbcType=VARCHAR}
|
|
|
649
|
+ person_name = #{record.personName,jdbcType=VARCHAR}
|
|
592
|
650
|
<if test="_parameter != null" >
|
|
593
|
651
|
<include refid="Update_By_Example_Where_Clause" />
|
|
594
|
652
|
</if>
|
|
|
@@ -710,6 +768,21 @@
|
|
710
|
768
|
<if test="bz != null" >
|
|
711
|
769
|
bz = #{bz,jdbcType=VARCHAR},
|
|
712
|
770
|
</if>
|
|
|
771
|
+ <if test="suitableQuantity != null" >
|
|
|
772
|
+ suitable_quantity = #{suitableQuantity,jdbcType=DECIMAL},
|
|
|
773
|
+ </if>
|
|
|
774
|
+ <if test="suitableRate != null" >
|
|
|
775
|
+ suitable_rate = #{suitableRate,jdbcType=DECIMAL},
|
|
|
776
|
+ </if>
|
|
|
777
|
+ <if test="personWork != null" >
|
|
|
778
|
+ person_work = #{personWork,jdbcType=VARCHAR},
|
|
|
779
|
+ </if>
|
|
|
780
|
+ <if test="reportName != null" >
|
|
|
781
|
+ report_name = #{reportName,jdbcType=VARCHAR},
|
|
|
782
|
+ </if>
|
|
|
783
|
+ <if test="personName != null" >
|
|
|
784
|
+ person_name = #{personName,jdbcType=VARCHAR},
|
|
|
785
|
+ </if>
|
|
713
|
786
|
</set>
|
|
714
|
787
|
where id = #{id,jdbcType=INTEGER}
|
|
715
|
788
|
</update>
|
|
|
@@ -753,6 +826,11 @@
|
|
753
|
826
|
sample_status = #{sampleStatus,jdbcType=VARCHAR},
|
|
754
|
827
|
sample_package_model = #{samplePackageModel,jdbcType=VARCHAR},
|
|
755
|
828
|
bz = #{bz,jdbcType=VARCHAR}
|
|
|
829
|
+ suitable_quantity = #{suitableQuantity,jdbcType=DECIMAL},
|
|
|
830
|
+ suitable_rate = #{suitableRate,jdbcType=DECIMAL},
|
|
|
831
|
+ person_work = #{personWork,jdbcType=VARCHAR},
|
|
|
832
|
+ report_name = #{reportName,jdbcType=VARCHAR},
|
|
|
833
|
+ person_name = #{personName,jdbcType=VARCHAR}
|
|
756
|
834
|
where id = #{id,jdbcType=INTEGER}
|
|
757
|
835
|
</update>
|
|
758
|
836
|
<select id="selectOnly" parameterType="map" resultType="string">
|
|
|
@@ -789,11 +867,18 @@
|
|
789
|
867
|
LEFT JOIN basic_enum be ON qqi.grain_variety_id = be.enumId
|
|
790
|
868
|
LEFT JOIN basic_enum be1 ON qqi.grain_nature_id = be1.enumId
|
|
791
|
869
|
<where>
|
|
|
870
|
+ qqi.org_id = #{orgId}
|
|
792
|
871
|
<if test="storehouseName != null and storehouseName != ''">
|
|
793
|
|
- bs.storehouse_name LIKE concat("%",#{storehouseName},"%")
|
|
|
872
|
+ and bs.storehouse_name LIKE concat("%",#{storehouseName},"%")
|
|
794
|
873
|
</if>
|
|
795
|
|
- <if test="orgId != null and orgId != ''">
|
|
796
|
|
- and qqi.org_id = #{orgId}
|
|
|
874
|
+ <if test="grainVarietyName != null and grainVarietyName != ''">
|
|
|
875
|
+ and be.enumname LIKE concat("%",#{grainVarietyName},"%")
|
|
|
876
|
+ </if>
|
|
|
877
|
+ <if test="grainNatureName != null and grainNatureName != ''">
|
|
|
878
|
+ and be1.enumname LIKE concat("%",#{grainNatureName},"%")
|
|
|
879
|
+ </if>
|
|
|
880
|
+ <if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
|
881
|
+ and qqi.jysj BETWEEN #{startTime} AND #{endTime}
|
|
797
|
882
|
</if>
|
|
798
|
883
|
</where>
|
|
799
|
884
|
</select>
|
|
|
@@ -849,8 +934,7 @@
|
|
849
|
934
|
parentId = #{parentId}
|
|
850
|
935
|
AND delFlag = 1
|
|
851
|
936
|
</select>
|
|
852
|
|
- <select id="getQualityInspectionFindByWarehouseId"
|
|
853
|
|
- resultType="com.chinaitop.depot.qualityControl.model.BusinessQcQualityInspection" resultMap="BaseResultMap1">
|
|
|
937
|
+ <select id="getQualityInspectionFindByWarehouseId" resultType="com.chinaitop.depot.qualityControl.model.BusinessQcQualityInspection" resultMap="BaseResultMap1">
|
|
854
|
938
|
select
|
|
855
|
939
|
bqq.id,
|
|
856
|
940
|
bqq.jylb,
|