|
|
@@ -18,6 +18,8 @@
|
|
18
|
18
|
<result column="remark" property="remark" jdbcType="VARCHAR" />
|
|
19
|
19
|
<result column="input_id" property="inputId" jdbcType="INTEGER" />
|
|
20
|
20
|
<result column="org_id" property="orgId" jdbcType="INTEGER" />
|
|
|
21
|
+ <result column="commit_people" property="commitPeople" jdbcType="VARCHAR" />
|
|
|
22
|
+ <result column="commit_time" property="commitTime" jdbcType="TIMESTAMP" />
|
|
21
|
23
|
</resultMap>
|
|
22
|
24
|
<sql id="Example_Where_Clause" >
|
|
23
|
25
|
<where >
|
|
|
@@ -79,7 +81,7 @@
|
|
79
|
81
|
</sql>
|
|
80
|
82
|
<sql id="Base_Column_List" >
|
|
81
|
83
|
id, device_type, get_time, device_name, model, get_count, back_count, book_keeper,
|
|
82
|
|
- handler, house_id, number, collator, use_count, remark, input_id, org_id
|
|
|
84
|
+ handler, house_id, number, collator, use_count, remark, input_id, org_id, commit_people, commit_time
|
|
83
|
85
|
</sql>
|
|
84
|
86
|
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.device.model.StorageDevicegetExample" >
|
|
85
|
87
|
select
|
|
|
@@ -117,13 +119,14 @@
|
|
117
|
119
|
back_count, book_keeper, handler,
|
|
118
|
120
|
house_id, number, collator,
|
|
119
|
121
|
use_count, remark, input_id,
|
|
120
|
|
- org_id)
|
|
|
122
|
+ org_id, commit_people, commit_time)
|
|
121
|
123
|
values (SEQ_STORAGE_DEVICEGET.nextVal, #{deviceType,jdbcType=INTEGER}, #{getTime,jdbcType=TIMESTAMP},
|
|
122
|
124
|
#{deviceName,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{getCount,jdbcType=INTEGER},
|
|
123
|
125
|
#{backCount,jdbcType=INTEGER}, #{bookKeeper,jdbcType=VARCHAR}, #{handler,jdbcType=VARCHAR},
|
|
124
|
126
|
#{houseId,jdbcType=INTEGER}, #{number,jdbcType=VARCHAR}, #{collator,jdbcType=VARCHAR},
|
|
125
|
127
|
#{useCount,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR}, #{inputId,jdbcType=INTEGER},
|
|
126
|
|
- #{orgId,jdbcType=INTEGER})
|
|
|
128
|
+ #{orgId,jdbcType=INTEGER}, #{commitPeople,jdbcType=VARCHAR}, #{commitTime,jdbcType=TIMESTAMP}
|
|
|
129
|
+ )
|
|
127
|
130
|
</insert>
|
|
128
|
131
|
<insert id="insertSelective" parameterType="com.chinaitop.depot.device.model.StorageDeviceget" >
|
|
129
|
132
|
insert into storage_deviceget
|
|
|
@@ -176,6 +179,12 @@
|
|
176
|
179
|
<if test="orgId != null" >
|
|
177
|
180
|
org_id,
|
|
178
|
181
|
</if>
|
|
|
182
|
+ <if test="commitPeople != null" >
|
|
|
183
|
+ commit_people,
|
|
|
184
|
+ </if>
|
|
|
185
|
+ <if test="commitTime != null" >
|
|
|
186
|
+ commit_time,
|
|
|
187
|
+ </if>
|
|
179
|
188
|
</trim>
|
|
180
|
189
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
181
|
190
|
<if test="id != null" >
|
|
|
@@ -226,6 +235,12 @@
|
|
226
|
235
|
<if test="orgId != null" >
|
|
227
|
236
|
#{orgId,jdbcType=INTEGER},
|
|
228
|
237
|
</if>
|
|
|
238
|
+ <if test="commitPeople != null" >
|
|
|
239
|
+ #{commitPeople,jdbcType=VARCHAR},
|
|
|
240
|
+ </if>
|
|
|
241
|
+ <if test="commitTime != null" >
|
|
|
242
|
+ #{commitTime,jdbcType=TIMESTAMP},
|
|
|
243
|
+ </if>
|
|
229
|
244
|
</trim>
|
|
230
|
245
|
</insert>
|
|
231
|
246
|
<select id="countByExample" parameterType="com.chinaitop.depot.device.model.StorageDevicegetExample" resultType="java.lang.Integer" >
|
|
|
@@ -285,6 +300,12 @@
|
|
285
|
300
|
<if test="record.orgId != null" >
|
|
286
|
301
|
org_id = #{record.orgId,jdbcType=INTEGER},
|
|
287
|
302
|
</if>
|
|
|
303
|
+ <if test="record.commitPeople != null" >
|
|
|
304
|
+ commit_people = #{record.commitPeople,jdbcType=VARCHAR},
|
|
|
305
|
+ </if>
|
|
|
306
|
+ <if test="record.commitTime != null" >
|
|
|
307
|
+ commit_time = #{record.commitTime,jdbcType=TIMESTAMP},
|
|
|
308
|
+ </if>
|
|
288
|
309
|
</set>
|
|
289
|
310
|
<if test="_parameter != null" >
|
|
290
|
311
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -307,7 +328,9 @@
|
|
307
|
328
|
use_count = #{record.useCount,jdbcType=INTEGER},
|
|
308
|
329
|
remark = #{record.remark,jdbcType=VARCHAR},
|
|
309
|
330
|
input_id = #{record.inputId,jdbcType=INTEGER},
|
|
310
|
|
- org_id = #{record.orgId,jdbcType=INTEGER}
|
|
|
331
|
+ org_id = #{record.orgId,jdbcType=INTEGER},
|
|
|
332
|
+ commit_people = #{record.commitPeople,jdbcType=VARCHAR},
|
|
|
333
|
+ commit_time = #{record.commitTime,jdbcType=TIMESTAMP}
|
|
311
|
334
|
<if test="_parameter != null" >
|
|
312
|
335
|
<include refid="Update_By_Example_Where_Clause" />
|
|
313
|
336
|
</if>
|
|
|
@@ -360,6 +383,12 @@
|
|
360
|
383
|
<if test="orgId != null" >
|
|
361
|
384
|
org_id = #{orgId,jdbcType=INTEGER},
|
|
362
|
385
|
</if>
|
|
|
386
|
+ <if test="commitPeople != null" >
|
|
|
387
|
+ commit_people = #{commitPeople,jdbcType=VARCHAR},
|
|
|
388
|
+ </if>
|
|
|
389
|
+ <if test="commitTime != null" >
|
|
|
390
|
+ commit_time = #{commitTime,jdbcType=TIMESTAMP},
|
|
|
391
|
+ </if>
|
|
363
|
392
|
</set>
|
|
364
|
393
|
where id = #{id,jdbcType=INTEGER}
|
|
365
|
394
|
</update>
|
|
|
@@ -379,7 +408,9 @@
|
|
379
|
408
|
use_count = #{useCount,jdbcType=INTEGER},
|
|
380
|
409
|
remark = #{remark,jdbcType=VARCHAR},
|
|
381
|
410
|
input_id = #{inputId,jdbcType=INTEGER},
|
|
382
|
|
- org_id = #{orgId,jdbcType=INTEGER}
|
|
|
411
|
+ org_id = #{orgId,jdbcType=INTEGER},
|
|
|
412
|
+ commit_people = #{commitPeople,jdbcType=VARCHAR},
|
|
|
413
|
+ commit_time = #{commitTime,jdbcType=TIMESTAMP}
|
|
383
|
414
|
where id = #{id,jdbcType=INTEGER}
|
|
384
|
415
|
</update>
|
|
385
|
416
|
|