Browse Source

BOM资料单位用量修改为double

chenw 7 years ago
parent
commit
4f8f30c6e5

+ 3 - 3
applications/document/document-dto/src/main/java/com/usoftchina/saas/document/entities/BomDetail.java

@@ -16,7 +16,7 @@ public class BomDetail extends CommonBaseEntity implements Serializable {
 
     private String bd_unit;
 
-    private Integer bd_baseqty;
+    private Double bd_baseqty;
 
     private String bd_replace;
 
@@ -82,11 +82,11 @@ public class BomDetail extends CommonBaseEntity implements Serializable {
         this.bd_unit = bd_unit == null ? null : bd_unit.trim();
     }
 
-    public Integer getBd_baseqty() {
+    public Double getBd_baseqty() {
         return bd_baseqty;
     }
 
-    public void setBd_baseqty(Integer bd_baseqty) {
+    public void setBd_baseqty(Double bd_baseqty) {
         this.bd_baseqty = bd_baseqty;
     }
 

+ 7 - 7
applications/document/document-server/src/main/resources/mapper/BomDetailMapper.xml

@@ -8,7 +8,7 @@
     <result column="bd_sonid" property="bd_sonid" jdbcType="INTEGER" />
     <result column="bd_soncode" property="bd_soncode" jdbcType="VARCHAR" />
     <result column="bd_unit" property="bd_unit" jdbcType="VARCHAR" />
-    <result column="bd_baseqty" property="bd_baseqty" jdbcType="INTEGER" />
+    <result column="bd_baseqty" property="bd_baseqty" jdbcType="DOUBLE" />
     <result column="bd_replace" property="bd_replace" jdbcType="VARCHAR" />
     <result column="bd_remark" property="bd_remark" jdbcType="VARCHAR" />
     <result column="companyId" property="companyId" jdbcType="INTEGER" />
@@ -73,7 +73,7 @@
       creatorId,createTime,creatorName)
     values ( #{bd_bomid,jdbcType=INTEGER}, #{bd_detno,jdbcType=INTEGER},
       #{bd_sonid,jdbcType=INTEGER}, #{bd_soncode,jdbcType=VARCHAR}, #{bd_unit,jdbcType=VARCHAR}, 
-      #{bd_baseqty,jdbcType=INTEGER}, #{bd_replace,jdbcType=VARCHAR}, #{bd_remark,jdbcType=VARCHAR}, 
+      #{bd_baseqty,jdbcType=DOUBLE}, #{bd_replace,jdbcType=VARCHAR}, #{bd_remark,jdbcType=VARCHAR},
       #{companyId,jdbcType=INTEGER}, #{updaterId,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, 
       #{bd_text1,jdbcType=VARCHAR}, #{bd_text2,jdbcType=VARCHAR}, #{bd_text3,jdbcType=VARCHAR}, 
       #{bd_text4,jdbcType=VARCHAR}, #{bd_text5,jdbcType=VARCHAR},
@@ -157,7 +157,7 @@
         #{bd_unit,jdbcType=VARCHAR},
       </if>
       <if test="bd_baseqty != null" >
-        #{bd_baseqty,jdbcType=INTEGER},
+        #{bd_baseqty,jdbcType=DOUBLE},
       </if>
       <if test="bd_replace != null" >
         #{bd_replace,jdbcType=VARCHAR},
@@ -219,7 +219,7 @@
         bd_unit = #{bd_unit,jdbcType=VARCHAR},
       </if>
       <if test="bd_baseqty != null" >
-        bd_baseqty = #{bd_baseqty,jdbcType=INTEGER},
+        bd_baseqty = #{bd_baseqty,jdbcType=DOUBLE},
       </if>
       <if test="bd_replace != null" >
         bd_replace = #{bd_replace,jdbcType=VARCHAR},
@@ -261,7 +261,7 @@
       bd_sonid = #{bd_sonid,jdbcType=INTEGER},
       bd_soncode = #{bd_soncode,jdbcType=VARCHAR},
       bd_unit = #{bd_unit,jdbcType=VARCHAR},
-      bd_baseqty = #{bd_baseqty,jdbcType=INTEGER},
+      bd_baseqty = #{bd_baseqty,jdbcType=DOUBLE},
       bd_replace = #{bd_replace,jdbcType=VARCHAR},
       bd_remark = #{bd_remark,jdbcType=VARCHAR},
       companyId = #{companyId,jdbcType=INTEGER},
@@ -287,7 +287,7 @@
       (
       #{item.bd_bomid,jdbcType=INTEGER}, #{item.bd_detno,jdbcType=INTEGER},
       #{item.bd_sonid,jdbcType=INTEGER}, #{item.bd_soncode,jdbcType=VARCHAR}, #{item.bd_unit,jdbcType=VARCHAR},
-      #{item.bd_baseqty,jdbcType=INTEGER}, #{item.bd_replace,jdbcType=VARCHAR}, #{item.bd_remark,jdbcType=VARCHAR},
+      #{item.bd_baseqty,jdbcType=DOUBLE}, #{item.bd_replace,jdbcType=VARCHAR}, #{item.bd_remark,jdbcType=VARCHAR},
       #{item.companyId,jdbcType=INTEGER}, #{item.updaterId,jdbcType=INTEGER}, #{item.updateTime,jdbcType=TIMESTAMP},
       #{item.bd_text1,jdbcType=VARCHAR}, #{item.bd_text2,jdbcType=VARCHAR}, #{item.bd_text3,jdbcType=VARCHAR},
       #{item.bd_text4,jdbcType=VARCHAR}, #{item.bd_text5,jdbcType=VARCHAR},
@@ -316,7 +316,7 @@
           bd_unit = #{item.bd_unit,jdbcType=VARCHAR},
         </if>
         <if test="item.bd_baseqty != null" >
-          bd_baseqty = #{item.bd_baseqty,jdbcType=INTEGER},
+          bd_baseqty = #{item.bd_baseqty,jdbcType=DOUBLE},
         </if>
         <if test="item.bd_replace != null" >
           bd_replace = #{item.bd_replace,jdbcType=VARCHAR},