| | |
| | | </update> |
| | | |
| | | <select id="selectAndLogByOrderNo" resultType="com.zy.asrs.common.wms.entity.WrkDetl"> |
| | | select awd.* |
| | | from wms_wrk_detl awd |
| | | left join wms_wrk_mast awm on awd.wrk_no = awm.wrk_no and awd.io_time = awm.io_time |
| | | select wd.* |
| | | from wms_wrk_detl wd |
| | | left join wms_wrk_mast wm on wd.wrk_mast_id = wm.id and wd.host_id = wm.host_id |
| | | where order_no = #{orderNo} |
| | | and host_id = #{hostId} |
| | | and wd.host_id = #{hostId} |
| | | union |
| | | select distinct awdl.* |
| | | from wms_wrk_detl_log awdl |
| | | left join wms_wrk_mast_log awml on awdl.wrk_no = awml.wrk_no and awdl.io_time = awml.io_time |
| | | where awdl.order_no = #{orderNo} |
| | | and host_id = #{hostId} |
| | | and (awml.manu_type is null or awml.manu_type != '手动取消') |
| | | select distinct wdl.* |
| | | from wms_wrk_detl_log wdl |
| | | left join wms_wrk_mast_log wml on wdl.wrk_mast_id = wml.id and wdl.host_id = wml.host_id |
| | | where wdl.order_no = #{orderNo} |
| | | and wdl.host_id = #{hostId} |
| | | and (wml.manu_type is null or wml.manu_type != '手动取消') |
| | | </select> |
| | | |
| | | <select id="selectPakoutQuery" resultType="com.zy.asrs.common.wms.entity.WrkDetl"> |