|
@@ -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}
|