Bladeren bron

系数转码

jz.kai 1 jaar geleden
bovenliggende
commit
28a964076e

+ 4 - 0
common/src/main/java/com/jpsoft/printing/modules/base/entity/Work.java

@@ -59,6 +59,10 @@ public class Work {
     private String tagOperator;
         @ApiModelProperty(value = "挂码系数")
     private BigDecimal tagFactor;
+        @ApiModelProperty(value = "挂码系数(存储)")
+    private BigDecimal tagFactorSave;
+    @ApiModelProperty(value = "挂码单位")
+    private String tagUnit;
         @ApiModelProperty(value = "备注")
     private String remark;
         @ApiModelProperty(value = "状态")

+ 11 - 1
common/src/main/resources/mapper/base/Work.xml

@@ -24,6 +24,8 @@
 		<result property="rollLength" column="roll_length" />
 		<result property="tagOperator" column="tag_operator" />
 		<result property="tagFactor" column="tag_factor" />
+		<result property="tagFactorSave" column="tag_factor_save" />
+		<result property="tagUnit" column="tag_unit" />
 		<result property="remark" column="remark_" />
 		<result property="status" column="status_" />
 		<result property="delFlag" column="del_flag" />
@@ -40,7 +42,7 @@
 	-->
 	<![CDATA[
 		insert into base_work
-	    (id_,customer_id,name_,width_,number_,process_date,process_volume,process_remark,process_number,ratio_,colour_,estimate_quantity,estimate_remark,unit_price,reason_,cloth_price,wages_,roll_length,tag_operator,tag_factor,remark_,status_,del_flag,create_by,create_time,update_by,update_time)
+	    (id_,customer_id,name_,width_,number_,process_date,process_volume,process_remark,process_number,ratio_,colour_,estimate_quantity,estimate_remark,unit_price,reason_,cloth_price,wages_,roll_length,tag_operator,tag_factor,tag_factor_save,tag_unit,remark_,status_,del_flag,create_by,create_time,update_by,update_time)
 		values
 		(
 #{id,jdbcType=VARCHAR}
@@ -63,6 +65,8 @@
 ,#{rollLength,jdbcType= NUMERIC }
 ,#{tagOperator,jdbcType=VARCHAR}
 ,#{tagFactor,jdbcType= NUMERIC }
+,#{tagFactorSave,jdbcType= NUMERIC }
+,#{tagUnit,jdbcType= VARCHAR }
 ,#{remark,jdbcType=VARCHAR}
 ,#{status,jdbcType= NUMERIC }
 ,#{delFlag,jdbcType= NUMERIC }
@@ -138,6 +142,12 @@
 		</if>
 				<if test="tagFactor!=null">
 		tag_factor=#{tagFactor,jdbcType=NUMERIC},
+		</if>
+				<if test="tagFactorSave!=null">
+		tag_factor_save=#{tagFactorSave,jdbcType=NUMERIC},
+		</if>
+				<if test="tagUnit!=null">
+		tag_unit=#{tagUnit,jdbcType=VARCHAR},
 		</if>
 				<if test="status!=null">
 		status_=#{status,jdbcType= NUMERIC },