|
|
@ -40,25 +40,31 @@ |
|
|
ORDER BY a.notify_no DESC, a.item_no ASC |
|
|
ORDER BY a.notify_no DESC, a.item_no ASC |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<!-- rqrq - 查询申请单物料明细(根据notify_no+site+item_no) --> |
|
|
|
|
|
|
|
|
<!-- rqrq - 查询申请单物料明细(根据notify_no+site+item_no,关联物料号) --> |
|
|
<select id="searchMaterialListDetail" resultType="SOIssueNotifyOrderMaterialListDetail"> |
|
|
<select id="searchMaterialListDetail" resultType="SOIssueNotifyOrderMaterialListDetail"> |
|
|
SELECT |
|
|
SELECT |
|
|
site, |
|
|
|
|
|
notify_no AS notifyNo, |
|
|
|
|
|
item_no AS itemNo, |
|
|
|
|
|
bom_item_no AS bomItemNo, |
|
|
|
|
|
serialNo AS serialNo, |
|
|
|
|
|
task_ref AS taskRef, |
|
|
|
|
|
task_item AS taskItem, |
|
|
|
|
|
task_seq AS taskSeq, |
|
|
|
|
|
out_wcs_flag AS outWcsFlag, |
|
|
|
|
|
issure_flag AS issureFlag, |
|
|
|
|
|
order_type AS orderType |
|
|
|
|
|
FROM SOIssueNotifyOrderMaterialList_detail WITH (NOLOCK) |
|
|
|
|
|
WHERE site = #{query.site} |
|
|
|
|
|
AND notify_no = #{query.notifyNo} |
|
|
|
|
|
AND item_no = #{query.itemNo} |
|
|
|
|
|
ORDER BY bom_item_no, serialNo |
|
|
|
|
|
|
|
|
d.site, |
|
|
|
|
|
d.notify_no AS notifyNo, |
|
|
|
|
|
d.item_no AS itemNo, |
|
|
|
|
|
d.bom_item_no AS bomItemNo, |
|
|
|
|
|
d.serialNo AS serialNo, |
|
|
|
|
|
d.task_ref AS taskRef, |
|
|
|
|
|
d.task_item AS taskItem, |
|
|
|
|
|
d.task_seq AS taskSeq, |
|
|
|
|
|
d.out_wcs_flag AS outWcsFlag, |
|
|
|
|
|
d.issure_flag AS issureFlag, |
|
|
|
|
|
d.order_type AS orderType, |
|
|
|
|
|
m.component_part_no AS componentPartNo |
|
|
|
|
|
FROM SOIssueNotifyOrderMaterialList_detail d WITH (NOLOCK) |
|
|
|
|
|
LEFT JOIN SOIssueNotifyOrderMaterialList m WITH (NOLOCK) |
|
|
|
|
|
ON d.site = m.site |
|
|
|
|
|
AND d.notify_no = m.notify_no |
|
|
|
|
|
AND d.item_no = m.item_no |
|
|
|
|
|
AND d.bom_item_no = m.bom_item_no |
|
|
|
|
|
WHERE d.site = #{query.site} |
|
|
|
|
|
AND d.notify_no = #{query.notifyNo} |
|
|
|
|
|
AND d.item_no = #{query.itemNo} |
|
|
|
|
|
ORDER BY d.bom_item_no, d.serialNo |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
</mapper> |
|
|
</mapper> |
|
|
|