From ad1bc9cdb6393f6dd31f0d12cdc499cecb7107cf Mon Sep 17 00:00:00 2001 From: kittapath Date: Wed, 4 Sep 2024 12:10:34 +0700 Subject: [PATCH] no message --- src/controllers/ProfileController.ts | 8 ++++---- src/controllers/ProfileEmployeeController.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index 59f0248d..b7451545 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -2657,16 +2657,16 @@ export class ProfileController extends Controller { let nodeAll = ""; if (node === 0 && nodeId) { nodeCondition = "current_holders.orgRootId = :nodeId"; - if (isAll == true) nodeAll = " AND current_holders.orgChild1Id IS NULL"; + if (isAll == false) nodeAll = " AND current_holders.orgChild1Id IS NULL"; } else if (node === 1 && nodeId) { nodeCondition = "current_holders.orgChild1Id = :nodeId"; - if (isAll == true) nodeAll = " AND current_holders.orgChild2Id IS NULL"; + if (isAll == false) nodeAll = " AND current_holders.orgChild2Id IS NULL"; } else if (node === 2 && nodeId) { nodeCondition = "current_holders.orgChild2Id = :nodeId"; - if (isAll == true) nodeAll = " AND current_holders.orgChild3Id IS NULL"; + if (isAll == false) nodeAll = " AND current_holders.orgChild3Id IS NULL"; } else if (node === 3 && nodeId) { nodeCondition = "current_holders.orgChild3Id = :nodeId"; - if (isAll == true) nodeAll = " AND current_holders.orgChild4Id IS NULL"; + if (isAll == false) nodeAll = " AND current_holders.orgChild4Id IS NULL"; } else if (node === 4 && nodeId) { nodeCondition = "current_holders.orgChild4Id = :nodeId"; } diff --git a/src/controllers/ProfileEmployeeController.ts b/src/controllers/ProfileEmployeeController.ts index 53ec7269..d95dfee4 100644 --- a/src/controllers/ProfileEmployeeController.ts +++ b/src/controllers/ProfileEmployeeController.ts @@ -1141,16 +1141,16 @@ export class ProfileEmployeeController extends Controller { let nodeAll = ""; if (node === 0 && nodeId) { nodeCondition = "current_holders.orgRootId = :nodeId"; - if (isAll == true) nodeAll = " AND current_holders.orgChild1Id IS NULL"; + if (isAll == false) nodeAll = " AND current_holders.orgChild1Id IS NULL"; } else if (node === 1 && nodeId) { nodeCondition = "current_holders.orgChild1Id = :nodeId"; - if (isAll == true) nodeAll = " AND current_holders.orgChild2Id IS NULL"; + if (isAll == false) nodeAll = " AND current_holders.orgChild2Id IS NULL"; } else if (node === 2 && nodeId) { nodeCondition = "current_holders.orgChild2Id = :nodeId"; - if (isAll == true) nodeAll = " AND current_holders.orgChild3Id IS NULL"; + if (isAll == false) nodeAll = " AND current_holders.orgChild3Id IS NULL"; } else if (node === 3 && nodeId) { nodeCondition = "current_holders.orgChild3Id = :nodeId"; - if (isAll == true) nodeAll = " AND current_holders.orgChild4Id IS NULL"; + if (isAll == false) nodeAll = " AND current_holders.orgChild4Id IS NULL"; } else if (node === 4 && nodeId) { nodeCondition = "current_holders.orgChild4Id = :nodeId"; }