|
|
|
@ -188,11 +188,17 @@ RecordVersion,OutWorkOrderFlag,ProjectID,OrderType,AuthRuleID,bu) |
|
|
|
</delete> |
|
|
|
|
|
|
|
<update id="xiadaNotifyHeader"> |
|
|
|
update SOIssueNotifyHeader set PlanIssueDate=#{planIssueDate}, status='待出库' where site=#{site} and NotifyNo=#{notifyNo} |
|
|
|
update SOIssueNotifyHeader |
|
|
|
set PlanIssueDate = #{planIssueDate}, |
|
|
|
status = '待出库' |
|
|
|
where site = #{site} and NotifyNo = #{notifyNo} |
|
|
|
</update> |
|
|
|
|
|
|
|
<update id="editNotifyMaterial"> |
|
|
|
update SOIssueNotifyHeader set status='编辑中' where site=#{site} and NotifyNo=#{notifyNo} |
|
|
|
update SOIssueNotifyHeader |
|
|
|
set status = '编辑中' |
|
|
|
where site = #{site} |
|
|
|
and NotifyNo = #{notifyNo} |
|
|
|
</update> |
|
|
|
|
|
|
|
<delete id="deleteNotifyHeader"> |
|
|
|
@ -306,7 +312,8 @@ RecordVersion,OutWorkOrderFlag,ProjectID,OrderType,AuthRuleID,bu) |
|
|
|
a.remark, |
|
|
|
c.issue_method, |
|
|
|
a.warehouse_id, |
|
|
|
W.WareHouseName AS warehouseName |
|
|
|
W.WareHouseName AS warehouseName, |
|
|
|
a.BOMItemNo as bOMItemNo |
|
|
|
from SOIssueNotifyOrderMaterialList a |
|
|
|
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 |
|
|
|
@ -516,4 +523,9 @@ RecordVersion,OutWorkOrderFlag,ProjectID,OrderType,AuthRuleID,bu) |
|
|
|
WHERE a.username = #{username} |
|
|
|
</select> |
|
|
|
|
|
|
|
<update id="updateNotifyDetail"> |
|
|
|
UPDATE SOIssueNotifyOrderMaterialList |
|
|
|
SET QtyToIssue = #{qtyToIssue,jdbcType=DOUBLE} |
|
|
|
WHERE Site = #{site} and NotifyNo = #{notifyNo} and ItemNo = #{itemNo} and BOMItemNo = #{bOMItemNo} |
|
|
|
</update> |
|
|
|
</mapper> |