diff --git a/BPA.SAAS.Manage.Application/Org/Services/RoleService.cs b/BPA.SAAS.Manage.Application/Org/Services/RoleService.cs index 0a87e50..e38464d 100644 --- a/BPA.SAAS.Manage.Application/Org/Services/RoleService.cs +++ b/BPA.SAAS.Manage.Application/Org/Services/RoleService.cs @@ -149,6 +149,7 @@ namespace BPA.SAAS.Manage.Application.Org.Services { List models = new List(); List NewMenuId = new List(); + _db.Deleteable(t => t.SysRoleId == input.SysRoleId).ExecuteCommandHasChange(); if (input.SysMenuId != null) { var Menus = _db.Queryable().ToList(); @@ -181,7 +182,7 @@ namespace BPA.SAAS.Manage.Application.Org.Services if (models.Count <= 0) return true; - _db.Deleteable(t => t.SysRoleId == input.SysRoleId).ExecuteCommandHasChange(); + return await _db.Insertable(models).ExecuteCommandAsync() > 0;