Sfoglia il codice sorgente

角色编码

storemanagement
zhaoy 11 mesi fa
parent
commit
50d26965d0
1 ha cambiato i file con 3 aggiunte e 5 eliminazioni
  1. +3
    -5
      BPA.SAAS.Manage.Application/Org/Services/RoleService.cs

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

@@ -64,12 +64,10 @@ namespace BPA.SAAS.Manage.Application.Org.Services
throw Oops.Oh("已存在相同编码的角色");
}
}
else
{
input.Code = GetNumber2();
}
var role = input.Adapt<BPA_Roles>();
// role.DataScopeType = DataScopeType.ALL;
input.Code = GetNumber2();
// role.DataScopeType = DataScopeType.ALL;
return await _db.Insertable(role).CallEntityMethod(t => t.Create()).ExecuteCommandAsync() > 0;
}
/// <summary>


Caricamento…
Annulla
Salva