This commit is contained in:
Adisak 2025-12-18 18:31:04 +07:00
parent 6d31b84a2c
commit 18ae347122

View file

@ -96,7 +96,7 @@ export class OrganizationDotnetController extends Controller {
) {
let condition = "1=1";
let conditionParams = {};
if (body.role === "CHILD" || body.role === "BROTHER") {
if (body.role === "CHILD") {
switch (body.node) {
case 0:
condition = "orgRoot.ancestorDNA = :nodeId";
@ -117,6 +117,7 @@ export class OrganizationDotnetController extends Controller {
condition = "1=1";
break;
}
conditionParams = { nodeId: body.nodeId };
} else if (body.role === "BROTHER") {
switch (body.node) {
case 0: