Sfoglia il codice sorgente

jue角色

storemanagement
zhaoy 9 mesi fa
parent
commit
d28f9f23df
1 ha cambiato i file con 8 aggiunte e 8 eliminazioni
  1. +8
    -8
      BPA.SAAS.Manage.Application/Org/Services/RoleService.cs

+ 8
- 8
BPA.SAAS.Manage.Application/Org/Services/RoleService.cs Vedi File

@@ -56,14 +56,14 @@ namespace BPA.SAAS.Manage.Application.Org.Services
public async Task<bool> Add(RoleDtoInput input)
{

if (input.Code != "sys_manager_role")
{
var resEntitites = _db.Queryable<BPA_Roles>().Where(a => a.Code == input.Code).ToList();
if (resEntitites.Count() > 0)
{
throw Oops.Oh("已存在相同编码的角色");
}
}
//if (input.Code != "sys_manager_role")
//{
// var resEntitites = _db.Queryable<BPA_Roles>().Where(a => a.Code == input.Code).ToList();
// if (resEntitites.Count() > 0)
// {
// throw Oops.Oh("已存在相同编码的角色");
// }
//}
var role = input.Adapt<BPA_Roles>();
input.Code = GetNumber2();


Caricamento…
Annulla
Salva