|
|
@@ -13,6 +13,8 @@
|
|
13
|
13
|
<result column="input_time" property="inputTime" jdbcType="TIMESTAMP" />
|
|
14
|
14
|
<result column="edit_time" property="editTime" jdbcType="TIMESTAMP" />
|
|
15
|
15
|
<result column="data_status" property="dataStatus" jdbcType="VARCHAR" />
|
|
|
16
|
+ <result column="commit_people" property="commitPeople" jdbcType="VARCHAR" />
|
|
|
17
|
+ <result column="commit_time" property="commitTime" jdbcType="TIMESTAMP" />
|
|
16
|
18
|
</resultMap>
|
|
17
|
19
|
<sql id="Example_Where_Clause" >
|
|
18
|
20
|
<where >
|
|
|
@@ -73,7 +75,7 @@
|
|
73
|
75
|
</where>
|
|
74
|
76
|
</sql>
|
|
75
|
77
|
<sql id="Base_Column_List" >
|
|
76
|
|
- id, org_id, house_id, ware_id, lspz, hy_date, hy_person, remark, input_time, edit_time, data_status
|
|
|
78
|
+ id, org_id, house_id, ware_id, lspz, hy_date, hy_person, remark, input_time, edit_time, data_status, commit_people, commit_time
|
|
77
|
79
|
</sql>
|
|
78
|
80
|
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.storage.model.StorageWaterCheckExample" >
|
|
79
|
81
|
select
|
|
|
@@ -109,11 +111,11 @@
|
|
109
|
111
|
insert into storage_water_check (id, org_id, house_id,
|
|
110
|
112
|
ware_id, lspz, hy_date,
|
|
111
|
113
|
hy_person, remark, input_time,
|
|
112
|
|
- edit_time, data_status)
|
|
|
114
|
+ edit_time, data_status, commit_people, commit_time)
|
|
113
|
115
|
values (#{id,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER}, #{houseId,jdbcType=INTEGER},
|
|
114
|
116
|
#{wareId,jdbcType=INTEGER}, #{lspz,jdbcType=INTEGER}, #{hyDate,jdbcType=TIMESTAMP},
|
|
115
|
117
|
#{hyPerson,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{inputTime,jdbcType=TIMESTAMP},
|
|
116
|
|
- #{editTime,jdbcType=TIMESTAMP},#{dataStatus,jdbcType=VARCHAR})
|
|
|
118
|
+ #{editTime,jdbcType=TIMESTAMP},#{dataStatus,jdbcType=VARCHAR}, #{commitPeople,jdbcType=VARCHAR}, #{commitTime,jdbcType=TIMESTAMP})
|
|
117
|
119
|
</insert>
|
|
118
|
120
|
<insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageWaterCheck" >
|
|
119
|
121
|
insert into storage_water_check
|
|
|
@@ -151,6 +153,12 @@
|
|
151
|
153
|
<if test="dataStatus != null">
|
|
152
|
154
|
data_status,
|
|
153
|
155
|
</if>
|
|
|
156
|
+ <if test="commitPeople != null">
|
|
|
157
|
+ commit_people,
|
|
|
158
|
+ </if>
|
|
|
159
|
+ <if test="commitTime != null">
|
|
|
160
|
+ commit_time,
|
|
|
161
|
+ </if>
|
|
154
|
162
|
</trim>
|
|
155
|
163
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
156
|
164
|
<if test="id != null" >
|
|
|
@@ -186,6 +194,12 @@
|
|
186
|
194
|
<if test="dataStatus != null">
|
|
187
|
195
|
#{dataStatus,jdbcType=VARCHAR},
|
|
188
|
196
|
</if>
|
|
|
197
|
+ <if test="commitPeople != null">
|
|
|
198
|
+ #{commitPeople,jdbcType=VARCHAR},
|
|
|
199
|
+ </if>
|
|
|
200
|
+ <if test="commitTime != null">
|
|
|
201
|
+ #{commitTime,jdbcType=TIMESTAMP},
|
|
|
202
|
+ </if>
|
|
189
|
203
|
</trim>
|
|
190
|
204
|
</insert>
|
|
191
|
205
|
<select id="countByExample" parameterType="com.chinaitop.depot.storage.model.StorageWaterCheckExample" resultType="java.lang.Integer" >
|
|
|
@@ -230,6 +244,12 @@
|
|
230
|
244
|
<if test="record.dataStatus != null" >
|
|
231
|
245
|
data_status = #{record.dataStatus,jdbcType=VARCHAR},
|
|
232
|
246
|
</if>
|
|
|
247
|
+ <if test="record.commitPeople != null">
|
|
|
248
|
+ commit_people = #{record.commitPeople,jdbcType=VARCHAR},
|
|
|
249
|
+ </if>
|
|
|
250
|
+ <if test="record.commitTime != null">
|
|
|
251
|
+ commit_time = #{record.commitTime,jdbcType=TIMESTAMP},
|
|
|
252
|
+ </if>
|
|
233
|
253
|
</set>
|
|
234
|
254
|
<if test="_parameter != null" >
|
|
235
|
255
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -247,7 +267,9 @@
|
|
247
|
267
|
remark = #{record.remark,jdbcType=VARCHAR},
|
|
248
|
268
|
input_time = #{record.inputTime,jdbcType=TIMESTAMP},
|
|
249
|
269
|
edit_time = #{record.editTime,jdbcType=TIMESTAMP},
|
|
250
|
|
- data_status = #{record.dataStatus,jdbcType=VARCHAR}
|
|
|
270
|
+ data_status = #{record.dataStatus,jdbcType=VARCHAR},
|
|
|
271
|
+ commit_people = #{commitPeople,jdbcType=VARCHAR},
|
|
|
272
|
+ commit_time = #{commitTime,jdbcType=TIMESTAMP}
|
|
251
|
273
|
<if test="_parameter != null" >
|
|
252
|
274
|
<include refid="Update_By_Example_Where_Clause" />
|
|
253
|
275
|
</if>
|
|
|
@@ -285,6 +307,12 @@
|
|
285
|
307
|
<if test="dataStatus != null" >
|
|
286
|
308
|
data_status = #{dataStatus,jdbcType=VARCHAR},
|
|
287
|
309
|
</if>
|
|
|
310
|
+ <if test="commitPeople != null">
|
|
|
311
|
+ commit_people = #{commitPeople,jdbcType=VARCHAR},
|
|
|
312
|
+ </if>
|
|
|
313
|
+ <if test="commitTime != null">
|
|
|
314
|
+ commit_time = #{commitTime,jdbcType=TIMESTAMP},
|
|
|
315
|
+ </if>
|
|
288
|
316
|
</set>
|
|
289
|
317
|
where id = #{id,jdbcType=VARCHAR}
|
|
290
|
318
|
</update>
|
|
|
@@ -299,7 +327,9 @@
|
|
299
|
327
|
remark = #{remark,jdbcType=VARCHAR},
|
|
300
|
328
|
input_time = #{inputTime,jdbcType=TIMESTAMP},
|
|
301
|
329
|
edit_time = #{editTime,jdbcType=TIMESTAMP},
|
|
302
|
|
- data_status = #{dataStatus,jdbcType=VARCHAR}
|
|
|
330
|
+ data_status = #{dataStatus,jdbcType=VARCHAR},
|
|
|
331
|
+ commit_people = #{commitPeople,jdbcType=VARCHAR},
|
|
|
332
|
+ commit_time = #{commitTime,jdbcType=TIMESTAMP}
|
|
303
|
333
|
where id = #{id,jdbcType=VARCHAR}
|
|
304
|
334
|
</update>
|
|
305
|
335
|
</mapper>
|