|
|
@ -307,11 +307,11 @@ |
|
|
left join ShopOrder as t on h.Site=t.Site and h.OrderRef1=t.OrderNo ---硫化的订单t |
|
|
left join ShopOrder as t on h.Site=t.Site and h.OrderRef1=t.OrderNo ---硫化的订单t |
|
|
left join ShopOrder as SO on t.site=SO.Site and t.orderNo=SO.Prelev_order_no and t.E_OriginalOrderType=SO.E_OriginalOrderType |
|
|
left join ShopOrder as SO on t.site=SO.Site and t.orderNo=SO.Prelev_order_no and t.E_OriginalOrderType=SO.E_OriginalOrderType |
|
|
and (SO.PartNo like 'VP%') -----so是vp订单 |
|
|
and (SO.PartNo like 'VP%') -----so是vp订单 |
|
|
left join SOBOM as d on t.Site=D.Site and T.OrderNo=D.OrderNo and (D.ComponentPartNo like 'VP%' ) |
|
|
|
|
|
|
|
|
left join SOBOM as d on t.Site=D.Site and T.OrderNo=D.OrderNo and D.ComponentPartNo =SO.PartNo |
|
|
LEFT JOIN SORouting S on S.site=SO.site and S.OrderNo=SO.OrderNo |
|
|
LEFT JOIN SORouting S on S.site=SO.site and S.OrderNo=SO.OrderNo |
|
|
left join user_work_center uwc on s.site=uwc.site and s.workCenterNo =uwc.WorkCenterNo and uwc.userId= 'admin' |
|
|
left join user_work_center uwc on s.site=uwc.site and s.workCenterNo =uwc.WorkCenterNo and uwc.userId= 'admin' |
|
|
left join part P on so.site=p.site and so.partNo=p.partNo |
|
|
left join part P on so.site=p.site and so.partNo=p.partNo |
|
|
<!-- left join ScheduleList SL on h.site=sl.site and h.OrderNo=sl.OrderNo and ItemNo=10--> |
|
|
|
|
|
|
|
|
|
|
|
left join SOTask_VPSchedule SV on h.site=SV.site and h.OrderNo=SV.TaskOrderNo and s.itemNo=sv.itemNo and so.orderNo=SV.orderNo |
|
|
left join SOTask_VPSchedule SV on h.site=SV.site and h.OrderNo=SV.TaskOrderNo and s.itemNo=sv.itemNo and so.orderNo=SV.orderNo |
|
|
<where> |
|
|
<where> |
|
|
and uwc.WorkCenterNo is not null |
|
|
and uwc.WorkCenterNo is not null |
|
|
|