|
|
@ -169,10 +169,10 @@ RecordVersion,OutWorkOrderFlag,ProjectID,OrderType,AuthRuleID,bu) |
|
|
</delete> |
|
|
</delete> |
|
|
<insert id="batchSaveSOIssueNotifyOrderMaterialListData"> |
|
|
<insert id="batchSaveSOIssueNotifyOrderMaterialListData"> |
|
|
insert into SOIssueNotifyOrderMaterialList |
|
|
insert into SOIssueNotifyOrderMaterialList |
|
|
(NotifyNo, Site, ItemNo, BOMItemNo, ComponentPartNo, QtyToIssue, QtyToIssue_Original, issueType, remark, warehouse_id) |
|
|
|
|
|
|
|
|
(NotifyNo, Site, ItemNo, BOMItemNo, ComponentPartNo, QtyToIssue, QtyToIssue_Original, issueType, remark, warehouse_id, standard_dosage) |
|
|
values |
|
|
values |
|
|
<foreach collection="list" separator="," item="item"> |
|
|
<foreach collection="list" separator="," item="item"> |
|
|
(#{item.notifyNo}, #{item.site}, #{item.itemNo}, #{item.bOMItemNo}, #{item.componentPartNo}, #{item.qtyToIssue}, 0, #{item.issueType}, #{item.remark}, #{item.warehouseId}) |
|
|
|
|
|
|
|
|
(#{item.notifyNo}, #{item.site}, #{item.itemNo}, #{item.bOMItemNo}, #{item.componentPartNo}, #{item.qtyToIssue}, 0, #{item.issueType}, #{item.remark}, #{item.warehouseId}, #{item.standardDosage,jdbcType=FLOAT}) |
|
|
</foreach> |
|
|
</foreach> |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
|
@ -331,7 +331,7 @@ RecordVersion,OutWorkOrderFlag,ProjectID,OrderType,AuthRuleID,bu) |
|
|
a.standard_dosage |
|
|
a.standard_dosage |
|
|
from SOIssueNotifyOrderMaterialList a |
|
|
from SOIssueNotifyOrderMaterialList a |
|
|
left join SOIssueNotifyOrderList b on a.site = b.site and a.NotifyNo = b.NotifyNo and a.ItemNo = b.ItemNo |
|
|
left join SOIssueNotifyOrderList b on a.site = b.site and a.NotifyNo = b.NotifyNo and a.ItemNo = b.ItemNo |
|
|
left join SOBOM c on c.site = b.site and b.SOOrderNo = c.OrderNo and c.ItemNo = b.OpsItemNo and c.ComponentPartNo = a.ComponentPartNo |
|
|
|
|
|
|
|
|
left join SOBOM c on c.site = A.site and b.SOOrderNo = c.OrderNo and c.ItemNo = A.BOMItemNo and c.ComponentPartNo = a.ComponentPartNo |
|
|
left join WareHouse w on a.site = w.site and a.warehouse_id = w.WareHouseID |
|
|
left join WareHouse w on a.site = w.site and a.warehouse_id = w.WareHouseID |
|
|
where a.NotifyNo = #{notifyNo} and a.site = #{site} |
|
|
where a.NotifyNo = #{notifyNo} and a.site = #{site} |
|
|
order by b.needDate, a.ItemNo |
|
|
order by b.needDate, a.ItemNo |
|
|
|