isAncestorDNA to ancestorDNA
This commit is contained in:
parent
22b80868d4
commit
2832ab2268
9 changed files with 143 additions and 80 deletions
|
|
@ -507,9 +507,9 @@ export class PositionController extends Controller {
|
|||
}
|
||||
|
||||
/**
|
||||
* API เพิ่มอัตรากำลัง
|
||||
* API แก้ไขเลขที่ตำแหน่ง
|
||||
*
|
||||
* @summary ORG_033 - เพิ่มอัตรากำลัง (ADMIN) #35
|
||||
* @summary ORG_034 - แก้ไขเลขที่ตำแหน่ง (ADMIN) #37
|
||||
*
|
||||
*/
|
||||
@Put("master/{id}")
|
||||
|
|
@ -737,38 +737,38 @@ export class PositionController extends Controller {
|
|||
typeCondition = {
|
||||
orgRootId: body.id,
|
||||
};
|
||||
if (!body.isAll) {
|
||||
checkChildConditions = {
|
||||
orgChild1Id: IsNull(),
|
||||
};
|
||||
}
|
||||
if (!body.isAll) {
|
||||
checkChildConditions = {
|
||||
orgChild1Id: IsNull(),
|
||||
};
|
||||
}
|
||||
} else if (body.type === 1) {
|
||||
typeCondition = {
|
||||
orgChild1Id: body.id,
|
||||
};
|
||||
if (!body.isAll) {
|
||||
checkChildConditions = {
|
||||
orgChild2Id: IsNull(),
|
||||
};
|
||||
}
|
||||
if (!body.isAll) {
|
||||
checkChildConditions = {
|
||||
orgChild2Id: IsNull(),
|
||||
};
|
||||
}
|
||||
} else if (body.type === 2) {
|
||||
typeCondition = {
|
||||
orgChild2Id: body.id,
|
||||
};
|
||||
if (!body.isAll) {
|
||||
checkChildConditions = {
|
||||
orgChild3Id: IsNull(),
|
||||
};
|
||||
}
|
||||
if (!body.isAll) {
|
||||
checkChildConditions = {
|
||||
orgChild3Id: IsNull(),
|
||||
};
|
||||
}
|
||||
} else if (body.type === 3) {
|
||||
typeCondition = {
|
||||
orgChild3Id: body.id,
|
||||
};
|
||||
if (!body.isAll) {
|
||||
checkChildConditions = {
|
||||
orgChild4Id: IsNull(),
|
||||
};
|
||||
}
|
||||
if (!body.isAll) {
|
||||
checkChildConditions = {
|
||||
orgChild4Id: IsNull(),
|
||||
};
|
||||
}
|
||||
} else if (body.type === 4) {
|
||||
typeCondition = {
|
||||
orgChild4Id: body.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue