瀏覽代碼

熏蒸优化

lvzhikai 5 年之前
父節點
當前提交
070c5cb04b

+ 7 - 7
depot-intelligent/src/main/java/com/chinaitop/depot/intelligent/fumigation/mapper/TFumigationPlanMapper.xml

@@ -6,7 +6,7 @@
6 6
     <result column="house_id" property="houseId" jdbcType="INTEGER" />
7 7
     <result column="keeper" property="keeper" jdbcType="INTEGER" />
8 8
     <result column="grain_kind" property="grainKind" jdbcType="INTEGER" />
9
-    <result column="grain_count" property="grainCount" jdbcType="INTEGER" />
9
+    <result column="grain_count" property="grainCount" jdbcType="DECIMAL" />
10 10
     <result column="grain_storage_time" property="grainStorageTime" jdbcType="TIMESTAMP" />
11 11
     <result column="fumigation_type" property="fumigationType" jdbcType="INTEGER" />
12 12
     <result column="fumigation_number" property="fumigationNumber" jdbcType="INTEGER" />
@@ -146,7 +146,7 @@
146 146
       xzfapzr, xzfabbqk, xzfzr, 
147 147
       hcjcdh, updatetime)
148 148
     values (#{id,jdbcType=VARCHAR}, #{houseId,jdbcType=INTEGER}, #{keeper,jdbcType=INTEGER}, 
149
-      #{grainKind,jdbcType=INTEGER}, #{grainCount,jdbcType=INTEGER}, #{grainStorageTime,jdbcType=TIMESTAMP}, 
149
+      #{grainKind,jdbcType=INTEGER}, #{grainCount,jdbcType=DECIMAL}, #{grainStorageTime,jdbcType=TIMESTAMP},
150 150
       #{fumigationType,jdbcType=INTEGER}, #{fumigationNumber,jdbcType=INTEGER}, #{fumigationCommand,jdbcType=VARCHAR}, 
151 151
       #{fumigationOperation,jdbcType=VARCHAR}, #{fumiagtionProtective,jdbcType=VARCHAR}, 
152 152
       #{expected,jdbcType=VARCHAR}, #{pointsWork,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, 
@@ -278,7 +278,7 @@
278 278
         #{grainKind,jdbcType=INTEGER},
279 279
       </if>
280 280
       <if test="grainCount != null" >
281
-        #{grainCount,jdbcType=INTEGER},
281
+        #{grainCount,jdbcType=DECIMAL},
282 282
       </if>
283 283
       <if test="grainStorageTime != null" >
284 284
         #{grainStorageTime,jdbcType=TIMESTAMP},
@@ -391,7 +391,7 @@
391 391
         grain_kind = #{record.grainKind,jdbcType=INTEGER},
392 392
       </if>
393 393
       <if test="record.grainCount != null" >
394
-        grain_count = #{record.grainCount,jdbcType=INTEGER},
394
+        grain_count = #{record.grainCount,jdbcType=DECIMAL},
395 395
       </if>
396 396
       <if test="record.grainStorageTime != null" >
397 397
         grain_storage_time = #{record.grainStorageTime,jdbcType=TIMESTAMP},
@@ -491,7 +491,7 @@
491 491
       house_id = #{record.houseId,jdbcType=INTEGER},
492 492
       keeper = #{record.keeper,jdbcType=INTEGER},
493 493
       grain_kind = #{record.grainKind,jdbcType=INTEGER},
494
-      grain_count = #{record.grainCount,jdbcType=INTEGER},
494
+      grain_count = #{record.grainCount,jdbcType=DECIMAL},
495 495
       grain_storage_time = #{record.grainStorageTime,jdbcType=TIMESTAMP},
496 496
       fumigation_type = #{record.fumigationType,jdbcType=INTEGER},
497 497
       fumigation_number = #{record.fumigationNumber,jdbcType=INTEGER},
@@ -538,7 +538,7 @@
538 538
         grain_kind = #{grainKind,jdbcType=INTEGER},
539 539
       </if>
540 540
       <if test="grainCount != null" >
541
-        grain_count = #{grainCount,jdbcType=INTEGER},
541
+        grain_count = #{grainCount,jdbcType=DECIMAL},
542 542
       </if>
543 543
       <if test="grainStorageTime != null" >
544 544
         grain_storage_time = #{grainStorageTime,jdbcType=TIMESTAMP},
@@ -635,7 +635,7 @@
635 635
     set house_id = #{houseId,jdbcType=INTEGER},
636 636
       keeper = #{keeper,jdbcType=INTEGER},
637 637
       grain_kind = #{grainKind,jdbcType=INTEGER},
638
-      grain_count = #{grainCount,jdbcType=INTEGER},
638
+      grain_count = #{grainCount,jdbcType=DECIMAL},
639 639
       grain_storage_time = #{grainStorageTime,jdbcType=TIMESTAMP},
640 640
       fumigation_type = #{fumigationType,jdbcType=INTEGER},
641 641
       fumigation_number = #{fumigationNumber,jdbcType=INTEGER},

+ 4 - 3
depot-intelligent/src/main/java/com/chinaitop/depot/intelligent/fumigation/model/TFumigationPlan.java

@@ -1,5 +1,6 @@
1 1
 package com.chinaitop.depot.intelligent.fumigation.model;
2 2
 
3
+import java.math.BigDecimal;
3 4
 import java.util.Date;
4 5
 
5 6
 public class TFumigationPlan {
@@ -11,7 +12,7 @@ public class TFumigationPlan {
11 12
 
12 13
     private Integer grainKind;
13 14
 
14
-    private Integer grainCount;
15
+    private BigDecimal grainCount;
15 16
 
16 17
     private Date grainStorageTime;
17 18
 
@@ -139,7 +140,7 @@ public class TFumigationPlan {
139 140
      * 粮食数量
140 141
      * @return grain_count 粮食数量
141 142
      */
142
-    public Integer getGrainCount() {
143
+    public BigDecimal getGrainCount() {
143 144
         return grainCount;
144 145
     }
145 146
 
@@ -147,7 +148,7 @@ public class TFumigationPlan {
147 148
      * 粮食数量
148 149
      * @param grainCount 粮食数量
149 150
      */
150
-    public void setGrainCount(Integer grainCount) {
151
+    public void setGrainCount(BigDecimal grainCount) {
151 152
         this.grainCount = grainCount;
152 153
     }
153 154
 

+ 11 - 10
depot-intelligent/src/main/java/com/chinaitop/depot/intelligent/fumigation/model/TFumigationPlanExample.java

@@ -1,5 +1,6 @@
1 1
 package com.chinaitop.depot.intelligent.fumigation.model;
2 2
 
3
+import java.math.BigDecimal;
3 4
 import java.util.ArrayList;
4 5
 import java.util.Date;
5 6
 import java.util.List;
@@ -377,52 +378,52 @@ public class TFumigationPlanExample {
377 378
             return (Criteria) this;
378 379
         }
379 380
 
380
-        public Criteria andGrainCountEqualTo(Integer value) {
381
+        public Criteria andGrainCountEqualTo(BigDecimal value) {
381 382
             addCriterion("grain_count =", value, "grainCount");
382 383
             return (Criteria) this;
383 384
         }
384 385
 
385
-        public Criteria andGrainCountNotEqualTo(Integer value) {
386
+        public Criteria andGrainCountNotEqualTo(BigDecimal value) {
386 387
             addCriterion("grain_count <>", value, "grainCount");
387 388
             return (Criteria) this;
388 389
         }
389 390
 
390
-        public Criteria andGrainCountGreaterThan(Integer value) {
391
+        public Criteria andGrainCountGreaterThan(BigDecimal value) {
391 392
             addCriterion("grain_count >", value, "grainCount");
392 393
             return (Criteria) this;
393 394
         }
394 395
 
395
-        public Criteria andGrainCountGreaterThanOrEqualTo(Integer value) {
396
+        public Criteria andGrainCountGreaterThanOrEqualTo(BigDecimal value) {
396 397
             addCriterion("grain_count >=", value, "grainCount");
397 398
             return (Criteria) this;
398 399
         }
399 400
 
400
-        public Criteria andGrainCountLessThan(Integer value) {
401
+        public Criteria andGrainCountLessThan(BigDecimal value) {
401 402
             addCriterion("grain_count <", value, "grainCount");
402 403
             return (Criteria) this;
403 404
         }
404 405
 
405
-        public Criteria andGrainCountLessThanOrEqualTo(Integer value) {
406
+        public Criteria andGrainCountLessThanOrEqualTo(BigDecimal value) {
406 407
             addCriterion("grain_count <=", value, "grainCount");
407 408
             return (Criteria) this;
408 409
         }
409 410
 
410
-        public Criteria andGrainCountIn(List<Integer> values) {
411
+        public Criteria andGrainCountIn(List<BigDecimal> values) {
411 412
             addCriterion("grain_count in", values, "grainCount");
412 413
             return (Criteria) this;
413 414
         }
414 415
 
415
-        public Criteria andGrainCountNotIn(List<Integer> values) {
416
+        public Criteria andGrainCountNotIn(List<BigDecimal> values) {
416 417
             addCriterion("grain_count not in", values, "grainCount");
417 418
             return (Criteria) this;
418 419
         }
419 420
 
420
-        public Criteria andGrainCountBetween(Integer value1, Integer value2) {
421
+        public Criteria andGrainCountBetween(BigDecimal value1, BigDecimal value2) {
421 422
             addCriterion("grain_count between", value1, value2, "grainCount");
422 423
             return (Criteria) this;
423 424
         }
424 425
 
425
-        public Criteria andGrainCountNotBetween(Integer value1, Integer value2) {
426
+        public Criteria andGrainCountNotBetween(BigDecimal value1, BigDecimal value2) {
426 427
             addCriterion("grain_count not between", value1, value2, "grainCount");
427 428
             return (Criteria) this;
428 429
         }