find profile by nodeId

This commit is contained in:
kittapath 2024-12-12 15:21:55 +07:00
parent 75e1d761b5
commit 1f0c6cb192

View file

@ -2752,8 +2752,15 @@ export class OrganizationDotnetController extends Controller {
* @summary 5. ,map keycloak id * @summary 5. ,map keycloak id
* *
*/ */
@Get("keycloak-all-officer") @Post("keycloak-all-officer")
async GetProfileWithKeycloakAllOfficer() { async PostProfileWithKeycloakAllOfficer(
@Request() req: RequestWithUser,
@Body()
body: {
node: string;
nodeId: string;
},
) {
const profile = await this.profileRepo.find({ const profile = await this.profileRepo.find({
where: { keycloak: Not(IsNull()) || Not(""), isLeave: false }, where: { keycloak: Not(IsNull()) || Not(""), isLeave: false },
relations: [ relations: [
@ -2818,8 +2825,15 @@ export class OrganizationDotnetController extends Controller {
* @summary 5. ,map keycloak id * @summary 5. ,map keycloak id
* *
*/ */
@Get("keycloak-all-employee") @Post("keycloak-all-employee")
async GetProfileWithKeycloakAllEmployee() { async PostProfileWithKeycloakAllEmployee(
@Request() req: RequestWithUser,
@Body()
body: {
node: string;
nodeId: string;
},
) {
const profile = await this.profileEmpRepo.find({ const profile = await this.profileEmpRepo.find({
where: { keycloak: Not(IsNull()) || Not(""), isLeave: false }, where: { keycloak: Not(IsNull()) || Not(""), isLeave: false },
relations: [ relations: [