This commit is contained in:
parent
6d31b84a2c
commit
18ae347122
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue