|
|
|
@ -645,28 +645,27 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getProductMixInShopOrder" resultType="com.gaotao.modules.shopOrder.entity.ProductMixInShopOrder"> |
|
|
|
Select B.Site |
|
|
|
, B.OrderNo |
|
|
|
, B.ItemNo |
|
|
|
, B.ComponentPartNo |
|
|
|
, P.PartDescription as PartDesc |
|
|
|
, P.Spec as PartSpec |
|
|
|
, P.UMid as PartUm |
|
|
|
, B.QtyAssembly |
|
|
|
, B.QtyFixedScrapt |
|
|
|
, B.ScraptFactor |
|
|
|
, B.Remark |
|
|
|
, B.QtyRequired |
|
|
|
, B.QtyIssue |
|
|
|
, B.IssueDate |
|
|
|
, B.QtyReserved |
|
|
|
, B.RMType_DB |
|
|
|
From dbo.view_SAP_SOBOM as B |
|
|
|
left join Part as P on B.Site = P.Site |
|
|
|
and B.ComponentPartNo = P.PartNo |
|
|
|
Where |
|
|
|
B.Site = #{site} |
|
|
|
and B.OrderNo = #{orderNo} |
|
|
|
SELECT |
|
|
|
B.Site, |
|
|
|
B.OrderNo, |
|
|
|
B.ItemNo, |
|
|
|
B.ComponentPartNo, |
|
|
|
P.PartDescription AS PartDesc, |
|
|
|
P.Spec AS PartSpec, |
|
|
|
P.UMid AS PartUm, |
|
|
|
B.QtyAssembly, |
|
|
|
B.QtyFixedScrapt, |
|
|
|
B.ScraptFactor, |
|
|
|
B.Remark, |
|
|
|
B.QtyRequired, |
|
|
|
B.QtyIssue, |
|
|
|
B.IssueDate, |
|
|
|
B.QtyReserved, |
|
|
|
B.RMType_DB, |
|
|
|
p.issue_method |
|
|
|
FROM dbo.view_SAP_SOBOM AS B |
|
|
|
left join Part as P on B.Site = P.Site and B.ComponentPartNo = P.PartNo |
|
|
|
Where B.Site = #{site} and B.OrderNo = #{orderNo} |
|
|
|
Order by B.ItemNo |
|
|
|
</select> |
|
|
|
<select id="getShopOrderSapSOBOM" resultType="com.gaotao.modules.shopOrder.entity.ProductMixInShopOrder"> |
|
|
|
|