diff --git a/src/main/resources/mapper/production/DailyPlanMapper.xml b/src/main/resources/mapper/production/DailyPlanMapper.xml index f5d6af5..0f714af 100644 --- a/src/main/resources/mapper/production/DailyPlanMapper.xml +++ b/src/main/resources/mapper/production/DailyPlanMapper.xml @@ -1374,7 +1374,7 @@ , a.c_sys_scrap_rate as csysScrapRate, b.shiftType as shiftType, - SOP.LastStartTime as lastStartTime, + dbo.Get_SFDC_TimeHist_EventTime(a.site,a.OrderNo,a.ItemNo,a.SeqNo) as lastStartTime, case when a.ReportQty!=0 then Round((a.ReportQty - a.ApproveQty) * 100 / a.ReportQty, 2) else 0 end as scrapRate @@ -1388,7 +1388,6 @@ left join SFDC_DefectHist g on a.site = g.site and a.OrderNo = g.OrderNo and a.seqNo = g.SeqNo and g.DefectCode = 'PQ003' left join SoRouting h on b.site=h.site and b.orderNo=h.OrderNo and b.itemNo=h.itemNo - LEFT JOIN SORoutingOutput SOP ON a.site=SOP.site and a.OrderNo=SOP.OrderNo and SOP.itemNo=dbo.Get_SORouting_PreviousOperationItemNo(a.site,a.OrderNo,h.itemNo) and a.AssJobSeqNo is not null