From 6708f9f2ddc7471924aed87cae617bb042eaa9f8 Mon Sep 17 00:00:00 2001
From: yl <ykxkd@outlook.com>
Date: 星期一, 21 十一月 2022 15:11:19 +0800
Subject: [PATCH] 富尔达的登陆接口存redis加企业区分,车间生产数字化看板接口开发

---
 VueWebApi/DLL/DAL/KanBanManagerentDAL.cs |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/VueWebApi/DLL/DAL/KanBanManagerentDAL.cs b/VueWebApi/DLL/DAL/KanBanManagerentDAL.cs
index b2fa817..aa240b5 100644
--- a/VueWebApi/DLL/DAL/KanBanManagerentDAL.cs
+++ b/VueWebApi/DLL/DAL/KanBanManagerentDAL.cs
@@ -487,6 +487,36 @@
             return mes;
         }
         #endregion
+
+        #region[瀵屽皵杈捐溅闂寸敓浜ф暟瀛楀寲鐪嬫澘锛岀敓浜т俊鎭痌
+        public static ToMessage WkshpContentData()
+        {
+            string sql = "";
+            try
+            {
+                //鑾峰彇宸ュ崟鎶ュ伐淇℃伅,鎶ュ伐鏁伴噺>0  涓斿伐鍗曠姸鎬佷负闈炲叧闂姸鎬�  
+                sql = @"select A.wo_code,M.partname,B.seq,T.stepname,B.plan_qty,B.good_qty,B.ng_qty,B.bad_qty  from TK_Wrk_Man A
+                        inner join TK_Wrk_Step B on A.wo_code=B.wo_code
+                        left join TMateriel_Info M on A.materiel_code=M.partcode
+                        left join TStep T on B.step_code=T.stepcode
+                        where   A.status<>'CLOSED'
+                        order by A.wo_code,B.seq";
+                var data = DapperHelper.selecttable(sql);
+                mes.code = "200";
+                mes.Message = "鏌ヨ鎴愬姛!";
+                mes.data = data;
+            }
+            catch (Exception e)
+            {
+                mes.code = "300";
+                mes.count = 0;
+                mes.Message = e.Message;
+                mes.data = null;
+            }
+            return mes;
+        }
+        #endregion
+
     }
 }
 

--
Gitblit v1.9.3