Explorar el Código

封仓时 增加一个扣除体积

mengy hace 5 años
padre
commit
b8e33d5d36

+ 8 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageFoodbasicinfoMapper.xml

@@ -50,6 +50,7 @@
50 50
     <result column="org_id" jdbcType="INTEGER" property="orgId" />
51 51
     <result column="history_status" jdbcType="INTEGER" property="historyStatus" />
52 52
     <result column="seal_date" jdbcType="TIMESTAMP" property="sealDate" />
53
+    <result column="deduct_volume" jdbcType="DECIMAL" property="deductVolume" />
53 54
   </resultMap>
54 55
   <sql id="Example_Where_Clause">
55 56
     <where>
@@ -330,6 +331,9 @@
330 331
       <if test="sealDate != null">
331 332
         seal_date,
332 333
       </if>
334
+      <if test="deductVolume != null">
335
+        deduct_volume,
336
+      </if>
333 337
     </trim>
334 338
     <trim prefix="values (" suffix=")" suffixOverrides=",">
335 339
       <if test="id != null">
@@ -476,6 +480,9 @@
476 480
       <if test="sealDate != null">
477 481
         #{sealDate,jdbcType=TIMESTAMP},
478 482
       </if>
483
+      <if test="deductVolume != null">
484
+        #{deductVolume,jdbcType=DECIMAL},
485
+      </if>
479 486
     </trim>
480 487
   </insert>
481 488
   <select id="countByExample" parameterType="com.chinaitop.depot.storage.model.StorageFoodbasicinfoExample" resultType="java.lang.Integer">
@@ -908,6 +915,7 @@
908 915
         sf.length,
909 916
         sf.width,
910 917
         sf.seal_date,
918
+        sf.deduct_volume,
911 919
         bs.storeHouse_name storehouseName,
912 920
         bw.warehouse_name wareHouseName,
913 921
         <!--bs.depot_name keep_unite,-->

+ 9 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageFoodbasicinfo.java

@@ -6,6 +6,15 @@ import java.util.Date;
6 6
 public class StorageFoodbasicinfo {
7 7
     private Integer id;
8 8
     private Date sealDate;//封仓日期
9
+    private BigDecimal deductVolume;//扣除体积
10
+
11
+    public BigDecimal getDeductVolume() {
12
+        return deductVolume;
13
+    }
14
+
15
+    public void setDeductVolume(BigDecimal deductVolume) {
16
+        this.deductVolume = deductVolume;
17
+    }
9 18
 
10 19
     public Date getSealDate() {
11 20
         return sealDate;