Преглед изворни кода

天津改造计划——药剂管理改造

fanxw пре 4 година
родитељ
комит
95924ff5da

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

@@ -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>

+ 20 - 5
src/main/java/com/chinaitop/depot/business/mapper/BusinessDrugStorageMapper.xml

@@ -31,6 +31,7 @@
31 31
     <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
32 32
     <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
33 33
     <result column="org_id" property="orgId" jdbcType="INTEGER" />
34
+    <result column="cgly" property="cgly" jdbcType="VARCHAR" />
34 35
   </resultMap>
35 36
   <sql id="Example_Where_Clause" >
36 37
     <where >
@@ -95,7 +96,7 @@
95 96
     manufacturer, drug_specification, production_date, expire_date, storage_price, storage_count, 
96 97
     shelf_id, delivery_count, drug_purchase_bid, apply_count, drug_storage_number, drug_purchase_number, 
97 98
     storage_amount, storage_amount_capital, control_man, creater, create_unit, create_depot, 
98
-    create_time, update_time, org_id
99
+    create_time, update_time, org_id, cgly
99 100
   </sql>
100 101
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessDrugStorageExample" >
101 102
     select
@@ -140,7 +141,7 @@
140 141
       drug_storage_number, drug_purchase_number, 
141 142
       storage_amount, storage_amount_capital, control_man, 
142 143
       creater, create_unit, create_depot, 
143
-      create_time, update_time, org_id
144
+      create_time, update_time, org_id, cgly
144 145
       )
145 146
     values (#{id,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{drugInfoId,jdbcType=INTEGER},
146 147
       #{drugNumber,jdbcType=VARCHAR}, #{drugKind,jdbcType=INTEGER}, #{drugName,jdbcType=INTEGER}, 
@@ -151,7 +152,7 @@
151 152
       #{drugStorageNumber,jdbcType=VARCHAR}, #{drugPurchaseNumber,jdbcType=VARCHAR}, 
152 153
       #{storageAmount,jdbcType=VARCHAR}, #{storageAmountCapital,jdbcType=VARCHAR}, #{controlMan,jdbcType=VARCHAR}, 
153 154
       #{creater,jdbcType=INTEGER}, #{createUnit,jdbcType=INTEGER}, #{createDepot,jdbcType=INTEGER}, 
154
-      #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{orgId,jdbcType=INTEGER}
155
+      #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{orgId,jdbcType=INTEGER}, #{cgly,jdbcType=INTEGER}
155 156
       )
156 157
   </insert>
157 158
   <insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessDrugStorage" >
@@ -242,6 +243,9 @@
242 243
       <if test="orgId != null" >
243 244
         org_id,
244 245
       </if>
246
+      <if test="cgly != null" >
247
+        cgly,
248
+      </if>
245 249
     </trim>
246 250
     <trim prefix="values (" suffix=")" suffixOverrides="," >
247 251
         drug_storage_seq.nextVal,
@@ -329,6 +333,9 @@
329 333
       <if test="orgId != null" >
330 334
         #{orgId,jdbcType=INTEGER},
331 335
       </if>
336
+      <if test="cgly != null" >
337
+        #{cgly,jdbcType=VARCHAR},
338
+      </if>
332 339
     </trim>
333 340
   </insert>
334 341
   <select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessDrugStorageExample" resultType="java.lang.Integer" >
@@ -427,6 +434,9 @@
427 434
       <if test="record.orgId != null" >
428 435
         org_id = #{record.orgId,jdbcType=INTEGER},
429 436
       </if>
437
+      <if test="record.cgly != null" >
438
+        cgly = #{record.cgly,jdbcType=VARCHAR},
439
+      </if>
430 440
     </set>
431 441
     <if test="_parameter != null" >
432 442
       <include refid="Update_By_Example_Where_Clause" />
@@ -462,7 +472,8 @@
462 472
       create_depot = #{record.createDepot,jdbcType=INTEGER},
463 473
       create_time = #{record.createTime,jdbcType=TIMESTAMP},
464 474
       update_time = #{record.updateTime,jdbcType=TIMESTAMP},
465
-      org_id = #{record.orgId,jdbcType=INTEGER}
475
+      org_id = #{record.orgId,jdbcType=INTEGER},
476
+      cgly = #{record.cgly,jdbcType=VARCHAR}
466 477
     <if test="_parameter != null" >
467 478
       <include refid="Update_By_Example_Where_Clause" />
468 479
     </if>
@@ -554,6 +565,9 @@
554 565
       <if test="orgId != null" >
