|
|
@ -15,6 +15,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="makeNo" column="make_no" /> |
|
|
|
<result property="saleNo" column="sale_no" /> |
|
|
|
<result property="pickNo" column="pick_no" /> |
|
|
|
<result property="outOrderCode" column="out_order_code" /> |
|
|
|
<result property="pickStatus" column="pick_status" /> |
|
|
|
<result property="pickUser" column="pick_user" /> |
|
|
|
<result property="auditStatus" column="audit_status" /> |
|
|
@ -33,7 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
|
|
|
<sql id="selectSysMakeorderPickVo"> |
|
|
|
select a.id, a.del_flag, a.create_by, a.create_time, a.update_by, a.update_time, a.remark |
|
|
|
, a.make_no, a.sale_no, a.pick_no, a.pick_status, a.pick_user, a.audit_status |
|
|
|
, a.make_no, a.sale_no, a.pick_no, a.out_order_code, a.pick_status, a.pick_user, a.audit_status |
|
|
|
, a.instance_id, a.instance_type, a.submit_instance_id, a.cancel_instance_id, a.restore_instance_id, a.apply_title, a.apply_user, a.apply_time |
|
|
|
,b.material_sum |
|
|
|
,b.enterprise_sum |
|
|
@ -48,6 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="makeNo != null and makeNo != ''"> and a.make_no = #{makeNo}</if> |
|
|
|
<if test="saleNo != null and saleNo != ''"> and a.sale_no = #{saleNo}</if> |
|
|
|
<if test="pickNo != null and pickNo != ''"> and a.pick_no = #{pickNo}</if> |
|
|
|
<if test="outOrderCode != null and outOrderCode != ''"> and a.out_order_code = #{outOrderCode}</if> |
|
|
|
<if test="pickStatus != null and pickStatus != ''"> and a.pick_status = #{pickStatus}</if> |
|
|
|
<if test="pickUser != null and pickUser != ''"> and a.pick_user = #{pickUser}</if> |
|
|
|
<if test="auditStatus != null and auditStatus != ''"> and a.audit_status = #{auditStatus}</if> |
|
|
@ -85,6 +87,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="makeNo != null">make_no,</if> |
|
|
|
<if test="saleNo != null">sale_no,</if> |
|
|
|
<if test="pickNo != null">pick_no,</if> |
|
|
|
<if test="outOrderCode != null">out_order_code,</if> |
|
|
|
<if test="pickStatus != null">pick_status,</if> |
|
|
|
<if test="pickUser != null">pick_user,</if> |
|
|
|
<if test="auditStatus != null">audit_status,</if> |
|
|
@ -107,6 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="makeNo != null">#{makeNo},</if> |
|
|
|
<if test="saleNo != null">#{saleNo},</if> |
|
|
|
<if test="pickNo != null">#{pickNo},</if> |
|
|
|
<if test="outOrderCode != null">#{outOrderCode},</if> |
|
|
|
<if test="pickStatus != null">#{pickStatus},</if> |
|
|
|
<if test="pickUser != null">#{pickUser},</if> |
|
|
|
<if test="auditStatus != null">#{auditStatus},</if> |
|
|
@ -133,6 +137,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="makeNo != null">make_no = #{makeNo},</if> |
|
|
|
<if test="saleNo != null">sale_no = #{saleNo},</if> |
|
|
|
<if test="pickNo != null">pick_no = #{pickNo},</if> |
|
|
|
<if test="outOrderCode != null">out_order_code = #{outOrderCode},</if> |
|
|
|
<if test="pickStatus != null">pick_status = #{pickStatus},</if> |
|
|
|
<if test="pickUser != null">pick_user = #{pickUser},</if> |
|
|
|
<if test="auditStatus != null">audit_status = #{auditStatus},</if> |
|
|
@ -167,4 +172,38 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
update sys_makeorder_pick set del_flag = '0' where id = #{id} |
|
|
|
</update> |
|
|
|
|
|
|
|
|
|
|
|
<update id="updateMakeorderPickOutOrderCodeById" parameterType="SysMakeorderPickVo"> |
|
|
|
update sys_makeorder_pick |
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if> |
|
|
|
<if test="createBy != null">create_by = #{createBy},</if> |
|
|
|
<if test="createTime != null">create_time = #{createTime},</if> |
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if> |
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if> |
|
|
|
<if test="remark != null">remark = #{remark},</if> |
|
|
|
<if test="makeNo != null">make_no = #{makeNo},</if> |
|
|
|
<if test="saleNo != null">sale_no = #{saleNo},</if> |
|
|
|
<if test="pickNo != null">pick_no = #{pickNo},</if> |
|
|
|
<if test="outOrderCode != null">out_order_code = #{outOrderCode},</if> |
|
|
|
<if test="pickStatus != null">pick_status = #{pickStatus},</if> |
|
|
|
<if test="pickUser != null">pick_user = #{pickUser},</if> |
|
|
|
<if test="auditStatus != null">audit_status = #{auditStatus},</if> |
|
|
|
<if test="instanceId != null">instance_id = #{instanceId},</if> |
|
|
|
<if test="instanceType != null">instance_type = #{instanceType},</if> |
|
|
|
<if test="submitInstanceId != null">submit_instance_id = #{submitInstanceId},</if> |
|
|
|
<if test="cancelInstanceId != null">cancel_instance_id = #{cancelInstanceId},</if> |
|
|
|
<if test="restoreInstanceId != null">restore_instance_id = #{restoreInstanceId},</if> |
|
|
|
<if test="applyTitle != null">apply_title = #{applyTitle},</if> |
|
|
|
<if test="applyUser != null">apply_user = #{applyUser},</if> |
|
|
|
<if test="applyTime != null">apply_time = #{applyTime},</if> |
|
|
|
</trim> |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|
|
|
|
|
<update id="updateMakeorderPickByCode" parameterType="SysMakeorderPick"> |
|
|
|
update sys_makeorder_pick set pick_status = "2" where out_order_code = #{outOrderCode} |
|
|
|
</update> |
|
|
|
|
|
|
|
|
|
|
|
</mapper> |