|
|
@ -442,7 +442,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
left join base_shifts_t s on pow.shift_id = s.Shift_Id
|
|
|
|
left join base_shifts_t s on pow.shift_id = s.Shift_Id
|
|
|
|
left join pro_order_workorder pows on pows.parent_order = pow.workorder_code
|
|
|
|
left join pro_order_workorder pows on pows.parent_order = pow.workorder_code
|
|
|
|
left join mes_report_work mrw on mrw.workorder_code = pow.workorder_code
|
|
|
|
left join mes_report_work mrw on mrw.workorder_code = pow.workorder_code
|
|
|
|
where pow.del_flag = '0' and pow.status = 'w2' and pow.parent_order ='0'
|
|
|
|
where pow.del_flag = '0' and mrw.upload_status != '1' and pow.parent_order ='0'
|
|
|
|
and mrw.upload_status != '1'
|
|
|
|
and mrw.upload_status != '1'
|
|
|
|
<if test="workorderCode != null and workorderCode != ''">
|
|
|
|
<if test="workorderCode != null and workorderCode != ''">
|
|
|
|
and pow.workorder_code like concat('%', #{workorderCode}, '%')
|
|
|
|
and pow.workorder_code like concat('%', #{workorderCode}, '%')
|
|
|
@ -472,7 +472,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
select workorder_code_sap workorderCodeSap,
|
|
|
|
select workorder_code_sap workorderCodeSap,
|
|
|
|
workorder_code workorderCode
|
|
|
|
workorder_code workorderCode
|
|
|
|
from pro_order_workorder
|
|
|
|
from pro_order_workorder
|
|
|
|
where belong_work_order = #{workorderCode} and del_flag = '0' and status = 'w2'
|
|
|
|
where belong_work_order = #{workorderCode} and del_flag = '0' <!--and status = 'w2'-->
|
|
|
|
order by parent_order
|
|
|
|
order by parent_order
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<select id="getReportWorkHzList" resultType="com.op.mes.domain.MesReportWork">
|
|
|
|
<select id="getReportWorkHzList" resultType="com.op.mes.domain.MesReportWork">
|
|
|
|