From 8f85b01eaa919ffd1f0ede38d9e88eb4e3ae80f2 Mon Sep 17 00:00:00 2001
From: zrg <z18737863051@163.com>
Date: 星期四, 22 八月 2024 14:22:48 +0800
Subject: [PATCH] 修复增加设备工艺参数点检 系统参数保存报错 优化异常反馈单 发送消息,增加 标识 已签到-已处理-已验收

---
 WebAPI/Controllers/SCGL/Sc_MESTransFerWorkBillController.cs |   43 ++++++++++++++++++++++++++++++-------------
 1 files changed, 30 insertions(+), 13 deletions(-)

diff --git a/WebAPI/Controllers/SCGL/Sc_MESTransFerWorkBillController.cs b/WebAPI/Controllers/SCGL/Sc_MESTransFerWorkBillController.cs
index 08ca53e..cf91001 100644
--- a/WebAPI/Controllers/SCGL/Sc_MESTransFerWorkBillController.cs
+++ b/WebAPI/Controllers/SCGL/Sc_MESTransFerWorkBillController.cs
@@ -2925,7 +2925,7 @@
                 {
 
                     bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo);
-                    _ = SendDingDingAsync(oBill.omodel.HSendMan, 1, oBill.omodel.HDescription, oBill.omodel.HReceiveMan);
+                    _ = SendDingDingAsync(oBill.omodel.HSendMan, 2, oBill.omodel.HDescription, oBill.omodel.HReceiveMan);
                 }
                 else if (refSav == "Update")
                 {
@@ -6653,7 +6653,7 @@
 
             }
 
-            if (HHandleEmpID==0) //寮傚父鍙嶉楠屾敹鍗曚繚瀛�  灏嗘秷鎭� 鍙戦�佺粰 鎺ユ敹浜猴紝鎸囨淳澶勭悊浜猴紝鍏ㄩ儴鎶勯�佷汉 
+            if (HHandleEmpID==0) // 
             {
                 string HReceiveMan = HSendMan;
                 string[] names = HCopyMan.Split(',');
@@ -6674,13 +6674,14 @@
 
                 }
                 concatenatedNames = string.Join(",", HNames);
+                HDescription = HDescription + "--宸查獙鏀�";
             }
-            else if (HHandleEmpID==1)//寮傚父鍙嶉绛惧埌鍗�,寮傚父鍙嶉澶勭悊鍗�  灏嗘秷鎭� 鍙戦�佺粰 鍙戦�佷汉锛屾帴鏀朵汉
+            else if (HHandleEmpID==1)//寮傚父鍙嶉澶勭悊鍗�  灏嗘秷鎭� 鍙戦�佺粰 鍙戦�佷汉锛屾帴鏀朵汉
             {
                 //鑾峰彇鍙戦�佷汉  鎺ユ敹浜�
                 string HReceiveMan = HCopyMan;
                 string sql1 = "select HDingDingUserID 閽夐拤id from Gy_Czygl where Czymc in ('" + HSendMan + "','" + HReceiveMan + "')";
-                ds = oCN.RunProcReturn(sql1, "Gy_Czygl");               
+                ds = oCN.RunProcReturn(sql1, "Gy_Czygl");                   
                 List<string> HNames = new List<string>();
                 for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                 {
@@ -6689,16 +6690,13 @@
 
                 }
                 concatenatedNames = string.Join(",", HNames);
+                HDescription = HDescription + "--宸茬鍒�";
             }
-            else
+            else if (HHandleEmpID == 2)//寮傚父鍙嶉澶勭悊鍗�  灏嗘秷鎭� 鍙戦�佺粰 鍙戦�佷汉锛屾帴鏀朵汉
             {
-                //鏌ヨ鎸囨淳澶勭悊浜�
-                string sql = "select HName from Gy_Employee where HItemID='" + HHandleEmpID + "'";
-                ds = oCN.RunProcReturn(sql, "Gy_Employee");
-                string HHandleEmpName = ds.Tables[0].Rows[0]["HName"].ToString();
-                //鑾峰彇鎸囨淳澶勭悊浜�,鍙戦�佷汉鐨勯拤閽塱d
-                string sql1 = "select HDingDingUserID 閽夐拤id from Gy_Czygl where Czymc in ('" + HSendMan + "','" + HHandleEmpName + "')";
-                LogService.CustomWriteLog("10鍙傛暟" + sql1, "寮傚父缃氭");
+                //鑾峰彇鍙戦�佷汉  鎺ユ敹浜�
+                string HReceiveMan = HCopyMan;
+                string sql1 = "select HDingDingUserID 閽夐拤id from Gy_Czygl where Czymc in ('" + HSendMan + "','" + HReceiveMan + "')";
                 ds = oCN.RunProcReturn(sql1, "Gy_Czygl");
                 List<string> HNames = new List<string>();
                 for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
@@ -6708,7 +6706,26 @@
 
                 }
                 concatenatedNames = string.Join(",", HNames);
-                LogService.CustomWriteLog("9鍙傛暟" + concatenatedNames, "寮傚父缃氭");
+                HDescription = HDescription + "--宸插鐞�";
+            }
+            else
+            {
+                //鏌ヨ鎸囨淳澶勭悊浜�
+                string sql = "select HName from Gy_Employee where HItemID='" + HHandleEmpID + "'";
+                ds = oCN.RunProcReturn(sql, "Gy_Employee");
+                string HHandleEmpName = ds.Tables[0].Rows[0]["HName"].ToString();
+                //鑾峰彇鎸囨淳澶勭悊浜�,鍙戦�佷汉鐨勯拤閽塱d
+                string sql1 = "select HDingDingUserID 閽夐拤id from Gy_Czygl where Czymc in ('" + HSendMan + "','" + HHandleEmpName + "')";
+                ds = oCN.RunProcReturn(sql1, "Gy_Czygl");
+                List<string> HNames = new List<string>();
+                for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
+                {
+                    string HName = ds.Tables[0].Rows[i]["閽夐拤id"].ToString();
+                    HNames.Add(HName);
+
+                }
+                concatenatedNames = string.Join(",", HNames);
+                HDescription = HDescription + "--宸叉帴鏀�";
             }
           
             //鑾峰彇浼佷笟鐨刟ccess_token鐨勫��

--
Gitblit v1.9.1