소스 검색

药剂管理增加 储存地点和包装物处理方式字段

renyu 3 년 전
부모
커밋
d5ebf9ba32

+ 36 - 5
src/main/java/com/chinaitop/depot/business/mapper/BusinessDrugInfoMapper.xml

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

+ 26 - 0
src/main/java/com/chinaitop/depot/business/model/BusinessDrugInfo.java

@@ -36,6 +36,16 @@ public class BusinessDrugInfo extends BusinessDrugInfoKey {
36
     private String cctj;
36
     private String cctj;
37
 
37
 
38
     /**
38
     /**
39
+     * 储存地点
40
+     */
41
+    private String ccdd;
42
+
43
+    /**
44
+     * 包装物处理方式
45
+     */
46
+    private String bzwclfs;
47
+
48
+    /**
39
      * 
49
      * 
40
      * @return drug_number 
50
      * @return drug_number 
41
      */
51
      */
@@ -266,4 +276,20 @@ public class BusinessDrugInfo extends BusinessDrugInfoKey {
266
     public void setCctj(String cctj) {
276
     public void setCctj(String cctj) {
267
         this.cctj = cctj;
277
         this.cctj = cctj;
268
     }
278
     }
279
+
280
+    public String getCcdd() {
281
+        return ccdd;
282
+    }
283
+
284
+    public void setCcdd(String ccdd) {
285
+        this.ccdd = ccdd;
286
+    }
287
+
288
+    public String getBzwclfs() {
289
+        return bzwclfs;
290
+    }
291
+
292
+    public void setBzwclfs(String bzwclfs) {
293
+        this.bzwclfs = bzwclfs;
294
+    }
269
 }
295
 }