left join pro_order_workorder pow on be.equipment_code = pow.workorder_name
LEFT JOIN base_shifts_t bst ON bst.Shift_Id=pow.shift_id
@ -826,6 +830,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
GROUP BY
use_man_remark,
remark,workorder_code) mrw ON mrw.workorder_code = pow.workorder_code
LEFT JOIN ( SELECT workorder_code, SUM ( quantity_feedback ) AS total_quantity_feedback FROM mes_report_work GROUP BY workorder_code ) mrw_summary ON pow.workorder_code = mrw_summary.workorder_code
where be.del_flag = '0' and be.sap_code is not null and pow.status in ('w2','w3')
and pow.parent_order = '0' and pow.del_flag='0'
<iftest="sapName != null and sapName != ''">and be.equipment_name like concat('%', #{sapName}, '%')</if>
@ -1814,4 +1819,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"