|
|
@@ -13,6 +13,7 @@
|
|
13
|
13
|
<result column="sub_type_detailed" property="subTypeDetailed" jdbcType="INTEGER" />
|
|
14
|
14
|
<result column="check_time" property="checkTime" jdbcType="TIMESTAMP" />
|
|
15
|
15
|
<result column="check_result" property="checkResult" jdbcType="VARCHAR" />
|
|
|
16
|
+ <result column="checker" property="checker" jdbcType="VARCHAR" />
|
|
16
|
17
|
<result column="level" property="level" jdbcType="INTEGER" />
|
|
17
|
18
|
<result column="capacity" property="capacity" jdbcType="VARCHAR" />
|
|
18
|
19
|
<result column="water" property="water" jdbcType="VARCHAR" />
|
|
|
@@ -151,9 +152,9 @@
|
|
151
|
152
|
</sql>
|
|
152
|
153
|
<sql id="Base_Column_List" >
|
|
153
|
154
|
id, agent_id, agent_depot_id, tank_id, storehouse_id, warehouse_id, type, sub_type,
|
|
154
|
|
- sub_type_detailed, check_time, check_result, level, capacity, water, impurity, mineral,
|
|
155
|
|
- badpart, colorsmell, keeper_advices, keeper_advices_time, keeper_advices_paint, chief_advices,
|
|
156
|
|
- chief_advices_time, chiet_advices_paint, vice_manager_advices, vice_manager_advices_time,
|
|
|
155
|
+ sub_type_detailed, check_time, check_result, checker, level, capacity, water, impurity,
|
|
|
156
|
+ mineral, badpart, colorsmell, keeper_advices, keeper_advices_time, keeper_advices_paint,
|
|
|
157
|
+ chief_advices, chief_advices_time, chiet_advices_paint, vice_manager_advices, vice_manager_advices_time,
|
|
157
|
158
|
vice_manager_advices_paint, manager_advices, manager_advices_time, manager_advices_paint,
|
|
158
|
159
|
improve_result, improve_time, improve_paint, is_firstchecklevel_right, accept_unite,
|
|
159
|
160
|
input_time, number, location, keeper, harvest_time, goodpart, chooser, choose_time,
|
|
|
@@ -196,18 +197,18 @@
|
|
196
|
197
|
<include refid="Example_Where_Clause" />
|
|
197
|
198
|
</if>
|
|
198
|
199
|
</delete>
|
|
199
|
|
- <insert id="insert" useGeneratedKeys="true" keyProperty="id" parameterType="com.chinaitop.depot.agent.quality.model.BusinessAgentQuality">
|
|
|
200
|
+ <insert id="insert" useGeneratedKeys="true" keyProperty="id" parameterType="com.chinaitop.depot.agent.quality.model.BusinessAgentQuality" >
|
|
200
|
201
|
insert into business_agent_quality (id, agent_id, agent_depot_id,
|
|
201
|
202
|
tank_id, storehouse_id, warehouse_id,
|
|
202
|
203
|
type, sub_type, sub_type_detailed,
|
|
203
|
|
- check_time, check_result, level,
|
|
204
|
|
- capacity, water, impurity,
|
|
205
|
|
- mineral, badpart, colorsmell,
|
|
206
|
|
- keeper_advices, keeper_advices_time, keeper_advices_paint,
|
|
207
|
|
- chief_advices, chief_advices_time, chiet_advices_paint,
|
|
208
|
|
- vice_manager_advices, vice_manager_advices_time,
|
|
209
|
|
- vice_manager_advices_paint, manager_advices,
|
|
210
|
|
- manager_advices_time, manager_advices_paint,
|
|
|
204
|
+ check_time, check_result, checker,
|
|
|
205
|
+ level, capacity, water,
|
|
|
206
|
+ impurity, mineral, badpart,
|
|
|
207
|
+ colorsmell, keeper_advices, keeper_advices_time,
|
|
|
208
|
+ keeper_advices_paint, chief_advices, chief_advices_time,
|
|
|
209
|
+ chiet_advices_paint, vice_manager_advices,
|
|
|
210
|
+ vice_manager_advices_time, vice_manager_advices_paint,
|
|
|
211
|
+ manager_advices, manager_advices_time, manager_advices_paint,
|
|
211
|
212
|
improve_result, improve_time, improve_paint,
|
|
212
|
213
|
is_firstchecklevel_right, accept_unite, input_time,
|
|
213
|
214
|
number, location, keeper,
|
|
|
@@ -231,14 +232,14 @@
|
|
231
|
232
|
values (#{id,jdbcType=INTEGER}, #{agentId,jdbcType=INTEGER}, #{agentDepotId,jdbcType=INTEGER},
|
|
232
|
233
|
#{tankId,jdbcType=VARCHAR}, #{storehouseId,jdbcType=INTEGER}, #{warehouseId,jdbcType=INTEGER},
|
|
233
|
234
|
#{type,jdbcType=VARCHAR}, #{subType,jdbcType=INTEGER}, #{subTypeDetailed,jdbcType=INTEGER},
|
|
234
|
|
- #{checkTime,jdbcType=TIMESTAMP}, #{checkResult,jdbcType=VARCHAR}, #{level,jdbcType=INTEGER},
|
|
235
|
|
- #{capacity,jdbcType=VARCHAR}, #{water,jdbcType=VARCHAR}, #{impurity,jdbcType=VARCHAR},
|
|
236
|
|
- #{mineral,jdbcType=VARCHAR}, #{badpart,jdbcType=VARCHAR}, #{colorsmell,jdbcType=VARCHAR},
|
|
237
|
|
- #{keeperAdvices,jdbcType=VARCHAR}, #{keeperAdvicesTime,jdbcType=VARCHAR}, #{keeperAdvicesPaint,jdbcType=VARCHAR},
|
|
238
|
|
- #{chiefAdvices,jdbcType=VARCHAR}, #{chiefAdvicesTime,jdbcType=TIMESTAMP}, #{chietAdvicesPaint,jdbcType=VARCHAR},
|
|
239
|
|
- #{viceManagerAdvices,jdbcType=VARCHAR}, #{viceManagerAdvicesTime,jdbcType=TIMESTAMP},
|
|
240
|
|
- #{viceManagerAdvicesPaint,jdbcType=VARCHAR}, #{managerAdvices,jdbcType=VARCHAR},
|
|
241
|
|
- #{managerAdvicesTime,jdbcType=TIMESTAMP}, #{managerAdvicesPaint,jdbcType=VARCHAR},
|
|
|
235
|
+ #{checkTime,jdbcType=TIMESTAMP}, #{checkResult,jdbcType=VARCHAR}, #{checker,jdbcType=VARCHAR},
|
|
|
236
|
+ #{level,jdbcType=INTEGER}, #{capacity,jdbcType=VARCHAR}, #{water,jdbcType=VARCHAR},
|
|
|
237
|
+ #{impurity,jdbcType=VARCHAR}, #{mineral,jdbcType=VARCHAR}, #{badpart,jdbcType=VARCHAR},
|
|
|
238
|
+ #{colorsmell,jdbcType=VARCHAR}, #{keeperAdvices,jdbcType=VARCHAR}, #{keeperAdvicesTime,jdbcType=VARCHAR},
|
|
|
239
|
+ #{keeperAdvicesPaint,jdbcType=VARCHAR}, #{chiefAdvices,jdbcType=VARCHAR}, #{chiefAdvicesTime,jdbcType=TIMESTAMP},
|
|
|
240
|
+ #{chietAdvicesPaint,jdbcType=VARCHAR}, #{viceManagerAdvices,jdbcType=VARCHAR},
|
|
|
241
|
+ #{viceManagerAdvicesTime,jdbcType=TIMESTAMP}, #{viceManagerAdvicesPaint,jdbcType=VARCHAR},
|
|
|
242
|
+ #{managerAdvices,jdbcType=VARCHAR}, #{managerAdvicesTime,jdbcType=TIMESTAMP}, #{managerAdvicesPaint,jdbcType=VARCHAR},
|
|
242
|
243
|
#{improveResult,jdbcType=VARCHAR}, #{improveTime,jdbcType=TIMESTAMP}, #{improvePaint,jdbcType=VARCHAR},
|
|
243
|
244
|
#{isFirstchecklevelRight,jdbcType=VARCHAR}, #{acceptUnite,jdbcType=VARCHAR}, #{inputTime,jdbcType=TIMESTAMP},
|
|
244
|
245
|
#{number,jdbcType=VARCHAR}, #{location,jdbcType=VARCHAR}, #{keeper,jdbcType=VARCHAR},
|
|
|
@@ -296,6 +297,9 @@
|
|
296
|
297
|
<if test="checkResult != null" >
|
|
297
|
298
|
check_result,
|
|
298
|
299
|
</if>
|
|
|
300
|
+ <if test="checker != null" >
|
|
|
301
|
+ checker,
|
|
|
302
|
+ </if>
|
|
299
|
303
|
<if test="level != null" >
|
|
300
|
304
|
level,
|
|
301
|
305
|
</if>
|
|
|
@@ -562,6 +566,9 @@
|
|
562
|
566
|
<if test="checkResult != null" >
|
|
563
|
567
|
#{checkResult,jdbcType=VARCHAR},
|
|
564
|
568
|
</if>
|
|
|
569
|
+ <if test="checker != null" >
|
|
|
570
|
+ #{checker,jdbcType=VARCHAR},
|
|
|
571
|
+ </if>
|
|
565
|
572
|
<if test="level != null" >
|
|
566
|
573
|
#{level,jdbcType=INTEGER},
|
|
567
|
574
|
</if>
|
|
|
@@ -837,6 +844,9 @@
|
|
837
|
844
|
<if test="record.checkResult != null" >
|
|
838
|
845
|
check_result = #{record.checkResult,jdbcType=VARCHAR},
|
|
839
|
846
|
</if>
|
|
|
847
|
+ <if test="record.checker != null" >
|
|
|
848
|
+ checker = #{record.checker,jdbcType=VARCHAR},
|
|
|
849
|
+ </if>
|
|
840
|
850
|
<if test="record.level != null" >
|
|
841
|
851
|
level = #{record.level,jdbcType=INTEGER},
|
|
842
|
852
|
</if>
|
|
|
@@ -1086,6 +1096,7 @@
|
|
1086
|
1096
|
sub_type_detailed = #{record.subTypeDetailed,jdbcType=INTEGER},
|
|
1087
|
1097
|
check_time = #{record.checkTime,jdbcType=TIMESTAMP},
|
|
1088
|
1098
|
check_result = #{record.checkResult,jdbcType=VARCHAR},
|
|
|
1099
|
+ checker = #{record.checker,jdbcType=VARCHAR},
|
|
1089
|
1100
|
level = #{record.level,jdbcType=INTEGER},
|
|
1090
|
1101
|
capacity = #{record.capacity,jdbcType=VARCHAR},
|
|
1091
|
1102
|
water = #{record.water,jdbcType=VARCHAR},
|
|
|
@@ -1200,6 +1211,9 @@
|
|
1200
|
1211
|
<if test="checkResult != null" >
|
|
1201
|
1212
|
check_result = #{checkResult,jdbcType=VARCHAR},
|
|
1202
|
1213
|
</if>
|
|
|
1214
|
+ <if test="checker != null" >
|
|
|
1215
|
+ checker = #{checker,jdbcType=VARCHAR},
|
|
|
1216
|
+ </if>
|
|
1203
|
1217
|
<if test="level != null" >
|
|
1204
|
1218
|
level = #{level,jdbcType=INTEGER},
|
|
1205
|
1219
|
</if>
|
|
|
@@ -1446,6 +1460,7 @@
|
|
1446
|
1460
|
sub_type_detailed = #{subTypeDetailed,jdbcType=INTEGER},
|
|
1447
|
1461
|
check_time = #{checkTime,jdbcType=TIMESTAMP},
|
|
1448
|
1462
|
check_result = #{checkResult,jdbcType=VARCHAR},
|
|
|
1463
|
+ checker = #{checker,jdbcType=VARCHAR},
|
|
1449
|
1464
|
level = #{level,jdbcType=INTEGER},
|
|
1450
|
1465
|
capacity = #{capacity,jdbcType=VARCHAR},
|
|
1451
|
1466
|
water = #{water,jdbcType=VARCHAR},
|
|
|
@@ -1632,7 +1647,7 @@
|
|
1632
|
1647
|
sqk.seal_status, sqk.auth_code, sqk.org_id, sqk.history_status,
|
|
1633
|
1648
|
sqk.intermixing_rate,sqk.smelltaste,sqk.transparency,sqk.peroxide_value,
|
|
1634
|
1649
|
sqk.smoke_point,sqk.reeze_test,sqk.residual_solvent,sqk.lead,sqk.total_arsenic,sqk.aflatoxin,sqk.butyl_phenol,
|
|
1635
|
|
- sqk.updatetime
|
|
|
1650
|
+ sqk.updatetime,sqk.tank_id
|
|
1636
|
1651
|
<!--云南新增的字段,先注释掉方便调试-->
|
|
1637
|
1652
|
/*, sqk.intermixing_rate,sqk.smelltaste,sqk.transparency,sqk.peroxide_value,
|
|
1638
|
1653
|
sqk.smoke_point,sqk.reeze_test,sqk.residual_solvent,sqk.lead,sqk.total_arsenic,sqk.aflatoxin,sqk.butyl_phenol*/
|