From 0cc569b6defaeaf54a09ec1d27a3310f014760b5 Mon Sep 17 00:00:00 2001 From: xuli Date: Thu, 22 Feb 2024 15:59:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9C=8B=E6=9D=BF=E4=BC=98=E5=8C=962?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NFine.Application/SRM/WatchPanelApp.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/NFine.Application/SRM/WatchPanelApp.cs b/NFine.Application/SRM/WatchPanelApp.cs index 28065d5..ee4ce19 100644 --- a/NFine.Application/SRM/WatchPanelApp.cs +++ b/NFine.Application/SRM/WatchPanelApp.cs @@ -1602,14 +1602,14 @@ ORDER BY 销售车号,物料编码,报工人 --1、待检验数据 待检车辆 select count(1) Qty into #Tcustt_TOCKQty from ( - select b.molotCode [销售车号] , dj.LOTNO [产品跟踪单], dj.OPCODE [工序代码] + select b.molotCode [销售车号] -- , dj.LOTNO [产品跟踪单], dj.OPCODE [工序代码] from #TcusttDJ dj inner join #Tcustttemp1 a on dj.ROUTECODE = a.ROUTECODE and a.OPCODE = dj.OPCODE and optionalop ='检验工序' inner join icsmo b with(nolock) on dj.MOCODE = b.MOCODE and dj.MOSEQ = b.MOSEQ inner join ICSMO2user d with(nolock) on b.mocode = d.mocode and b.moseq = d.moseq and d.opcode = dj.OPCODE - union All - select c.molotCode [销售车号] , d.LOTNO [产品跟踪单], d.OPCODE [工序代码] + union + select c.molotCode [销售车号] --, d.LOTNO [产品跟踪单], d.OPCODE [工序代码] from (select * from ICSITEMROUTE2OP with(nolock) where optionalop ='检验工序' and routecode in( select DISTINCT routecode from ICSITEMROUTE2OP with(nolock) GROUP BY routecode HAVING count(*) = 1 )) a --查询只有一道工序的工艺路线 @@ -1625,7 +1625,7 @@ ORDER BY 销售车号,物料编码,报工人 --1、已检验数据 已检车辆 select count(1) Qty into #Tcustt_CKQty from ( - SELECT distinct mm.molotcode 销售车号,b.LOTNO,a.OPCODE + SELECT distinct mm.molotcode 销售车号--,b.LOTNO,a.OPCODE from ICSQualityCKDATA a with(nolock) 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