|
|
@@ -20,6 +20,8 @@
|
|
20
|
20
|
<result column="aqsysms" property="aqsysms" jdbcType="VARCHAR" />
|
|
21
|
21
|
<result column="syhclfs" property="syhclfs" jdbcType="VARCHAR" />
|
|
22
|
22
|
<result column="cctj" property="cctj" jdbcType="VARCHAR" />
|
|
|
23
|
+ <result column="ccdd" property="ccdd" jdbcType="VARCHAR" />
|
|
|
24
|
+ <result column="bzwclfs" property="bzwclfs" jdbcType="LONGVARBINARY" />
|
|
23
|
25
|
</resultMap>
|
|
24
|
26
|
<sql id="Example_Where_Clause" >
|
|
25
|
27
|
<where >
|
|
|
@@ -81,7 +83,7 @@
|
|
81
|
83
|
</sql>
|
|
82
|
84
|
<sql id="Base_Column_List" >
|
|
83
|
85
|
id, org_id, drug_number, drug_kind, drug_name, drug_type, drug_packing, drug_unit,
|
|
84
|
|
- drug_specification, is_effective, is_delete, creater, create_time, update_time, updatetime, aqsysms, syhclfs, cctj
|
|
|
86
|
+ drug_specification, is_effective, is_delete, creater, create_time, update_time, updatetime, aqsysms, syhclfs, cctj, ccdd, bzwclfs
|
|
85
|
87
|
</sql>
|
|
86
|
88
|
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessDrugInfoExample" >
|
|
87
|
89
|
select
|
|
|
@@ -123,14 +125,15 @@
|
|
123
|
125
|
drug_kind, drug_name, drug_type,
|
|
124
|
126
|
drug_packing, drug_unit, drug_specification,
|
|
125
|
127
|
is_effective, is_delete, creater,
|
|
126
|
|
- create_time, update_time, updatetime, aqsysms, syhclfs, cctj
|
|
|
128
|
+ create_time, update_time, updatetime, aqsysms, syhclfs, cctj, ccdd ,bzwclfs
|
|
127
|
129
|
)
|
|
128
|
130
|
values (#{id,jdbcType=INTEGER}, #{orgId,jdbcType=INTEGER}, #{drugNumber,jdbcType=VARCHAR},
|
|
129
|
131
|
#{drugKind,jdbcType=INTEGER}, #{drugName,jdbcType=INTEGER}, #{drugType,jdbcType=INTEGER},
|
|
130
|
132
|
#{drugPacking,jdbcType=INTEGER}, #{drugUnit,jdbcType=INTEGER}, #{drugSpecification,jdbcType=VARCHAR},
|
|
131
|
133
|
#{isEffective,jdbcType=INTEGER}, #{isDelete,jdbcType=INTEGER}, #{creater,jdbcType=INTEGER},
|
|
132
|
134
|
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP},
|
|
133
|
|
- #{aqsysms,jdbcType=VARCHAR}, #{syhclfs,jdbcType=VARCHAR}, #{cctj,jdbcType=VARCHAR}
|
|
|
135
|
+ #{aqsysms,jdbcType=VARCHAR}, #{syhclfs,jdbcType=VARCHAR}, #{cctj,jdbcType=VARCHAR},
|
|
|
136
|
+ #{ccdd,jdbcType=VARCHAR}, #{bzwclfs,jdbcType=LONGVARBINARY}
|
|
134
|
137
|
)
|
|
135
|
138
|
</insert>
|
|
136
|
139
|
<insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessDrugInfo" >
|
|
|
@@ -191,6 +194,12 @@
|
|
191
|
194
|
<if test="cctj != null">
|
|
192
|
195
|
cctj,
|
|
193
|
196
|
</if>
|
|
|
197
|
+ <if test="ccdd != null">
|
|
|
198
|
+ ccdd,
|
|
|
199
|
+ </if>
|
|
|
200
|
+ <if test="bzwclfs != null">
|
|
|
201
|
+ bzwclfs,
|
|
|
202
|
+ </if>
|
|
194
|
203
|
</trim>
|
|
195
|
204
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
196
|
205
|
#{id,jdbcType=INTEGER},
|
|
|
@@ -245,6 +254,12 @@
|
|
245
|
254
|
<if test="cctj != null">
|
|
246
|
255
|
#{cctj,jdbcType=VARCHAR},
|
|
247
|
256
|
</if>
|
|
|
257
|
+ <if test="ccdd != null">
|
|
|
258
|
+ #{ccdd,jdbcType=VARCHAR},
|
|
|
259
|
+ </if>
|
|
|
260
|
+ <if test="bzwclfs != null">
|
|
|
261
|
+ #{bzwclfs,jdbcType=LONGVARBINARY},
|
|
|
262
|
+ </if>
|
|
248
|
263
|
</trim>
|
|
249
|
264
|
</insert>
|
|
250
|
265
|
<select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessDrugInfoExample" resultType="java.lang.Integer" >
|
|
|
@@ -310,6 +325,12 @@
|
|
310
|
325
|
<if test="record.cctj != null">
|
|
311
|
326
|
cctj = #{record.cctj,jdbcType=VARCHAR},
|
|
312
|
327
|
</if>
|
|
|
328
|
+ <if test="record.ccdd != null">
|
|
|
329
|
+ ccdd = #{record.ccdd,jdbcType=VARCHAR},
|
|
|
330
|
+ </if>
|
|
|
331
|
+ <if test="record.bzwclfs != null">
|
|
|
332
|
+ bzwclfs = #{record.bzwclfs,jdbcType=LONGVARBINARY},
|
|
|
333
|
+ </if>
|
|
313
|
334
|
</set>
|
|
314
|
335
|
<if test="_parameter != null" >
|
|
315
|
336
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -334,7 +355,9 @@
|
|
334
|
355
|
updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
|
|
335
|
356
|
aqsysms = #{record.aqsysms,jdbcType=VARCHAR},
|
|
336
|
357
|
syhclfs = #{record.syhclfs,jdbcType=VARCHAR},
|
|
337
|
|
- cctj = #{record.cctj,jdbcType=VARCHAR}
|
|
|
358
|
+ cctj = #{record.cctj,jdbcType=VARCHAR},
|
|
|
359
|
+ ccdd = #{record.ccdd,jdbcType=VARCHAR},
|
|
|
360
|
+ bzwclfs = #{record.bzwclfs,jdbcType=LONGVARBINARY}
|
|
338
|
361
|
<if test="_parameter != null" >
|
|
339
|
362
|
<include refid="Update_By_Example_Where_Clause" />
|
|
340
|
363
|
</if>
|
|
|
@@ -390,6 +413,12 @@
|
|
390
|
413
|
<if test="cctj != null">
|
|
391
|
414
|
cctj = #{cctj,jdbcType=VARCHAR},
|
|
392
|
415
|
</if>
|
|
|
416
|
+ <if test="ccdd != null">
|
|
|
417
|
+ ccdd = #{ccdd,jdbcType=VARCHAR},
|
|
|
418
|
+ </if>
|
|
|
419
|
+ <if test="bzwclfs != null">
|
|
|
420
|
+ bzwclfs = #{bzwclfs,jdbcType=LONGVARBINARY},
|
|
|
421
|
+ </if>
|
|
393
|
422
|
</set>
|
|
394
|
423
|
where id = #{id,jdbcType=INTEGER}
|
|
395
|
424
|
and org_id = #{orgId,jdbcType=INTEGER}
|
|
|
@@ -411,7 +440,9 @@
|
|
411
|
440
|
updatetime = #{updatetime,jdbcType=TIMESTAMP},
|
|
412
|
441
|
aqsysms = #{aqsysms,jdbcType=VARCHAR},
|
|
413
|
442
|
syhclfs = #{syhclfs,jdbcType=VARCHAR},
|
|
414
|
|
- cctj = #{cctj,jdbcType=VARCHAR}
|
|
|
443
|
+ cctj = #{cctj,jdbcType=VARCHAR},
|
|
|
444
|
+ ccdd = #{ccdd,jdbcType=VARCHAR},
|
|
|
445
|
+ bzwclfs = #{bzwclfs,jdbcType=LONGVARBINARY}
|
|
415
|
446
|
where id = #{id,jdbcType=INTEGER}
|
|
416
|
447
|
and org_id = #{orgId,jdbcType=INTEGER}
|
|
417
|
448
|
</update>
|