|
|
@@ -1,5 +1,6 @@ |
|
|
|
using BPA.SAAS.Manage.Application.Org.Dtos.Role; |
|
|
|
using BPA.SAAS.Manage.Application.Org.Interface; |
|
|
|
using BPA.SAAS.Manage.Application.System.Dtos; |
|
|
|
using BPA.SAAS.Manage.Comm.Const; |
|
|
|
using BPA.SAAS.Manage.Comm.Enum; |
|
|
|
using BPA.SAAS.Manage.Core.Base; |
|
|
@@ -149,6 +150,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 +183,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; |
|
|
|
|
|
|
|
|
|
|
|