From 72c6405128192e28ca239f451b662cfcf6dbe1e1 Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期五, 06 九月 2024 15:52:34 +0800
Subject: [PATCH] 1
---
WebAPI/Controllers/BLL/Xt_UserController.cs | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/WebAPI/Controllers/BLL/Xt_UserController.cs b/WebAPI/Controllers/BLL/Xt_UserController.cs
index 48f8432..04cbab1 100644
--- a/WebAPI/Controllers/BLL/Xt_UserController.cs
+++ b/WebAPI/Controllers/BLL/Xt_UserController.cs
@@ -1,6 +1,7 @@
锘縰sing Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Pub_Class;
+using SyntacticSugar.constant;
using System;
using System.Collections;
using System.Collections.Generic;
@@ -107,6 +108,26 @@
objJsonResult.data = null;
return objJsonResult;
}
+
+ //鑾峰彇褰撳墠鐢ㄦ埛韬唤鍒楄〃
+ string sql = "select HLev from System_UserGroupInfo u " +
+ " left join System_UserGroup r " +
+ "on u.GroupId = r.GroupID where u.UserId = '" + HCzybm + "'";
+
+ //鐢ㄦ埛韬唤鍒ゆ柇
+ DataSet hLev = oCN.RunProcReturn(sql, "System_UserGroupInfo");
+ foreach(DataRow dr in hLev.Tables[0].Rows)
+ {
+ if (!dr["HLev"].Equals(RoleConstant.EMPLOYEE))
+ {
+ objJsonResult.code = CodeConstant.FAIL;
+ objJsonResult.count = CountConstant.FAIL;
+ objJsonResult.Message = "绠$悊鍛樿韩浠戒笉鍏佽鍒犻櫎锛�";
+ objJsonResult.data = null;
+ return objJsonResult;
+ }
+ }
+
oCN.BeginTran();
//鍒犻櫎鐢ㄦ埛淇℃伅
oCN.RunProc("delete from Gy_Czygl where Czybm='" + HCzybm + "'");
--
Gitblit v1.9.1