From d28f9f23df458aef878a0c5cfa21c2af80364be6 Mon Sep 17 00:00:00 2001 From: zhaoy <137053305@qq.com> Date: Wed, 31 Jan 2024 10:20:06 +0800 Subject: [PATCH] =?UTF-8?q?jue=E8=A7=92=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Org/Services/RoleService.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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();