|
|
|
@ -71,19 +71,14 @@
|
|
|
|
|
<if test="incomeBatchNo != null and incomeBatchNo != ''">and qct.income_batch_no = #{incomeBatchNo}</if>
|
|
|
|
|
<if test="orderNo != null and orderNo != ''">and qct.order_no = #{orderNo}</if>
|
|
|
|
|
<if test="materialCode != null and materialCode != ''">and qct.material_code = #{materialCode}</if>
|
|
|
|
|
<if test="materialName != null and materialName != ''">and qct.material_name like concat('%',
|
|
|
|
|
#{materialName}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="materialName != null and materialName != ''">and qct.material_name like concat('%',#{materialName}, '%')</if>
|
|
|
|
|
<if test="supplierCode != null and supplierCode != ''">and qct.supplier_code = #{supplierCode}</if>
|
|
|
|
|
<if test="supplierName != null and supplierName != ''">and qct.supplier_name like concat('%',
|
|
|
|
|
#{supplierName}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="supplierName != null and supplierName != ''">and qct.supplier_name like concat('%',#{supplierName}, '%')</if>
|
|
|
|
|
<if test="checkLoc != null and checkLoc != ''">and qct.check_loc = #{checkLoc}</if>
|
|
|
|
|
<if test="checkStatus != null and checkStatus != ''">and qct.check_status = #{checkStatus}</if>
|
|
|
|
|
<if test="checkManCode != null and checkManCode != ''">and qct.check_man_code = #{checkManCode}</if>
|
|
|
|
|
<if test="checkManName != null and checkManName != ''">and qct.check_man_name like concat('%',
|
|
|
|
|
#{checkManName}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="checkManName != null and checkManName != ''">and qct.check_man_name like concat('%',#{checkManName}, '%')</if>
|
|
|
|
|
and qct.del_flag = '0' and pow.del_flag = '0'
|
|
|
|
|
<if test="checkResult != null and checkResult != ''">and qct.check_result = #{checkResult}</if>
|
|
|
|
|
<if test="status != null and status != ''">and qct.status = #{status}</if>
|
|
|
|
|
<if test="delFlag != null and delFlag != ''">and qct.del_flag = #{delFlag}</if>
|
|
|
|
@ -265,7 +260,7 @@
|
|
|
|
|
from qc_check_task qct
|
|
|
|
|
left join pro_order_workorder pow on pow.workorder_code = qct.order_no
|
|
|
|
|
left join pro_order_workorder_batch powb on powb.workorder_id = pow.workorder_id
|
|
|
|
|
where qct.record_id = #{recordId}
|
|
|
|
|
where qct.record_id = #{recordId} and qct.del_flag = '0' and pow.del_flag = '0' and powb.del_flag = '0'
|
|
|
|
|
order by powb.batch_code
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getLastXJ" resultType="com.op.quality.domain.QcCheckTaskProduce">
|
|
|
|
|