|
|
@@ -101,6 +101,11 @@
|
|
101
|
101
|
<result column="ypbh" property="ypbh" jdbcType="VARCHAR" />
|
|
102
|
102
|
<result column="sfzcccnx" property="sfzcccnx" jdbcType="VARCHAR" />
|
|
103
|
103
|
<result column="qysj" property="qysj" jdbcType="TIMESTAMP" />
|
|
|
104
|
+ <result column="jylb" property="jylb" jdbcType="VARCHAR" />
|
|
|
105
|
+ <result column="qfrq" property="qfrq" jdbcType="TIMESTAMP" />
|
|
|
106
|
+ <result column="ypsl" property="ypsl" jdbcType="VARCHAR" />
|
|
|
107
|
+ <result column="dbsl" property="dbsl" jdbcType="VARCHAR" />
|
|
|
108
|
+ <result column="ypdj" property="ypdj" jdbcType="VARCHAR" />
|
|
104
|
109
|
</resultMap>
|
|
105
|
110
|
<sql id="Example_Where_Clause" >
|
|
106
|
111
|
<!--
|
|
|
@@ -190,7 +195,8 @@
|
|
190
|
195
|
inspection_standard_basis, quality, seal_date, seal_status, auth_code, org_id, history_status,
|
|
191
|
196
|
intermixing_rate, smelltaste, transparency, peroxide_value, smoke_point, reeze_test,
|
|
192
|
197
|
residual_solvent, lead, total_arsenic, aflatoxin, butyl_phenol, updatetime, zblb,
|
|
193
|
|
- qydbh, qyqy, jdrxm, ypbh, sfzcccnx, qysj
|
|
|
198
|
+ qydbh, qyqy, jdrxm, ypbh, sfzcccnx, qysj,
|
|
|
199
|
+ jylb,qfrq,ypsl,dbsl,ypdj
|
|
194
|
200
|
</sql>
|
|
195
|
201
|
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.storage.model.StorageQualitycheckExample" >
|
|
196
|
202
|
<!--
|
|
|
@@ -279,7 +285,8 @@
|
|
279
|
285
|
reeze_test, residual_solvent, lead,
|
|
280
|
286
|
total_arsenic, aflatoxin, butyl_phenol,
|
|
281
|
287
|
updatetime, zblb, qydbh,
|
|
282
|
|
- qyqy, jdrxm, ypbh,
|
|
|
288
|
+ qyqy, jdrxm, ypbh,
|
|
|
289
|
+ jylb,qfrq,ypsl,dbsl,ypdj,
|
|
283
|
290
|
sfzcccnx, qysj)
|
|
284
|
291
|
values (#{id,jdbcType=INTEGER}, #{tankId,jdbcType=VARCHAR}, #{houseId,jdbcType=INTEGER},
|
|
285
|
292
|
#{warehouseId,jdbcType=INTEGER}, #{type,jdbcType=VARCHAR}, #{subType,jdbcType=INTEGER},
|
|
|
@@ -312,8 +319,9 @@
|
|
312
|
319
|
#{reezeTest,jdbcType=VARCHAR}, #{residualSolvent,jdbcType=VARCHAR}, #{lead,jdbcType=VARCHAR},
|
|
313
|
320
|
#{totalArsenic,jdbcType=VARCHAR}, #{aflatoxin,jdbcType=VARCHAR}, #{butylPhenol,jdbcType=VARCHAR},
|
|
314
|
321
|
#{updatetime,jdbcType=TIMESTAMP}, #{zblb,jdbcType=VARCHAR}, #{qydbh,jdbcType=VARCHAR},
|
|
315
|
|
- #{qyqy,jdbcType=VARCHAR}, #{jdrxm,jdbcType=VARCHAR}, #{ypbh,jdbcType=VARCHAR},
|
|
316
|
|
- #{sfzcccnx,jdbcType=VARCHAR}, #{qysj,jdbcType=TIMESTAMP})
|
|
|
322
|
+ #{qyqy,jdbcType=VARCHAR}, #{jdrxm,jdbcType=VARCHAR}, #{ypbh,jdbcType=VARCHAR},
|
|
|
323
|
+ #{jylb,jdbcType=VARCHAR},#{qfrq,jdbcType=TIMESTAMP},#{ypsl,jdbcType=VARCHAR},#{dbsl,jdbcType=VARCHAR},#{ypdj,jdbcType=VARCHAR},
|
|
|
324
|
+ #{sfzcccnx,jdbcType=VARCHAR}, #{qysj,jdbcType=TIMESTAMP})
|
|
317
|
325
|
</insert>
|
|
318
|
326
|
<insert id="insertSelective" useGeneratedKeys="true" keyProperty="id" parameterType="com.chinaitop.depot.storage.model.StorageQualitycheck" >
|
|
319
|
327
|
<!--
|
|
|
@@ -605,6 +613,21 @@
|
|
605
|
613
|
<if test="qysj != null" >
|
|
606
|
614
|
qysj,
|
|
607
|
615
|
</if>
|
|
|
616
|
+ <if test="jylb != null" >
|
|
|
617
|
+ jylb,
|
|
|
618
|
+ </if>
|
|
|
619
|
+ <if test="qfrq != null" >
|
|
|
620
|
+ qfrq,
|
|
|
621
|
+ </if>
|
|
|
622
|
+ <if test="ypsl != null" >
|
|
|
623
|
+ ypsl,
|
|
|
624
|
+ </if>
|
|
|
625
|
+ <if test="dbsl != null" >
|
|
|
626
|
+ dbsl,
|
|
|
627
|
+ </if>
|
|
|
628
|
+ <if test="ypdj != null" >
|
|
|
629
|
+ ypdj,
|
|
|
630
|
+ </if>
|
|
608
|
631
|
</trim>
|
|
609
|
632
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
610
|
633
|
<if test="id != null" >
|
|
|
@@ -889,6 +912,21 @@
|
|
889
|
912
|
<if test="qysj != null" >
|
|
890
|
913
|
#{qysj,jdbcType=TIMESTAMP},
|
|
891
|
914
|
</if>
|
|
|
915
|
+ <if test="jylb != null" >
|
|
|
916
|
+ #{jylb,jdbcType=VARCHAR},
|
|
|
917
|
+ </if>
|
|
|
918
|
+ <if test="qfrq != null" >
|
|
|
919
|
+ #{qfrq,jdbcType=TIMESTAMP},
|
|
|
920
|
+ </if>
|
|
|
921
|
+ <if test="ypsl != null" >
|
|
|
922
|
+ #{ypsl,jdbcType=VARCHAR},
|
|
|
923
|
+ </if>
|
|
|
924
|
+ <if test="dbsl != null" >
|
|
|
925
|
+ #{dbsl,jdbcType=VARCHAR},
|
|
|
926
|
+ </if>
|
|
|
927
|
+ <if test="ypdj != null" >
|
|
|
928
|
+ #{ypdj,jdbcType=VARCHAR},
|
|
|
929
|
+ </if>
|
|
892
|
930
|
</trim>
|
|
893
|
931
|
</insert>
|
|
894
|
932
|
<select id="countByExample" parameterType="com.chinaitop.depot.storage.model.StorageQualitycheckExample" resultType="java.lang.Integer" >
|
|
|
@@ -1192,6 +1230,21 @@
|
|
1192
|
1230
|
<if test="record.qysj != null" >
|
|
1193
|
1231
|
qysj = #{record.qysj,jdbcType=TIMESTAMP},
|
|
1194
|
1232
|
</if>
|
|
|
1233
|
+ <if test="record.jylb != null" >
|
|
|
1234
|
+ jylb = #{record.jylb,jdbcType=VARCHAR},
|
|
|
1235
|
+ </if>
|
|
|
1236
|
+ <if test="record.qfrq != null" >
|
|
|
1237
|
+ qfrq = #{record.qfrq,jdbcType=TIMESTAMP},
|
|
|
1238
|
+ </if>
|
|
|
1239
|
+ <if test="record.ypsl != null" >
|
|
|
1240
|
+ ypsl = #{record.ypsl,jdbcType=VARCHAR},
|
|
|
1241
|
+ </if>
|
|
|
1242
|
+ <if test="record.dbsl != null" >
|
|
|
1243
|
+ dbsl = #{record.dbsl,jdbcType=VARCHAR},
|
|
|
1244
|
+ </if>
|
|
|
1245
|
+ <if test="record.ypdj != null" >
|
|
|
1246
|
+ ypdj = #{record.ypdj,jdbcType=VARCHAR},
|
|
|
1247
|
+ </if>
|
|
1195
|
1248
|
</set>
|
|
1196
|
1249
|
<if test="_parameter != null" >
|
|
1197
|
1250
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -1297,7 +1350,12 @@
|
|
1297
|
1350
|
jdrxm = #{record.jdrxm,jdbcType=VARCHAR},
|
|
1298
|
1351
|
ypbh = #{record.ypbh,jdbcType=VARCHAR},
|
|
1299
|
1352
|
sfzcccnx = #{record.sfzcccnx,jdbcType=VARCHAR},
|
|
1300
|
|
- qysj = #{record.qysj,jdbcType=TIMESTAMP}
|
|
|
1353
|
+ qysj = #{record.qysj,jdbcType=TIMESTAMP},
|
|
|
1354
|
+ jylb= #{record.jylb,jdbcType=VARCHAR},
|
|
|
1355
|
+ qfrq= #{record.qfrq,jdbcType=TIMESTAMP},
|
|
|
1356
|
+ ypsl= #{record.ypsl,jdbcType=VARCHAR},
|
|
|
1357
|
+ dbsl= #{record.dbsl,jdbcType=VARCHAR},
|
|
|
1358
|
+ ypdj= #{record.ypdj,jdbcType=VARCHAR}
|
|
1301
|
1359
|
<if test="_parameter != null" >
|
|
1302
|
1360
|
<include refid="Update_By_Example_Where_Clause" />
|
|
1303
|
1361
|
</if>
|
|
|
@@ -1589,6 +1647,21 @@
|
|
1589
|
1647
|
<if test="qysj != null" >
|
|
1590
|
1648
|
qysj = #{qysj,jdbcType=TIMESTAMP},
|
|
1591
|
1649
|
</if>
|
|
|
1650
|
+ <if test="jylb != null" >
|
|
|
1651
|
+ jylb = #{jylb,jdbcType=VARCHAR},
|
|
|
1652
|
+ </if>
|
|
|
1653
|
+ <if test="qfrq != null" >
|
|
|
1654
|
+ qfrq = #{qfrq,jdbcType=TIMESTAMP},
|
|
|
1655
|
+ </if>
|
|
|
1656
|
+ <if test="ypsl != null" >
|
|
|
1657
|
+ ypsl = #{ypsl,jdbcType=VARCHAR},
|
|
|
1658
|
+ </if>
|
|
|
1659
|
+ <if test="dbsl != null" >
|
|
|
1660
|
+ dbsl = #{dbsl,jdbcType=VARCHAR},
|
|
|
1661
|
+ </if>
|
|
|
1662
|
+ <if test="ypdj != null" >
|
|
|
1663
|
+ ypdj = #{ypdj,jdbcType=VARCHAR},
|
|
|
1664
|
+ </if>
|
|
1592
|
1665
|
</set>
|
|
1593
|
1666
|
where id = #{id,jdbcType=INTEGER}
|
|
1594
|
1667
|
</update>
|
|
|
@@ -1691,8 +1764,13 @@
|
|
1691
|
1764
|
jdrxm = #{jdrxm,jdbcType=VARCHAR},
|
|
1692
|
1765
|
ypbh = #{ypbh,jdbcType=VARCHAR},
|
|
1693
|
1766
|
sfzcccnx = #{sfzcccnx,jdbcType=VARCHAR},
|
|
1694
|
|
- qysj = #{qysj,jdbcType=TIMESTAMP}
|
|
1695
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
1767
|
+ qysj = #{qysj,jdbcType=TIMESTAMP},
|
|
|
1768
|
+ jylb= #{record.jylb,jdbcType=VARCHAR},
|
|
|
1769
|
+ qfrq= #{record.qfrq,jdbcType=TIMESTAMP},
|
|
|
1770
|
+ ypsl= #{record.ypsl,jdbcType=VARCHAR},
|
|
|
1771
|
+ dbsl= #{record.dbsl,jdbcType=VARCHAR},
|
|
|
1772
|
+ ypdj= #{record.ypdj,jdbcType=VARCHAR}
|
|
|
1773
|
+ where id = #{id,jdbcType=INTEGER}
|
|
1696
|
1774
|
</update>
|
|
1697
|
1775
|
|
|
1698
|
1776
|
<select id="getHouseIdList" parameterType="com.chinaitop.depot.storage.model.StorageQualitycheck" resultMap="BaseResultMap">
|
|
|
@@ -1740,7 +1818,7 @@
|
|
1740
|
1818
|
ORDER BY
|
|
1741
|
1819
|
id DESC
|
|
1742
|
1820
|
) a
|
|
1743
|
|
- GROUP BY a.warehouse_id
|
|
|
1821
|
+ GROUP BY /*a.warehouse_id*/a.id, a.warehouse_id, a.level, a.sub_type_detailed
|
|
1744
|
1822
|
HAVING
|
|
1745
|
1823
|
<if test="level != null">
|
|
1746
|
1824
|
level = #{level}
|
|
|
@@ -1797,7 +1875,8 @@
|
|
1797
|
1875
|
sqk.damage_ratio, sqk.hot_damage_ratio, sqk.husked_rice_weight, sqk.reviewer, sqk.apply_check_time, sqk.check_time_type,
|
|
1798
|
1876
|
sqk.check_result_time, sqk.store_quality, sqk.is_pest, sqk.inspection_standard_basis, sqk.quality, sqk.seal_date,
|
|
1799
|
1877
|
sqk.seal_status, sqk.auth_code, sqk.org_id, sqk.history_status, sqk.smoke_point, sqk.residual_solvent, sqk.transparency,
|
|
1800
|
|
- sqk.zblb,sqk.qydbh,sqk.qysj,sqk.qyqy,sqk.jdrxm,sqk.ypbh,sqk.sfzcccnx
|
|
|
1878
|
+ sqk.zblb,sqk.qydbh,sqk.qysj,sqk.qyqy,sqk.jdrxm,sqk.ypbh,sqk.sfzcccnx,
|
|
|
1879
|
+ sqk.jylb, sqk.qfrq,sqk.ypsl,sqk.dbsl,sqk.ypdj
|
|
1801
|
1880
|
<!--云南新增的字段,先注释掉方便调试-->
|
|
1802
|
1881
|
/*, sqk.intermixing_rate,sqk.smelltaste,sqk.transparency,sqk.peroxide_value,
|
|
1803
|
1882
|
sqk.smoke_point,sqk.reeze_test,sqk.residual_solvent,sqk.lead,sqk.total_arsenic,sqk.aflatoxin,sqk.butyl_phenol*/
|
|
|
@@ -1862,7 +1941,7 @@
|
|
1862
|
1941
|
and sqk.check_result = #{checkResult}
|
|
1863
|
1942
|
</if>
|
|
1864
|
1943
|
</where>
|
|
1865
|
|
- GROUP BY sqk.id
|
|
|
1944
|
+ /*GROUP BY sqk.id*/
|
|
1866
|
1945
|
order by sqk.id desc
|
|
1867
|
1946
|
</select>
|
|
1868
|
1947
|
|
|
|
@@ -2004,7 +2083,14 @@
|
|
2004
|
2083
|
and bswd.type = "notice"
|
|
2005
|
2084
|
</if>
|
|
2006
|
2085
|
</where>
|
|
2007
|
|
- GROUP BY sqk.id,bswd.in_price
|
|
|
2086
|
+ GROUP BY sqk.id,bswd.in_price, sqk.house_id, sqk.warehouse_id,
|
|
|
2087
|
+ bs.storeHouse_name,
|
|
|
2088
|
+ bs.keeping_way,
|
|
|
2089
|
+ bs.grain_heigth,
|
|
|
2090
|
+ bs.bin_volume,
|
|
|
2091
|
+ bs.depot_name,
|
|
|
2092
|
+ bw.warehouse_name,
|
|
|
2093
|
+ bswd.id
|
|
2008
|
2094
|
order by sqk.id desc
|
|
2009
|
2095
|
</select>
|
|
2010
|
2096
|
|