diff --git a/BPA.SAAS.Manage.Application/Org/Services/RoleService.cs b/BPA.SAAS.Manage.Application/Org/Services/RoleService.cs index cd54b3a..0a87e50 100644 --- a/BPA.SAAS.Manage.Application/Org/Services/RoleService.cs +++ b/BPA.SAAS.Manage.Application/Org/Services/RoleService.cs @@ -56,14 +56,14 @@ namespace BPA.SAAS.Manage.Application.Org.Services public async Task Add(RoleDtoInput input) { - if (input.Code != "sys_manager_role") - { - var resEntitites = _db.Queryable().Where(a => a.Code == input.Code).ToList(); - if (resEntitites.Count() > 0) - { - throw Oops.Oh("已存在相同编码的角色"); - } - } + //if (input.Code != "sys_manager_role") + //{ + // var resEntitites = _db.Queryable().Where(a => a.Code == input.Code).ToList(); + // if (resEntitites.Count() > 0) + // { + // throw Oops.Oh("已存在相同编码的角色"); + // } + //} var role = input.Adapt(); input.Code = GetNumber2();