|
|
@@ -17,6 +17,9 @@
|
|
17
|
17
|
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
|
18
|
18
|
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
|
|
19
|
19
|
<result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" />
|
|
|
20
|
+ <result column="aqsysms" property="aqsysms" jdbcType="VARCHAR" />
|
|
|
21
|
+ <result column="syhclfs" property="syhclfs" jdbcType="VARCHAR" />
|
|
|
22
|
+ <result column="cctj" property="cctj" jdbcType="VARCHAR" />
|
|
20
|
23
|
</resultMap>
|
|
21
|
24
|
<sql id="Example_Where_Clause" >
|
|
22
|
25
|
<where >
|
|
|
@@ -78,7 +81,7 @@
|
|
78
|
81
|
</sql>
|
|
79
|
82
|
<sql id="Base_Column_List" >
|
|
80
|
83
|
id, org_id, drug_number, drug_kind, drug_name, drug_type, drug_packing, drug_unit,
|
|
81
|
|
- drug_specification, is_effective, is_delete, creater, create_time, update_time, updatetime
|
|
|
84
|
+ drug_specification, is_effective, is_delete, creater, create_time, update_time, updatetime, aqsysms, syhclfs, cctj
|
|
82
|
85
|
</sql>
|
|
83
|
86
|
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessDrugInfoExample" >
|
|
84
|
87
|
select
|
|
|
@@ -120,13 +123,14 @@
|
|
120
|
123
|
drug_kind, drug_name, drug_type,
|
|
121
|
124
|
drug_packing, drug_unit, drug_specification,
|
|
122
|
125
|
is_effective, is_delete, creater,
|
|
123
|
|
- create_time, update_time, updatetime
|
|
|
126
|
+ create_time, update_time, updatetime, aqsysms, syhclfs, cctj
|
|
124
|
127
|
)
|
|
125
|
128
|
values (#{id,jdbcType=INTEGER}, #{orgId,jdbcType=INTEGER}, #{drugNumber,jdbcType=VARCHAR},
|
|
126
|
129
|
#{drugKind,jdbcType=INTEGER}, #{drugName,jdbcType=INTEGER}, #{drugType,jdbcType=INTEGER},
|
|
127
|
130
|
#{drugPacking,jdbcType=INTEGER}, #{drugUnit,jdbcType=INTEGER}, #{drugSpecification,jdbcType=VARCHAR},
|
|
128
|
131
|
#{isEffective,jdbcType=INTEGER}, #{isDelete,jdbcType=INTEGER}, #{creater,jdbcType=INTEGER},
|
|
129
|
|
- #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP}
|
|
|
132
|
+ #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP},
|
|
|
133
|
+ #{aqsysms,jdbcType=VARCHAR}, #{syhclfs,jdbcType=VARCHAR}, #{cctj,jdbcType=VARCHAR}
|
|
130
|
134
|
)
|
|
131
|
135
|
</insert>
|
|
132
|
136
|
<insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessDrugInfo" >
|
|
|
@@ -178,6 +182,15 @@
|
|
178
|
182
|
<if test="updatetime != null" >
|
|
179
|
183
|
updatetime,
|
|
180
|
184
|
</if>
|
|
|
185
|
+ <if test="aqsysms != null">
|
|
|
186
|
+ aqsysms,
|
|
|
187
|
+ </if>
|
|
|
188
|
+ <if test="syhclfs != null">
|
|
|
189
|
+ syhclfs,
|
|
|
190
|
+ </if>
|
|
|
191
|
+ <if test="cctj != null">
|
|
|
192
|
+ cctj,
|
|
|
193
|
+ </if>
|
|
181
|
194
|
</trim>
|
|
182
|
195
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
183
|
196
|
#{id,jdbcType=INTEGER},
|
|
|
@@ -223,6 +236,15 @@
|
|
223
|
236
|
<if test="updatetime != null" >
|
|
224
|
237
|
#{updatetime,jdbcType=TIMESTAMP},
|
|
225
|
238
|
</if>
|
|
|
239
|
+ <if test="aqsysms != null">
|
|
|
240
|
+ #{aqsysms,jdbcType=VARCHAR},
|
|
|
241
|
+ </if>
|
|
|
242
|
+ <if test="syhclfs != null">
|
|
|
243
|
+ #{syhclfs,jdbcType=VARCHAR},
|
|
|
244
|
+ </if>
|
|
|
245
|
+ <if test="cctj != null">
|
|
|
246
|
+ #{cctj,jdbcType=VARCHAR},
|
|
|
247
|
+ </if>
|
|
226
|
248
|
</trim>
|
|
227
|
249
|
</insert>
|
|
228
|
250
|
<select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessDrugInfoExample" resultType="java.lang.Integer" >
|
|
|
@@ -279,6 +301,15 @@
|
|
279
|
301
|
<if test="record.updatetime != null" >
|
|
280
|
302
|
updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
|
|
281
|
303
|
</if>
|
|
|
304
|
+ <if test="record.aqsysms != null">
|
|
|
305
|
+ aqsysms = #{record.aqsysms,jdbcType=VARCHAR},
|
|
|
306
|
+ </if>
|
|
|
307
|
+ <if test="record.syhclfs != null">
|
|
|
308
|
+ syhclfs = #{record.syhclfs,jdbcType=VARCHAR},
|
|
|
309
|
+ </if>
|
|
|
310
|
+ <if test="record.cctj != null">
|
|
|
311
|
+ cctj = #{record.cctj,jdbcType=VARCHAR},
|
|
|
312
|
+ </if>
|
|
282
|
313
|
</set>
|
|
283
|
314
|
<if test="_parameter != null" >
|
|
284
|
315
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -300,7 +331,10 @@
|
|
300
|
331
|
creater = #{record.creater,jdbcType=INTEGER},
|
|
301
|
332
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
302
|
333
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
303
|
|
- updatetime = #{record.updatetime,jdbcType=TIMESTAMP}
|
|
|
334
|
+ updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
|
|
|
335
|
+ aqsysms = #{record.aqsysms,jdbcType=VARCHAR},
|
|
|
336
|
+ syhclfs = #{record.syhclfs,jdbcType=VARCHAR},
|
|
|
337
|
+ cctj = #{record.cctj,jdbcType=VARCHAR}
|
|
304
|
338
|
<if test="_parameter != null" >
|
|
305
|
339
|
<include refid="Update_By_Example_Where_Clause" />
|
|
306
|
340
|
</if>
|
|
|
@@ -347,6 +381,15 @@
|
|
347
|
381
|
<if test="updatetime != null" >
|
|
348
|
382
|
updatetime = #{updatetime,jdbcType=TIMESTAMP},
|
|
349
|
383
|
</if>
|
|
|
384
|
+ <if test="aqsysms != null">
|
|
|
385
|
+ aqsysms = #{aqsysms,jdbcType=VARCHAR},
|
|
|
386
|
+ </if>
|
|
|
387
|
+ <if test="syhclfs != null">
|
|
|
388
|
+ syhclfs = #{syhclfs,jdbcType=VARCHAR},
|
|
|
389
|
+ </if>
|
|
|
390
|
+ <if test="cctj != null">
|
|
|
391
|
+ cctj = #{cctj,jdbcType=VARCHAR},
|
|
|
392
|
+ </if>
|
|
350
|
393
|
</set>
|
|
351
|
394
|
where id = #{id,jdbcType=INTEGER}
|
|
352
|
395
|
and org_id = #{orgId,jdbcType=INTEGER}
|
|
|
@@ -365,7 +408,10 @@
|
|
365
|
408
|
creater = #{creater,jdbcType=INTEGER},
|
|
366
|
409
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
367
|
410
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
368
|
|
- updatetime = #{updatetime,jdbcType=TIMESTAMP}
|
|
|
411
|
+ updatetime = #{updatetime,jdbcType=TIMESTAMP},
|
|
|
412
|
+ aqsysms = #{aqsysms,jdbcType=VARCHAR},
|
|
|
413
|
+ syhclfs = #{syhclfs,jdbcType=VARCHAR},
|
|
|
414
|
+ cctj = #{cctj,jdbcType=VARCHAR}
|
|
369
|
415
|
where id = #{id,jdbcType=INTEGER}
|
|
370
|
416
|
and org_id = #{orgId,jdbcType=INTEGER}
|
|
371
|
417
|
</update>
|