|
@@ -5,28 +5,29 @@
|
|
|
<mapper namespace="com.jpsoft.printing.modules.base.dao.WorkDAO">
|
|
|
<resultMap id="WorkMap" type="com.jpsoft.printing.modules.base.entity.Work">
|
|
|
<id property="id" column="id_" />
|
|
|
- <result property="customerId" column="customer_id" />
|
|
|
- <result property="name" column="name_" />
|
|
|
- <result property="width" column="width_" />
|
|
|
- <result property="number" column="number_" />
|
|
|
- <result property="processDate" column="process_date" />
|
|
|
- <result property="processVolume" column="process_volume" />
|
|
|
- <result property="processRemark" column="process_remark" />
|
|
|
- <result property="processNumber" column="process_number" />
|
|
|
- <result property="ratio" column="ratio_" />
|
|
|
- <result property="colour" column="colour_" />
|
|
|
- <result property="estimateQuantity" column="estimate_quantity" />
|
|
|
- <result property="unitPrice" column="unit_price" />
|
|
|
- <result property="reason" column="reason_" />
|
|
|
- <result property="clothPrice" column="cloth_price" />
|
|
|
- <result property="wages" column="wages_" />
|
|
|
- <result property="remark" column="remark_" />
|
|
|
- <result property="delFlag" column="del_flag" />
|
|
|
- <result property="createBy" column="create_by" />
|
|
|
- <result property="createTime" column="create_time" />
|
|
|
- <result property="updateBy" column="update_by" />
|
|
|
- <result property="updateTime" column="update_time" />
|
|
|
- </resultMap>
|
|
|
+ <result property="customerId" column="customer_id" />
|
|
|
+ <result property="name" column="name_" />
|
|
|
+ <result property="width" column="width_" />
|
|
|
+ <result property="number" column="number_" />
|
|
|
+ <result property="processDate" column="process_date" />
|
|
|
+ <result property="processVolume" column="process_volume" />
|
|
|
+ <result property="processRemark" column="process_remark" />
|
|
|
+ <result property="processNumber" column="process_number" />
|
|
|
+ <result property="ratio" column="ratio_" />
|
|
|
+ <result property="colour" column="colour_" />
|
|
|
+ <result property="estimateQuantity" column="estimate_quantity" />
|
|
|
+ <result property="unitPrice" column="unit_price" />
|
|
|
+ <result property="reason" column="reason_" />
|
|
|
+ <result property="clothPrice" column="cloth_price" />
|
|
|
+ <result property="wages" column="wages_" />
|
|
|
+ <result property="remark" column="remark_" />
|
|
|
+ <result property="status" column="status_" />
|
|
|
+ <result property="delFlag" column="del_flag" />
|
|
|
+ <result property="createBy" column="create_by" />
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
+ <result property="updateBy" column="update_by" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ </resultMap>
|
|
|
<insert id="insert" parameterType="com.jpsoft.printing.modules.base.entity.Work">
|
|
|
<!--
|
|
|
<selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
|
@@ -35,7 +36,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_,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_,remark_,status_,del_flag,create_by,create_time,update_by,update_time)
|
|
|
values
|
|
|
(
|
|
|
#{id,jdbcType=VARCHAR}
|
|
@@ -55,6 +56,7 @@
|
|
|
,#{clothPrice,jdbcType= NUMERIC }
|
|
|
,#{wages,jdbcType= NUMERIC }
|
|
|
,#{remark,jdbcType=VARCHAR}
|
|
|
+,#{status,jdbcType= NUMERIC }
|
|
|
,#{delFlag,jdbcType= NUMERIC }
|
|
|
,#{createBy,jdbcType=VARCHAR}
|
|
|
,#{createTime,jdbcType= TIMESTAMP }
|
|
@@ -116,6 +118,9 @@
|
|
|
</if>
|
|
|
<if test="remark!=null">
|
|
|
remark_=#{remark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="status!=null">
|
|
|
+ status_=#{status,jdbcType= NUMERIC },
|
|
|
</if>
|
|
|
<if test="delFlag!=null">
|
|
|
del_flag=#{delFlag,jdbcType= NUMERIC },
|
|
@@ -137,7 +142,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_,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_,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}
|