From 0358a74110fe3a426bee137076af6bbe26f2ac5d Mon Sep 17 00:00:00 2001 From: fyw Date: Thu, 9 May 2024 17:23:50 +0800 Subject: [PATCH] no message --- NFine.Application/SRM/WatchPanelApp.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/NFine.Application/SRM/WatchPanelApp.cs b/NFine.Application/SRM/WatchPanelApp.cs index 1340ecd..0e49581 100644 --- a/NFine.Application/SRM/WatchPanelApp.cs +++ b/NFine.Application/SRM/WatchPanelApp.cs @@ -1765,7 +1765,7 @@ left join #Tempcccc cc on a.销售车辆号=cc.销售车辆号 left join #yjCheck1 ck on ck.routecode = a.routecode left join ICSITEMROUTE2OPLot lot on b.itemcode = lot.ITEMCODE and dj.ROUTECODE = lot.ROUTECODE and lot.OPCODE = dj.opcode left join ICSINVENTORY e on a.ITEMCODE = e.INVCODE - where year(d.MTIME) = year(GETDATE()) and month(d.MTIME) = month(GETDATE()) and + where year(d.MTIME) = year(GETDATE()) and month(d.MTIME) = month(GETDATE()) union All select distinct c.molotCode [销售车号] from (select * from ICSITEMROUTE2OP where optionalop ='检验工序' and routecode in( @@ -1778,7 +1778,9 @@ left join #Tempcccc cc on a.销售车辆号=cc.销售车辆号 left join ICSSO so on SO.socode = c.molotCode left join ICSOP op on d.opcode = OP.opcode where year(d.MTIME) = year(GETDATE()) and month(d.MTIME) = month(GETDATE()) and not exists (select 1 from ICSLOTONWIP wip where wip.lotno = d.LOTNO and wip.opcode =d.OPCODE and wip.actionresult ='COLLECT_END') - )jj + ) jj + + --1、已检验数据 已检车辆 @@ -1802,7 +1804,11 @@ left join #Tempcccc cc on a.销售车辆号=cc.销售车辆号 isnull((select Qty from #Tcustt_CKQty ),0) 已检车辆, isnull((select count(1) from ICSZXCheck with(nolock) where checked='0'),0) 待整改, isnull((select count(1) from ICSZXCheck with(nolock) where checked='1' and month>= CONVERT(varchar(7), dateadd(mm,-1,getdate()), 21) +'-01' ),0) 已整改 - + drop table #temp1 + drop table #DJ + drop table #yjCheck + drop table #yjCheck1 + drop table #filter if exists(select * from tempdb..sysobjects where id=object_id('tempdb..#Tcustttemp1')) drop table #Tcustttemp1