|
|
@@ -7,6 +7,7 @@
|
|
7
|
7
|
<result column="updatename" property="updatename" jdbcType="VARCHAR" />
|
|
8
|
8
|
<result column="updatedate" property="updatedate" jdbcType="TIMESTAMP" />
|
|
9
|
9
|
<result column="qc_quality_inspection_id" property="qcQualityInspectionId" jdbcType="INTEGER" />
|
|
|
10
|
+ <result column="parent_inspection_item_id" property="parentInspectionItemId" jdbcType="INTEGER" />
|
|
10
|
11
|
<result column="inspection_item_id" property="inspectionItemId" jdbcType="INTEGER" />
|
|
11
|
12
|
<result column="inspection_value" property="inspectionValue" jdbcType="VARCHAR" />
|
|
12
|
13
|
<result column="single_conclusion" property="singleConclusion" jdbcType="VARCHAR" />
|
|
|
@@ -72,7 +73,7 @@
|
|
72
|
73
|
</where>
|
|
73
|
74
|
</sql>
|
|
74
|
75
|
<sql id="Base_Column_List" >
|
|
75
|
|
- id, createdate, updatename, updatedate, qc_quality_inspection_id, inspection_item_id,
|
|
|
76
|
+ id, createdate, updatename, updatedate, qc_quality_inspection_id, parent_inspection_item_id, inspection_item_id,
|
|
76
|
77
|
inspection_value, single_conclusion, inspection_method
|
|
77
|
78
|
</sql>
|
|
78
|
79
|
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.qualityControl.model.BusinessQcQualityInspectionItemExample" >
|
|
|
@@ -90,7 +91,7 @@
|
|
90
|
91
|
</if>
|
|
91
|
92
|
</select>
|
|
92
|
93
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
93
|
|
- select
|
|
|
94
|
+ select
|
|
94
|
95
|
<include refid="Base_Column_List" />
|
|
95
|
96
|
from business_qc_quality_inspection_item
|
|
96
|
97
|
where id = #{id,jdbcType=INTEGER}
|
|
|
@@ -106,12 +107,12 @@
|
|
106
|
107
|
</if>
|
|
107
|
108
|
</delete>
|
|
108
|
109
|
<insert id="insert" parameterType="com.chinaitop.depot.qualityControl.model.BusinessQcQualityInspectionItem" >
|
|
109
|
|
- insert into business_qc_quality_inspection_item (id, createdate, updatename,
|
|
110
|
|
- updatedate, qc_quality_inspection_id, inspection_item_id,
|
|
|
110
|
+ insert into business_qc_quality_inspection_item (id, createdate, updatename,
|
|
|
111
|
+ updatedate, qc_quality_inspection_id, parent_inspection_item_id, inspection_item_id,
|
|
111
|
112
|
inspection_value, single_conclusion, inspection_method
|
|
112
|
113
|
)
|
|
113
|
|
- values (#{id,jdbcType=INTEGER}, #{createdate,jdbcType=TIMESTAMP}, #{updatename,jdbcType=VARCHAR},
|
|
114
|
|
- #{updatedate,jdbcType=TIMESTAMP}, #{qcQualityInspectionId,jdbcType=INTEGER}, #{inspectionItemId,jdbcType=INTEGER},
|
|
|
114
|
+ values (#{id,jdbcType=INTEGER}, #{createdate,jdbcType=TIMESTAMP}, #{updatename,jdbcType=VARCHAR},
|
|
|
115
|
+ #{updatedate,jdbcType=TIMESTAMP}, #{qcQualityInspectionId,jdbcType=INTEGER}, #{parentInspectionItemId,jdbcType=INTEGER}, #{inspectionItemId,jdbcType=INTEGER},
|
|
115
|
116
|
#{inspectionValue,jdbcType=VARCHAR}, #{singleConclusion,jdbcType=VARCHAR}, #{inspectionMethod,jdbcType=VARCHAR}
|
|
116
|
117
|
)
|
|
117
|
118
|
</insert>
|
|
|
@@ -133,6 +134,9 @@
|
|
133
|
134
|
<if test="qcQualityInspectionId != null" >
|
|
134
|
135
|
qc_quality_inspection_id,
|
|
135
|
136
|
</if>
|
|
|
137
|
+ <if test="parentInspectionItemId != null" >
|
|
|
138
|
+ parent_inspection_item_id,
|
|
|
139
|
+ </if>
|
|
136
|
140
|
<if test="inspectionItemId != null" >
|
|
137
|
141
|
inspection_item_id,
|
|
138
|
142
|
</if>
|
|
|
@@ -219,6 +223,9 @@
|
|
219
|
223
|
<if test="record.qcQualityInspectionId != null" >
|
|
220
|
224
|
qc_quality_inspection_id = #{record.qcQualityInspectionId,jdbcType=INTEGER},
|
|
221
|
225
|
</if>
|
|
|
226
|
+ <if test="record.parentInspectionItemId != null" >
|
|
|
227
|
+ parent_inspection_item_id = #{record.parentInspectionItemId,jdbcType=INTEGER},
|
|
|
228
|
+ </if>
|
|
222
|
229
|
<if test="record.inspectionItemId != null" >
|
|
223
|
230
|
inspection_item_id = #{record.inspectionItemId,jdbcType=INTEGER},
|
|
224
|
231
|
</if>
|
|
|
@@ -239,14 +246,15 @@
|
|
239
|
246
|
<update id="updateByExample" parameterType="map" >
|
|
240
|
247
|
update business_qc_quality_inspection_item
|
|
241
|
248
|
set id = #{record.id,jdbcType=INTEGER},
|
|
242
|
|
- createdate = #{record.createdate,jdbcType=TIMESTAMP},
|
|
243
|
|
- updatename = #{record.updatename,jdbcType=VARCHAR},
|
|
244
|
|
- updatedate = #{record.updatedate,jdbcType=TIMESTAMP},
|
|
245
|
|
- qc_quality_inspection_id = #{record.qcQualityInspectionId,jdbcType=INTEGER},
|
|
246
|
|
- inspection_item_id = #{record.inspectionItemId,jdbcType=INTEGER},
|
|
247
|
|
- inspection_value = #{record.inspectionValue,jdbcType=VARCHAR},
|
|
248
|
|
- single_conclusion = #{record.singleConclusion,jdbcType=VARCHAR},
|
|
249
|
|
- inspection_method = #{record.inspectionMethod,jdbcType=VARCHAR}
|
|
|
249
|
+ createdate = #{record.createdate,jdbcType=TIMESTAMP},
|
|
|
250
|
+ updatename = #{record.updatename,jdbcType=VARCHAR},
|
|
|
251
|
+ updatedate = #{record.updatedate,jdbcType=TIMESTAMP},
|
|
|
252
|
+ qc_quality_inspection_id = #{record.qcQualityInspectionId,jdbcType=INTEGER},
|
|
|
253
|
+ parent_inspection_item_id = #{record.parentInspectionItemId,jdbcType=INTEGER},
|
|
|
254
|
+ inspection_item_id = #{record.inspectionItemId,jdbcType=INTEGER},
|
|
|
255
|
+ inspection_value = #{record.inspectionValue,jdbcType=VARCHAR},
|
|
|
256
|
+ single_conclusion = #{record.singleConclusion,jdbcType=VARCHAR},
|
|
|
257
|
+ inspection_method = #{record.inspectionMethod,jdbcType=VARCHAR}
|
|
250
|
258
|
<if test="_parameter != null" >
|
|
251
|
259
|
<include refid="Update_By_Example_Where_Clause" />
|
|
252
|
260
|
</if>
|
|
|
@@ -266,6 +274,9 @@
|
|
266
|
274
|
<if test="qcQualityInspectionId != null" >
|
|
267
|
275
|
qc_quality_inspection_id = #{qcQualityInspectionId,jdbcType=INTEGER},
|
|
268
|
276
|
</if>
|
|
|
277
|
+ <if test="qcQualityInspectionId != null" >
|
|
|
278
|
+ parent_inspection_item_id = #{parentInspectionItemId,jdbcType=INTEGER},
|
|
|
279
|
+ </if>
|
|
269
|
280
|
<if test="inspectionItemId != null" >
|
|
270
|
281
|
inspection_item_id = #{inspectionItemId,jdbcType=INTEGER},
|
|
271
|
282
|
</if>
|
|
|
@@ -287,6 +298,7 @@
|
|
287
|
298
|
updatename = #{updatename,jdbcType=VARCHAR},
|
|
288
|
299
|
updatedate = #{updatedate,jdbcType=TIMESTAMP},
|
|
289
|
300
|
qc_quality_inspection_id = #{qcQualityInspectionId,jdbcType=INTEGER},
|
|
|
301
|
+ parent_inspection_item_id = #{parentInspectionItemId,jdbcType=INTEGER},
|
|
290
|
302
|
inspection_item_id = #{inspectionItemId,jdbcType=INTEGER},
|
|
291
|
303
|
inspection_value = #{inspectionValue,jdbcType=VARCHAR},
|
|
292
|
304
|
single_conclusion = #{singleConclusion,jdbcType=VARCHAR},
|