diff --git a/src/main/resources/mapper/production/DailyPlanMapper.xml b/src/main/resources/mapper/production/DailyPlanMapper.xml index 4402066..09543b6 100644 --- a/src/main/resources/mapper/production/DailyPlanMapper.xml +++ b/src/main/resources/mapper/production/DailyPlanMapper.xml @@ -307,11 +307,11 @@ 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 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 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 SOTask_VPSchedule SV on h.site=SV.site and h.OrderNo=SV.TaskOrderNo and s.itemNo=sv.itemNo and so.orderNo=SV.orderNo and uwc.WorkCenterNo is not null