From 5ac69a2a0e5a0f1433b4497bc5273bdae656221c Mon Sep 17 00:00:00 2001
From: yl <ykxkd@outlook.com>
Date: 星期二, 07 二月 2023 16:53:18 +0800
Subject: [PATCH] 采购到货生成条码、采购到货提交接口
---
VueWebApi/DLL/DAL/AppAnalyticsDAL.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/VueWebApi/DLL/DAL/AppAnalyticsDAL.cs b/VueWebApi/DLL/DAL/AppAnalyticsDAL.cs
index 6b303d8..9dc1b4c 100644
--- a/VueWebApi/DLL/DAL/AppAnalyticsDAL.cs
+++ b/VueWebApi/DLL/DAL/AppAnalyticsDAL.cs
@@ -66,7 +66,7 @@
select A.plan_qty,M.partname,S.ng_qty,S.bad_qty from TK_Wrk_Man A
inner join (select wo_code, isnull(sum(ng_qty),0) as ng_qty,isnull(sum(bad_qty),0) as bad_qty from TK_Wrk_Step where ng_qty>0 or bad_qty>0 group by wo_code) S on A.wo_code=S.wo_code
inner join TMateriel_Info M on A.materiel_code=M.partcode
- where A.lm_date between @startopendate and @endclosedate and S.ng_qty>0 or S.bad_qty>0
+ where A.lm_date between @startopendate and @endclosedate
) as AA
group by AA.partname
order by defect_qty desc";
@@ -76,7 +76,7 @@
select A.plan_qty,T.stepname,S.ng_qty,S.bad_qty from TK_Wrk_Man A
inner join (select wo_code,step_code, isnull(sum(ng_qty),0) as ng_qty,isnull(sum(bad_qty),0) as bad_qty from TK_Wrk_Step where ng_qty>0 or bad_qty>0 group by wo_code,step_code) S on A.wo_code=S.wo_code
inner join TStep T on S.step_code=T.stepcode
- where A.lm_date between @startopendate and @endclosedate and S.ng_qty>0 or S.bad_qty>0
+ where A.lm_date between @startopendate and @endclosedate
) as AA
group by AA.stepname
order by defect_qty desc";
--
Gitblit v1.9.3