no message

This commit is contained in:
kittapath 2024-09-04 12:10:34 +07:00
parent af5cd2d17e
commit ad1bc9cdb6
2 changed files with 8 additions and 8 deletions

View file

@ -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";
}