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 condition = "1=1";
|
||||||
let conditionParams = {};
|
let conditionParams = {};
|
||||||
if (body.role === "CHILD" || body.role === "BROTHER") {
|
if (body.role === "CHILD") {
|
||||||
switch (body.node) {
|
switch (body.node) {
|
||||||
case 0:
|
case 0:
|
||||||
condition = "orgRoot.ancestorDNA = :nodeId";
|
condition = "orgRoot.ancestorDNA = :nodeId";
|
||||||
|
|
@ -117,6 +117,7 @@ export class OrganizationDotnetController extends Controller {
|
||||||
condition = "1=1";
|
condition = "1=1";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
conditionParams = { nodeId: body.nodeId };
|
||||||
} else if (body.role === "BROTHER") {
|
} else if (body.role === "BROTHER") {
|
||||||
switch (body.node) {
|
switch (body.node) {
|
||||||
case 0:
|
case 0:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue