|
|
@@ -15,6 +15,7 @@
|
|
15
|
15
|
<result column="kcsl" property="kcsl" jdbcType="DECIMAL" />
|
|
16
|
16
|
<result column="input_time" property="inputTime" jdbcType="TIMESTAMP" />
|
|
17
|
17
|
<result column="hdsj" property="hdsj" jdbcType="TIMESTAMP" />
|
|
|
18
|
+ <result column="scny" property="scny" jdbcType="VARCHAR" />
|
|
18
|
19
|
</resultMap>
|
|
19
|
20
|
<sql id="Example_Where_Clause" >
|
|
20
|
21
|
<where >
|
|
|
@@ -75,7 +76,7 @@
|
|
75
|
76
|
</where>
|
|
76
|
77
|
</sql>
|
|
77
|
78
|
<sql id="Base_Column_List" >
|
|
78
|
|
- id, org_id, house_id, warehouse_id, lypz, lyxz, lydj, lycd, rksj, scrq, kcsl, input_time, hdsj
|
|
|
79
|
+ id, org_id, house_id, warehouse_id, lypz, lyxz, lydj, lycd, rksj, scrq, kcsl, input_time, hdsj, scny
|
|
79
|
80
|
</sql>
|
|
80
|
81
|
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.product.model.StorageProductKcslExample" >
|
|
81
|
82
|
select
|
|
|
@@ -111,13 +112,13 @@
|
|
111
|
112
|
insert into storage_product_kcsl (id, org_id, house_id,
|
|
112
|
113
|
warehouse_id, lypz, lyxz,
|
|
113
|
114
|
lydj, lycd, rksj,
|
|
114
|
|
- scrq, kcsl, input_time, hdsj
|
|
|
115
|
+ scrq, kcsl, input_time, hdsj, scny
|
|
115
|
116
|
)
|
|
116
|
117
|
values (#{id,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER}, #{houseId,jdbcType=INTEGER},
|
|
117
|
118
|
#{warehouseId,jdbcType=INTEGER}, #{lypz,jdbcType=INTEGER}, #{lyxz,jdbcType=INTEGER},
|
|
118
|
119
|
#{lydj,jdbcType=INTEGER}, #{lycd,jdbcType=INTEGER}, #{rksj,jdbcType=TIMESTAMP},
|
|
119
|
120
|
#{scrq,jdbcType=TIMESTAMP}, #{kcsl,jdbcType=DECIMAL}, #{inputTime,jdbcType=TIMESTAMP},
|
|
120
|
|
- #{hdsj,jdbcType=TIMESTAMP})
|
|
|
121
|
+ #{hdsj,jdbcType=TIMESTAMP}, #{scny,jdbcType=VARCHAR})
|
|
121
|
122
|
</insert>
|
|
122
|
123
|
<insert id="insertSelective" parameterType="com.chinaitop.depot.product.model.StorageProductKcsl" >
|
|
123
|
124
|
insert into storage_product_kcsl
|
|
|
@@ -161,6 +162,9 @@
|
|
161
|
162
|
<if test="hdsj != null">
|
|
162
|
163
|
hdsj,
|
|
163
|
164
|
</if>
|
|
|
165
|
+ <if test="scny != null">
|
|
|
166
|
+ scny,
|
|
|
167
|
+ </if>
|
|
164
|
168
|
</trim>
|
|
165
|
169
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
166
|
170
|
<if test="id != null" >
|
|
|
@@ -202,6 +206,9 @@
|
|
202
|
206
|
<if test="hdsj != null">
|
|
203
|
207
|
#{hdsj,jdbcType=TIMESTAMP},
|
|
204
|
208
|
</if>
|
|
|
209
|
+ <if test="scny != null">
|
|
|
210
|
+ #{scny,jdbcType=VARCHAR},
|
|
|
211
|
+ </if>
|
|
205
|
212
|
</trim>
|
|
206
|
213
|
</insert>
|
|
207
|
214
|
<select id="countByExample" parameterType="com.chinaitop.depot.product.model.StorageProductKcslExample" resultType="java.lang.Integer" >
|
|
|
@@ -252,6 +259,9 @@
|
|
252
|
259
|
<if test="record.hdsj != null">
|
|
253
|
260
|
hdsj = #{record.hdsj,jdbcType=TIMESTAMP},
|
|
254
|
261
|
</if>
|
|
|
262
|
+ <if test="record.scny != null">
|
|
|
263
|
+ scny = #{record.scny,jdbcType=VARCHAR},
|
|
|
264
|
+ </if>
|
|
255
|
265
|
</set>
|
|
256
|
266
|
<if test="_parameter != null" >
|
|
257
|
267
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -271,7 +281,8 @@
|
|
271
|
281
|
scrq = #{record.scrq,jdbcType=TIMESTAMP},
|
|
272
|
282
|
kcsl = #{record.kcsl,jdbcType=DECIMAL},
|
|
273
|
283
|
input_time = #{record.inputTime,jdbcType=TIMESTAMP},
|
|
274
|
|
- hdsj = #{record.hdsj,jdbcType=TIMESTAMP}
|
|
|
284
|
+ hdsj = #{record.hdsj,jdbcType=TIMESTAMP},
|
|
|
285
|
+ scny = #{record.scny,jdbcType=VARCHAR}
|
|
275
|
286
|
<if test="_parameter != null" >
|
|
276
|
287
|
<include refid="Update_By_Example_Where_Clause" />
|
|
277
|
288
|
</if>
|
|
|
@@ -315,6 +326,9 @@
|
|
315
|
326
|
<if test="hdsj != null">
|
|
316
|
327
|
hdsj = #{hdsj,jdbcType=TIMESTAMP},
|
|
317
|
328
|
</if>
|
|
|
329
|
+ <if test="scny != null">
|
|
|
330
|
+ scny = #{scny,jdbcType=VARCHAR},
|
|
|
331
|
+ </if>
|
|
318
|
332
|
</set>
|
|
319
|
333
|
where id = #{id,jdbcType=VARCHAR}
|
|
320
|
334
|
</update>
|
|
|
@@ -331,7 +345,8 @@
|
|
331
|
345
|
scrq = #{scrq,jdbcType=TIMESTAMP},
|
|
332
|
346
|
kcsl = #{kcsl,jdbcType=DECIMAL},
|
|
333
|
347
|
input_time = #{inputTime,jdbcType=TIMESTAMP},
|
|
334
|
|
- hdsj = #{hdsj,jdbcType=TIMESTAMP}
|
|
|
348
|
+ hdsj = #{hdsj,jdbcType=TIMESTAMP},
|
|
|
349
|
+ scny = #{scny,jdbcType=VARCHAR}
|
|
335
|
350
|
where id = #{id,jdbcType=VARCHAR}
|
|
336
|
351
|
</update>
|
|
337
|
352
|
|