Browse Source

角色菜单修改

master
zhaoy 11 months ago
parent
commit
80d4e40b68
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      BPA.SAAS.Manage.Application/Org/Services/RoleService.cs

+ 2
- 1
BPA.SAAS.Manage.Application/Org/Services/RoleService.cs View File

@@ -149,6 +149,7 @@ namespace BPA.SAAS.Manage.Application.Org.Services
{
List<BPA_RoleMenu> models = new List<BPA_RoleMenu>();
List<string> NewMenuId = new List<string>();
_db.Deleteable<BPA_RoleMenu>(t => t.SysRoleId == input.SysRoleId).ExecuteCommandHasChange();
if (input.SysMenuId != null)
{
var Menus = _db.Queryable<BPA_Menu>().ToList();
@@ -181,7 +182,7 @@ namespace BPA.SAAS.Manage.Application.Org.Services
if (models.Count <= 0)
return true;

_db.Deleteable<BPA_RoleMenu>(t => t.SysRoleId == input.SysRoleId).ExecuteCommandHasChange();
return await _db.Insertable(models).ExecuteCommandAsync() > 0;




Loading…
Cancel
Save