|
|
@@ -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; |
|
|
|
|
|
|
|
|
|
|
|