555 566
         org_id = #{orgId,jdbcType=INTEGER},
556 567
       </if>
568
+      <if test="cgly != null" >
569
+        cgly = #{cgly,jdbcType=VARCHAR},
570
+      </if>
557 571
     </set>
558 572
     where id = #{id,jdbcType=INTEGER}
559 573
   </update>
@@ -586,7 +600,8 @@
586 600
       create_depot = #{createDepot,jdbcType=INTEGER},
587 601
       create_time = #{createTime,jdbcType=TIMESTAMP},
588 602
       update_time = #{updateTime,jdbcType=TIMESTAMP},
589
-      org_id = #{orgId,jdbcType=INTEGER}
603
+      org_id = #{orgId,jdbcType=INTEGER},
604
+      cgly = #{cgly,jdbcType=VARCHAR}
590 605
     where id = #{id,jdbcType=INTEGER}
591 606
   </update>
592 607
 

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

@@ -29,6 +29,12 @@ public class BusinessDrugInfo extends BusinessDrugInfoKey {
29 29
 
30 30
     private Date updatetime;
31 31
 
32
+    private String aqsysms;
33
+
34
+    private String syhclfs;
35
+
36
+    private String cctj;
37
+
32 38
     /**
33 39
      * 
34 40
      * @return drug_number 
@@ -236,4 +242,28 @@ public class BusinessDrugInfo extends BusinessDrugInfoKey {
236 242
     public void setUpdatetime(Date updatetime) {
237 243
         this.updatetime = updatetime;
238 244
     }
245
+
246
+    public String getAqsysms() {
247
+        return aqsysms;
248
+    }
249
+
250
+    public void setAqsysms(String aqsysms) {
251
+        this.aqsysms = aqsysms;
252
+    }
253
+
254
+    public String getSyhclfs() {
255
+        return syhclfs;
256
+    }
257
+
258
+    public void setSyhclfs(String syhclfs) {
259
+        this.syhclfs = syhclfs;
260
+    }
261
+
262
+    public String getCctj() {
263
+        return cctj;
264
+    }
265
+
266
+    public void setCctj(String cctj) {
267
+        this.cctj = cctj;
268
+    }
239 269
 }

+ 15 - 0
src/main/java/com/chinaitop/depot/business/model/BusinessDrugInfoExample.java

@@ -1036,6 +1036,21 @@ public class BusinessDrugInfoExample {
1036 1036
             addCriterion("updatetime not between", value1, value2, "updatetime");
1037 1037
             return (Criteria) this;
1038 1038
         }
1039
+
1040
+        public Criteria andAqsysmsEqualTo(String value) {
1041
+            addCriterion("aqsysms =", value, "aqsysms");
1042
+            return (Criteria) this;
1043
+        }
1044
+
1045
+        public Criteria andSyhclfsEqualTo(String value) {
1046
+            addCriterion("syhclfs =", value, "syhclfs");
1047
+            return (Criteria) this;
1048
+        }
1049
+
1050
+        public Criteria andCctjEqualTo(String value) {
1051
+            addCriterion("cctj =", value, "cctj");
1052
+            return (Criteria) this;
1053
+        }
1039 1054
     }
1040 1055
 
1041 1056
     /**

+ 10 - 0
src/main/java/com/chinaitop/depot/business/model/BusinessDrugStorage.java

@@ -64,6 +64,8 @@ public class BusinessDrugStorage {
64 64
 
65 65
     private Integer orgId;
66 66
 
67
+    private String cgly;
68
+
67 69
     /**
68 70
      * 
69 71
      * @return id 
@@ -527,4 +529,12 @@ public class BusinessDrugStorage {
527 529
     public void setOrgId(Integer orgId) {
528 530
         this.orgId = orgId;
529 531
     }
532
+
533
+    public String getCgly() {
534
+        return cgly;
535
+    }
536
+
537
+    public void setCgly(String cgly) {
538
+        this.cgly = cgly;
539
+    }
530 540
 }

+ 5 - 0
src/main/java/com/chinaitop/depot/business/model/BusinessDrugStorageExample.java

@@ -1959,6 +1959,11 @@ public class BusinessDrugStorageExample {
1959 1959
             addCriterion("org_id not between", value1, value2, "orgId");
1960 1960
             return (Criteria) this;
1961 1961
         }
1962
+
1963
+        public Criteria andCglyEqualTo(String value) {
1964
+            addCriterion("cgly =", value, "cgly");
1965
+            return (Criteria) this;
1966
+        }
1962 1967
     }
1963 1968
 
1964 1969
     /**