From c323e72f2663d6f2750e4c470c37806bfde1460e Mon Sep 17 00:00:00 2001 From: xuli Date: Fri, 12 Jul 2024 14:01:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=B2=E6=A3=80=E6=95=B0=E9=87=8F=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NFine.Application/SRM/WatchPanelApp.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/NFine.Application/SRM/WatchPanelApp.cs b/NFine.Application/SRM/WatchPanelApp.cs index 6a8970a..cfaec57 100644 --- a/NFine.Application/SRM/WatchPanelApp.cs +++ b/NFine.Application/SRM/WatchPanelApp.cs @@ -1704,7 +1704,7 @@ left join #Tempcccc cc on a.销售车辆号=cc.销售车辆号 GROUP BY a.ITEMCODE,a.ROUTECODE HAVING COUNT(b.ACTIONRESULT) > 0) c on a.ITEMCODE = c.ITEMCODE and a.ROUTECODE = c.ROUTECODE left join icsmo d on d.MOCODE = b.MOCODE and b.SEQ = d.MOSEQ - inner join ICSMO2user e on d.mocode = e.mocode and e.moseq = d.moseq and year(e.mtime) = year(GETDATE()) and month(e.mtime) = month(GETDATE()) + inner join ICSMO2user e on d.mocode = e.mocode and e.moseq = d.moseq and year(e.mtime) = year(GETDATE()) and month(e.mtime) = month(GETDATE()) order by ITEMCODE,OPControlSeq @@ -1791,11 +1791,13 @@ left join #Tempcccc cc on a.销售车辆号=cc.销售车辆号 LEFT JOIN ICSQualityCKDATADetail b with(nolock) on a.LOTNO=b.LOTNO and a.ID=b.DATAID LEFT JOIN ICSLOTONWIP d with(nolock) on d.LotNo=a.LOTNO and d.opcode=a.OPCODE LEFT JOIN icsmo mm with(nolock) on mm.MOCODE =d.MOCODE and mm.MOSEQ=d.MOSEQ - + LEFT JOIN ICSITEMROUTE2OPLot ll with(nolock) on ll.OPCODE=a.OPCODE and ll.LotNo=a.LOTNO - WHERE ll.OPType='检验工序' and MONTH(d.BeginTime)=MONTH(GETDATE()) and YEAR((d.BeginTime)) = YEAR(GETDATE()) --b.MTIME>= CONVERT(varchar(7), dateadd(mm,-1,getdate()), 21) +'-01 00:00:00' + WHERE ll.OPType='检验工序' + and exists(select 1 from ICSSO so where SO.socode = mm.molotCode) +and MONTH(d.BeginTime)=MONTH(GETDATE()) and YEAR((d.BeginTime)) = YEAR(GETDATE()) --b.MTIME>= CONVERT(varchar(7), dateadd(mm,-1,getdate()), 21) +'-01 00:00:00' and b.CKRESULT is not null ) jj