From 6cd39da15f95e22f47fe480b31189d53d38697a1 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Wed, 27 Aug 2025 14:53:16 +0700 Subject: [PATCH] update --- .../OrganizationDotnetController.ts | 56 +++++++++---------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/src/controllers/OrganizationDotnetController.ts b/src/controllers/OrganizationDotnetController.ts index 7453fa47..01cec5dd 100644 --- a/src/controllers/OrganizationDotnetController.ts +++ b/src/controllers/OrganizationDotnetController.ts @@ -4050,33 +4050,33 @@ export class OrganizationDotnetController extends Controller { }, ) { let typeCondition: any = {}; - if (body.isAll == false) { - if (body.node === 0) { - typeCondition = { - orgRootId: body.nodeId, - // orgChild1Id: IsNull(), - }; - } else if (body.node === 1) { - typeCondition = { - orgChild1Id: body.nodeId, - orgChild2Id: IsNull(), - }; - } else if (body.node === 2) { - typeCondition = { - orgChild2Id: body.nodeId, - orgChild3Id: IsNull(), - }; - } else if (body.node === 3) { - typeCondition = { - orgChild3Id: body.nodeId, - orgChild4Id: IsNull(), - }; - } else if (body.node === 4) { - typeCondition = { - orgChild4Id: body.nodeId, - }; - } - } else { + // if (body.isAll == false) { + // if (body.node === 0) { + // typeCondition = { + // orgRootId: body.nodeId, + // orgChild1Id: IsNull(), + // }; + // } else if (body.node === 1) { + // typeCondition = { + // orgChild1Id: body.nodeId, + // orgChild2Id: IsNull(), + // }; + // } else if (body.node === 2) { + // typeCondition = { + // orgChild2Id: body.nodeId, + // orgChild3Id: IsNull(), + // }; + // } else if (body.node === 3) { + // typeCondition = { + // orgChild3Id: body.nodeId, + // orgChild4Id: IsNull(), + // }; + // } else if (body.node === 4) { + // typeCondition = { + // orgChild4Id: body.nodeId, + // }; + // } + // } else { if (body.node === 0) { typeCondition = { orgRootId: body.nodeId, @@ -4098,7 +4098,7 @@ export class OrganizationDotnetController extends Controller { orgChild4Id: body.nodeId, }; } - } + // } let profile = await this.profileRepo.find({ where: { keycloak: Not(IsNull()) || Not(""), isLeave: false, current_holders: typeCondition }, relations: [