|
@@ -22,6 +22,8 @@
|
|
<result property="clothPrice" column="cloth_price" />
|
|
<result property="clothPrice" column="cloth_price" />
|
|
<result property="wages" column="wages_" />
|
|
<result property="wages" column="wages_" />
|
|
<result property="rollLength" column="roll_length" />
|
|
<result property="rollLength" column="roll_length" />
|
|
|
|
+ <result property="tagOperator" column="tag_operator" />
|
|
|
|
+ <result property="tagFactor" column="tag_factor" />
|
|
<result property="remark" column="remark_" />
|
|
<result property="remark" column="remark_" />
|
|
<result property="status" column="status_" />
|
|
<result property="status" column="status_" />
|
|
<result property="delFlag" column="del_flag" />
|
|
<result property="delFlag" column="del_flag" />
|
|
@@ -38,7 +40,7 @@
|
|
-->
|
|
-->
|
|
<![CDATA[
|
|
<![CDATA[
|
|
insert into base_work
|
|
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,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,remark_,status_,del_flag,create_by,create_time,update_by,update_time)
|
|
values
|
|
values
|
|
(
|
|
(
|
|
#{id,jdbcType=VARCHAR}
|
|
#{id,jdbcType=VARCHAR}
|
|
@@ -59,6 +61,8 @@
|
|
,#{clothPrice,jdbcType= NUMERIC }
|
|
,#{clothPrice,jdbcType= NUMERIC }
|
|
,#{wages,jdbcType= NUMERIC }
|
|
,#{wages,jdbcType= NUMERIC }
|
|
,#{rollLength,jdbcType= NUMERIC }
|
|
,#{rollLength,jdbcType= NUMERIC }
|
|
|
|
+,#{tagOperator,jdbcType=VARCHAR}
|
|
|
|
+,#{tagFactor,jdbcType= NUMERIC }
|
|
,#{remark,jdbcType=VARCHAR}
|
|
,#{remark,jdbcType=VARCHAR}
|
|
,#{status,jdbcType= NUMERIC }
|
|
,#{status,jdbcType= NUMERIC }
|
|
,#{delFlag,jdbcType= NUMERIC }
|
|
,#{delFlag,jdbcType= NUMERIC }
|
|
@@ -128,6 +132,12 @@
|
|
</if>
|
|
</if>
|
|
<if test="remark!=null">
|
|
<if test="remark!=null">
|
|
remark_=#{remark,jdbcType=VARCHAR},
|
|
remark_=#{remark,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="tagOperator!=null">
|
|
|
|
+ tag_operator=#{tagOperator,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="tagFactor!=null">
|
|
|
|
+ tag_factor=#{tagFactor,jdbcType=NUMERIC},
|
|
</if>
|
|
</if>
|
|
<if test="status!=null">
|
|
<if test="status!=null">
|
|
status_=#{status,jdbcType= NUMERIC },
|
|
status_=#{status,jdbcType= NUMERIC },
|
|
@@ -151,8 +161,7 @@
|
|
where id_=#{id}
|
|
where id_=#{id}
|
|
</update>
|
|
</update>
|
|
<select id="get" parameterType="string" resultMap="WorkMap">
|
|
<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,estimate_remark,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 * from base_work where id_=#{0}
|
|
</select>
|
|
</select>
|
|
<select id="exist" parameterType="string" resultType="int">
|
|
<select id="exist" parameterType="string" resultType="int">
|
|
select count(*) from base_work where id_=#{0}
|
|
select count(*) from base_work where id_=#{0}
|