|
|
|
@ -118,17 +118,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
order by product_date desc
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getProductWorkOrder" resultType="com.op.quality.domain.QcCheckTaskIncome">
|
|
|
|
|
select work_order orderNo,
|
|
|
|
|
product_name materialName,
|
|
|
|
|
product_code materialCode,
|
|
|
|
|
batch_number incomeBatchNo,
|
|
|
|
|
plan_quantity quality,
|
|
|
|
|
status,
|
|
|
|
|
create_time incomeTime
|
|
|
|
|
from wms_product_put
|
|
|
|
|
select wpp.work_order orderNo,
|
|
|
|
|
wpp.product_name materialName,
|
|
|
|
|
wpp.product_code materialCode,
|
|
|
|
|
wpp.batch_number incomeBatchNo,
|
|
|
|
|
wpp.plan_quantity quality,
|
|
|
|
|
wpp.unit_of_measure unit,
|
|
|
|
|
wpp.status,
|
|
|
|
|
wpp.create_time incomeTime,
|
|
|
|
|
mrw.workorder_code workorderCode
|
|
|
|
|
from wms_product_put wpp
|
|
|
|
|
left join mes_report_work mrw on wpp.work_order = mrw.report_code
|
|
|
|
|
where 1=1
|
|
|
|
|
<if test="orderNo != null">and work_order like concat like ('%',#{orderNo})</if>
|
|
|
|
|
order by create_time desc
|
|
|
|
|
<if test="orderNo != null">and wpp.work_order like concat like ('%',#{orderNo})</if>
|
|
|
|
|
order by wpp.create_time desc
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="insertQcCheckUnqualified" parameterType="QcCheckUnqualified">
|
|
|
|
@ -203,6 +206,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<update id="updateWorkOrderBatchStatus">
|
|
|
|
|
update pro_order_workorder_batch set qc_status = #{status} where batch_code = #{incomeBatchNo}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updatePutStatus">
|
|
|
|
|
update wms_product_put set check_status = #{status} where batch_number = #{incomeBatchNo}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteQcCheckUnqualifiedById" parameterType="String">
|
|
|
|
|
delete from qc_check_unqualified where id = #{id}
|
|
|
|
|