From 0ddfefd21654c1a2199277bdd0fb6e1af92e3035 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期五, 14 二月 2025 09:15:50 +0800
Subject: [PATCH] 角色:新增前查询  确保角色名未重复新增

---
 WebAPI/Controllers/BaseSet/Gy_EmployeeController.cs |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/WebAPI/Controllers/BaseSet/Gy_EmployeeController.cs b/WebAPI/Controllers/BaseSet/Gy_EmployeeController.cs
index e615122..434a27f 100644
--- a/WebAPI/Controllers/BaseSet/Gy_EmployeeController.cs
+++ b/WebAPI/Controllers/BaseSet/Gy_EmployeeController.cs
@@ -870,6 +870,13 @@
                     objJsonResult.Message = "娌℃湁鏁版嵁锛屾棤娉曞垹闄わ紒";
                     objJsonResult.data = null;
                     return objJsonResult; ;
+                }else if (ds.Tables[0].Rows[0]["HCheckEmp"] !=null && ds.Tables[0].Rows[0]["HCheckEmp"].ToString() != "")
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "鑱屽憳宸茬粡瀹℃牳涓嶈兘鍒犻櫎锛�";
+                    objJsonResult.data = null;
+                    return objJsonResult; ;
                 }
                 else
                 {

--
Gitblit v1.9.1