|
|
@@ -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" />
|
|
|
@@ -71,7 +72,7 @@
|
|
71
|
72
|
</where>
|
|
72
|
73
|
</sql>
|
|
73
|
74
|
<sql id="Base_Column_List" >
|
|
74
|
|
- id, createdate, updatename, updatedate, qc_quality_inspection_id, inspection_item_id,
|
|
|
75
|
+ id, createdate, updatename, updatedate, qc_quality_inspection_id, parent_inspection_item_id, inspection_item_id,
|
|
75
|
76
|
inspection_value, single_conclusion, inspection_method
|
|
76
|
77
|
</sql>
|
|
77
|
78
|
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.qualityControl.model.BusinessQcQualityInspectionItemExample" >
|
|
|
@@ -89,7 +90,7 @@
|
|
89
|
90
|
</if>
|
|
90
|
91
|
</select>
|
|
91
|
92
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
92
|
|
- select
|
|
|
93
|
+ select
|
|
93
|
94
|
<include refid="Base_Column_List" />
|
|
94
|
95
|
from business_qc_quality_inspection_item
|
|
95
|
96
|
where id = #{id,jdbcType=INTEGER}
|
|
|
@@ -105,12 +106,12 @@
|
|
105
|
106
|
</if>
|
|
106
|
107
|
</delete>
|
|
107
|
108
|
<insert id="insert" parameterType="com.chinaitop.depot.qualityControl.model.BusinessQcQualityInspectionItem" >
|
|
108
|
|
- insert into business_qc_quality_inspection_item (id, createdate, updatename,
|
|
109
|
|
- updatedate, qc_quality_inspection_id, inspection_item_id,
|
|
|
109
|
+ insert into business_qc_quality_inspection_item (id, createdate, updatename,
|
|
|
110
|
+ updatedate, qc_quality_inspection_id, parent_inspection_item_id, inspection_item_id,
|
|
110
|
111
|
inspection_value, single_conclusion, inspection_method
|
|
111
|
112
|
)
|
|
112
|
|
- values (#{id,jdbcType=INTEGER}, #{createdate,jdbcType=TIMESTAMP}, #{updatename,jdbcType=VARCHAR},
|
|
113
|
|
- #{updatedate,jdbcType=TIMESTAMP}, #{qcQualityInspectionId,jdbcType=INTEGER}, #{inspectionItemId,jdbcType=INTEGER},
|
|
|
113
|
+ values (#{id,jdbcType=INTEGER}, #{createdate,jdbcType=TIMESTAMP}, #{updatename,jdbcType=VARCHAR},
|
|
|
114
|
+ #{updatedate,jdbcType=TIMESTAMP}, #{qcQualityInspectionId,jdbcType=INTEGER}, #{parentInspectionItemId,jdbcType=INTEGER}, #{inspectionItemId,jdbcType=INTEGER},
|
|
114
|
115
|
#{inspectionValue,jdbcType=VARCHAR}, #{singleConclusion,jdbcType=VARCHAR}, #{inspectionMethod,jdbcType=VARCHAR}
|
|
115
|
116
|
)
|
|
116
|
117
|
</insert>
|
|
|
@@ -132,6 +133,9 @@
|
|
132
|
133
|
<if test="qcQualityInspectionId != null" >
|
|
133
|
134
|
qc_quality_inspection_id,
|
|
134
|
135
|
</if>
|
|
|
136
|
+ <if test="parentInspectionItemId != null" >
|
|
|
137
|
+ parent_inspection_item_id,
|
|
|
138
|
+ </if>
|
|
135
|
139
|
<if test="inspectionItemId != null" >
|
|
136
|
140
|
inspection_item_id,
|
|
137
|
141
|
</if>
|
|
|
@@ -199,6 +203,9 @@
|
|
199
|
203
|
<if test="record.qcQualityInspectionId != null" >
|
|
200
|
204
|
qc_quality_inspection_id = #{record.qcQualityInspectionId,jdbcType=INTEGER},
|
|
201
|
205
|
</if>
|
|
|
206
|
+ <if test="record.parentInspectionItemId != null" >
|
|
|
207
|
+ parent_inspection_item_id = #{record.parentInspectionItemId,jdbcType=INTEGER},
|
|
|
208
|
+ </if>
|
|
202
|
209
|
<if test="record.inspectionItemId != null" >
|
|
203
|
210
|
inspection_item_id = #{record.inspectionItemId,jdbcType=INTEGER},
|
|
204
|
211
|
</if>
|
|
|
@@ -219,14 +226,15 @@
|
|
219
|
226
|
<update id="updateByExample" parameterType="map" >
|
|
220
|
227
|
update business_qc_quality_inspection_item
|
|
221
|
228
|
set id = #{record.id,jdbcType=INTEGER},
|
|
222
|
|
- createdate = #{record.createdate,jdbcType=TIMESTAMP},
|
|
223
|
|
- updatename = #{record.updatename,jdbcType=VARCHAR},
|
|
224
|
|
- updatedate = #{record.updatedate,jdbcType=TIMESTAMP},
|
|
225
|
|
- qc_quality_inspection_id = #{record.qcQualityInspectionId,jdbcType=INTEGER},
|
|
226
|
|
- inspection_item_id = #{record.inspectionItemId,jdbcType=INTEGER},
|
|
227
|
|
- inspection_value = #{record.inspectionValue,jdbcType=VARCHAR},
|
|
228
|
|
- single_conclusion = #{record.singleConclusion,jdbcType=VARCHAR},
|
|
229
|
|
- inspection_method = #{record.inspectionMethod,jdbcType=VARCHAR}
|
|
|
229
|
+ createdate = #{record.createdate,jdbcType=TIMESTAMP},
|
|
|
230
|
+ updatename = #{record.updatename,jdbcType=VARCHAR},
|
|
|
231
|
+ updatedate = #{record.updatedate,jdbcType=TIMESTAMP},
|
|
|
232
|
+ qc_quality_inspection_id = #{record.qcQualityInspectionId,jdbcType=INTEGER},
|
|
|
233
|
+ parent_inspection_item_id = #{record.parentInspectionItemId,jdbcType=INTEGER},
|
|
|
234
|
+ inspection_item_id = #{record.inspectionItemId,jdbcType=INTEGER},
|
|
|
235
|
+ inspection_value = #{record.inspectionValue,jdbcType=VARCHAR},
|
|
|
236
|
+ single_conclusion = #{record.singleConclusion,jdbcType=VARCHAR},
|
|
|
237
|
+ inspection_method = #{record.inspectionMethod,jdbcType=VARCHAR}
|
|
230
|
238
|
<if test="_parameter != null" >
|
|
231
|
239
|
<include refid="Update_By_Example_Where_Clause" />
|
|
232
|
240
|
</if>
|
|
|
@@ -246,6 +254,9 @@
|
|
246
|
254
|
<if test="qcQualityInspectionId != null" >
|
|
247
|
255
|
qc_quality_inspection_id = #{qcQualityInspectionId,jdbcType=INTEGER},
|
|
248
|
256
|
</if>
|
|
|
257
|
+ <if test="qcQualityInspectionId != null" >
|
|
|
258
|
+ parent_inspection_item_id = #{parentInspectionItemId,jdbcType=INTEGER},
|
|
|
259
|
+ </if>
|
|
249
|
260
|
<if test="inspectionItemId != null" >
|
|
250
|
261
|
inspection_item_id = #{inspectionItemId,jdbcType=INTEGER},
|
|
251
|
262
|
</if>
|
|
|
@@ -267,6 +278,7 @@
|
|
267
|
278
|
updatename = #{updatename,jdbcType=VARCHAR},
|
|
268
|
279
|
updatedate = #{updatedate,jdbcType=TIMESTAMP},
|
|
269
|
280
|
qc_quality_inspection_id = #{qcQualityInspectionId,jdbcType=INTEGER},
|
|
|
281
|
+ parent_inspection_item_id = #{parentInspectionItemId,jdbcType=INTEGER},
|
|
270
|
282
|
inspection_item_id = #{inspectionItemId,jdbcType=INTEGER},
|
|
271
|
283
|
inspection_value = #{inspectionValue,jdbcType=VARCHAR},
|
|
272
|
284
|
single_conclusion = #{singleConclusion,jdbcType=VARCHAR},
|