Sfoglia il codice sorgente

加工单 打卷米数

jz.kai 1 anno fa
parent
commit
998858ca5d

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

@@ -51,6 +51,8 @@ public class Work {
     private BigDecimal clothPrice;
         @ApiModelProperty(value = "力资(元/卷)")
     private BigDecimal wages;
+        @ApiModelProperty(value = "卷长(米/卷)")
+    private BigDecimal rollLength;
         @ApiModelProperty(value = "备注")
     private String remark;
         @ApiModelProperty(value = "状态")

+ 7 - 2
common/src/main/resources/mapper/base/Work.xml

@@ -20,6 +20,7 @@
 		<result property="reason" column="reason_" />
 		<result property="clothPrice" column="cloth_price" />
 		<result property="wages" column="wages_" />
+		<result property="rollLength" column="roll_length" />
 		<result property="remark" column="remark_" />
 		<result property="status" column="status_" />
 		<result property="delFlag" column="del_flag" />
@@ -36,7 +37,7 @@
 	-->
 	<![CDATA[
 		insert into base_work
-	    (id_,customer_id,name_,width_,number_,process_date,process_volume,process_remark,process_number,ratio_,colour_,estimate_quantity,unit_price,reason_,cloth_price,wages_,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,unit_price,reason_,cloth_price,wages_,roll_length,remark_,status_,del_flag,create_by,create_time,update_by,update_time)
 		values
 		(
 #{id,jdbcType=VARCHAR}
@@ -55,6 +56,7 @@
 ,#{reason,jdbcType=VARCHAR}
 ,#{clothPrice,jdbcType= NUMERIC }
 ,#{wages,jdbcType= NUMERIC }
+,#{rollLength,jdbcType= NUMERIC }
 ,#{remark,jdbcType=VARCHAR}
 ,#{status,jdbcType= NUMERIC }
 ,#{delFlag,jdbcType= NUMERIC }
@@ -115,6 +117,9 @@
 		</if>
 				<if test="wages!=null">
 		wages_=#{wages,jdbcType= NUMERIC },
+		</if>
+				<if test="rollLength!=null">
+		roll_length=#{rollLength,jdbcType= NUMERIC },
 		</if>
 				<if test="remark!=null">
 		remark_=#{remark,jdbcType=VARCHAR},
@@ -142,7 +147,7 @@
 	</update>
 	<select id="get" parameterType="string" resultMap="WorkMap">
 		select 
-id_,customer_id,name_,width_,number_,process_date,process_volume,process_remark,process_number,ratio_,colour_,estimate_quantity,unit_price,reason_,cloth_price,wages_,remark_,status_,del_flag,create_by,create_time,update_by,update_time		from base_work where id_=#{0}
+id_,customer_id,name_,width_,number_,process_date,process_volume,process_remark,process_number,ratio_,colour_,estimate_quantity,unit_price,reason_,cloth_price,wages_,roll_length,remark_,status_,del_flag,create_by,create_time,update_by,update_time		from base_work where id_=#{0}
 	</select>
 	<select id="exist" parameterType="string" resultType="int">
 		select count(*) from base_work where id_=#{0}