From 9a36c209b6f8708e3c96e058c70b57534e7664d9 Mon Sep 17 00:00:00 2001 From: ruanqi Date: Fri, 13 Sep 2024 11:39:58 +0800 Subject: [PATCH] =?UTF-8?q?0412=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/production/SoScheduledListMapper.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/resources/mapper/production/SoScheduledListMapper.xml b/src/main/resources/mapper/production/SoScheduledListMapper.xml index 90804e6..cda6426 100644 --- a/src/main/resources/mapper/production/SoScheduledListMapper.xml +++ b/src/main/resources/mapper/production/SoScheduledListMapper.xml @@ -228,16 +228,17 @@ Convert( varchar(20),Round(isnull(dbo.Get_liuhuaView_wanchenglv(a.site,a.SeqNo,'加工'),0),3))+'%' as jiagongWancheng, Convert( varchar(20),Round(isnull(dbo.Get_liuhuaView_wanchenglv(a.site,a.SeqNo,'包装'),0),3))+'%' as baozhuangWancheng, (select Convert( DECIMAL(20,2),sum( f.QtyApprove*dbo.Get_SPBOMQtyAssembly(f.site,f.orderNo))*100.0/a.QtyReported) - ,z.TillTime as liuhuaTime,dbo.Get_liuhuaView_gongxu_firstReportTime(a.site,a.SeqNo,'修边') as xiubianTime - ,dbo.Get_liuhuaView_gongxu_firstReportTime(a.site,a.SeqNo,'烘烤') as hongkaoTime - ,dbo.Get_liuhuaView_gongxu_firstReportTime(a.site,a.SeqNo,'检验') as jianyanTime - ,dbo.Get_liuhuaView_gongxu_firstReportTime(a.site,a.SeqNo,'加工') as jiagongTime - ,dbo.Get_liuhuaView_gongxu_firstReportTime(a.site,a.SeqNo,'包装') as baozhuangTime from SOScheduledRouting f where f.materSeqNo =a.SeqNo and dbo.Get_ProductionLineDesc(f.site,dbo.Get_WorkCenter_ProLineNo(f.site,f.S_WorkCenterNo)) like '%检验%' and f.QtyReported>0 ) as liuhuahegelv + + ,z.TillTime as liuhuaTime,dbo.Get_liuhuaView_gongxu_firstReportTime(a.site,a.SeqNo,'修边') as xiubianTime + ,dbo.Get_liuhuaView_gongxu_firstReportTime(a.site,a.SeqNo,'烘烤') as hongkaoTime + ,dbo.Get_liuhuaView_gongxu_firstReportTime(a.site,a.SeqNo,'检验') as jianyanTime + ,dbo.Get_liuhuaView_gongxu_firstReportTime(a.site,a.SeqNo,'加工') as jiagongTime + ,dbo.Get_liuhuaView_gongxu_firstReportTime(a.site,a.SeqNo,'包装') as baozhuangTime from SOScheduledRouting a left join shoporder b on a.site=b.site and a.orderNo=b.orderNo left join SFDC_TimeHist z on a.site=z.Site and a.SeqNo=z.SeqNo and z.HistSeqNo=1