From 9eeca6aa905cffea1c95d965b4790fbd20ce2275 Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期五, 25 十月 2024 16:19:16 +0800 Subject: [PATCH] 更新字典数据获取 --- WIDESEAWCS_Server/WIDESEAWCS_SystemServices/Sys_RoleService.cs | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/Sys_RoleService.cs b/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/Sys_RoleService.cs index 72dd01b..88811c2 100644 --- a/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/Sys_RoleService.cs +++ b/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/Sys_RoleService.cs @@ -132,8 +132,7 @@ string message = ""; try { - UserInfo user = App.User.GetCurrentUserInfo(); - if (!GetAllChildren(user.RoleId).Exists(x => x.Id == roleId)) + if (!GetAllChildren(App.User.RoleId).Exists(x => x.Id == roleId)) return WebResponseContent.Instance.Error("娌℃湁鏉冮檺淇敼姝よ鑹茬殑鏉冮檺淇℃伅"); //褰撳墠鐢ㄦ埛鐨勬潈闄� List<Permissions> permissions = _MenuRepository.GetPermissions(App.User.RoleId); @@ -166,9 +165,9 @@ AuthValue = string.Join(",", arr), AuthId = auth == null ? 0 : auth.AuthId, ModifyDate = DateTime.Now, - Modifier = user.UserName, + Modifier = App.User.UserName, CreateDate = DateTime.Now, - Creater = user.UserName + Creater = App.User.UserName }); } else @@ -193,7 +192,7 @@ x.AuthValue = ""; }); //灏嗗彇娑堢殑鏉冮檺璁剧疆涓�"" - _RoleAuthRepository.UpdateData(delAuths); + _RoleAuthRepository.DeleteData(delAuths); int addCount = updateAuths.Where(x => x.AuthId <= 0).Count(); int updateCount = updateAuths.Where(x => x.AuthId > 0).Count(); -- Gitblit v1.9.3