From e7438c176acf8d18c07e1a0946770e0f6cb6fadf Mon Sep 17 00:00:00 2001
From: yl <ykxkd@outlook.com>
Date: 星期一, 21 十一月 2022 15:09:29 +0800
Subject: [PATCH] 灵翔的登陆接口存redis加企业区分

---
 VueWebApi/DLL/DAL/ProductionManagementDAL.cs |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/VueWebApi/DLL/DAL/ProductionManagementDAL.cs b/VueWebApi/DLL/DAL/ProductionManagementDAL.cs
index d774f08..9bcf340 100644
--- a/VueWebApi/DLL/DAL/ProductionManagementDAL.cs
+++ b/VueWebApi/DLL/DAL/ProductionManagementDAL.cs
@@ -2404,7 +2404,7 @@
                 var total = 0; //鎬绘潯鏁�
                 var sql = @"select *  from(
                             select A.id,B.id as sbid,A.wo_code,A.materiel_code as partnumber,P.partname,P.partspec,A.task_qty,M.wkshp_code,G.org_name as wkshp_name,A.eqp_code,E.name as eqp_name,
-                            M.route_code,R.name as route_name,A.step_code,S.stepname,S.flwtype,D.first_choke,D.last_choke,T.unprice,B.usergroup_code,O.group_name as usergroup_name,B.report_person as usercode,U.username,
+                            M.route_code,R.name as route_name,A.step_seq,A.step_code,S.stepname,S.flwtype,D.first_choke,D.last_choke,T.unprice,B.report_person as usercode,U.username,
                             B.report_date,B.report_qty,B.ng_qty,B.bad_qty,B.verify,B.bad_money 
                             from TK_Wrk_Record A
                             inner join TK_Wrk_RecordSub B on A.id=B.m_id
@@ -2417,7 +2417,6 @@
                             left join TFlw_Rout R on M.route_code=R.code
                             left join TFlw_Rtdt D on M.route_code=D.rout_code and A.step_code=D.step_code
                             left join TUser U on B.report_person=U.usercode
-                            left join TGroup O on U.usergroup_code=O.group_code
                             where A.style='B' and B.style='B' and M.status<>'CLOSED'
                             ) as AA where" + search;
                 //union all
@@ -2522,7 +2521,7 @@
 
                         }
                         //鏄惁鏈亾
-                        if (json[i].last_choke == "Y")
+                       else if (json[i].last_choke == "Y")
                         {
                             decimal this_reportqty = decimal.Parse(json[i].report_qty.ToString()); //鎶ュ伐鏁伴噺(鍚堟牸)
                             decimal this_ngqty = decimal.Parse(json[i].ng_qty.ToString()); //涓嶈壇鏁伴噺
@@ -2785,7 +2784,7 @@
                             first_choke=json[i].first_choke.ToString(),
                             last_choke=json[i].last_choke.ToString(),
                             unprice=json[i].unprice.ToString(),
-                            usergroup_code=json[i].usergroup_code.ToString(),
+                            usergroup_code="",
                             usercode=json[i].usercode.ToString(),
                             report_date=json[i].report_date.ToString(),
                             report_qty=json[i].report_qty.ToString(),
@@ -3034,7 +3033,7 @@
                                 wo_code=json[i].wo_code.ToString(),
                                 step_seq=json[i].step_seq.ToString(),
                                 step_code=json[i].step_code.ToString(),
-                                repair_qty = decimal.Parse(json[i].report_qty),
+                                report_qty = decimal.Parse(json[i].report_qty),
                                 ng_qty = decimal.Parse(json[i].ng_qty),
                                 bad_qty = decimal.Parse(json[i].bad_qty),
                             }

--
Gitblit v1.9.3