query รักษาการ
This commit is contained in:
parent
80a245a033
commit
fb40df8a2a
1 changed files with 14 additions and 20 deletions
|
|
@ -740,10 +740,8 @@ export class WorkflowController extends Controller {
|
||||||
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบตำแหน่งผู้ใช้งาน");
|
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบตำแหน่งผู้ใช้งาน");
|
||||||
|
|
||||||
let condition: any = {
|
let condition: any = {
|
||||||
where: {
|
isDirector: true,
|
||||||
isDirector: true,
|
orgRootId: posMasterUser.orgRootId,
|
||||||
orgRootId: posMasterUser.orgRootId,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (type.trim().toLowerCase() == "OPERATE") {
|
if (type.trim().toLowerCase() == "OPERATE") {
|
||||||
|
|
@ -759,14 +757,12 @@ export class WorkflowController extends Controller {
|
||||||
posMasterUser.current_holder.posLevel.posLevelName == "ชำนาญการ")
|
posMasterUser.current_holder.posLevel.posLevelName == "ชำนาญการ")
|
||||||
) {
|
) {
|
||||||
condition = {
|
condition = {
|
||||||
where: {
|
isDirector: true,
|
||||||
isDirector: true,
|
orgRootId: posMasterUser.orgRootId,
|
||||||
orgRootId: posMasterUser.orgRootId,
|
orgChild1Id: IsNull(),
|
||||||
orgChild1Id: IsNull(),
|
orgChild2Id: IsNull(),
|
||||||
orgChild2Id: IsNull(),
|
orgChild3Id: IsNull(),
|
||||||
orgChild3Id: IsNull(),
|
orgChild4Id: IsNull(),
|
||||||
orgChild4Id: IsNull(),
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
} else if (
|
} else if (
|
||||||
(posMasterUser.current_holder.posType.posTypeName == "ทั่วไป" &&
|
(posMasterUser.current_holder.posType.posTypeName == "ทั่วไป" &&
|
||||||
|
|
@ -777,14 +773,12 @@ export class WorkflowController extends Controller {
|
||||||
posMasterUser.current_holder.posLevel.posLevelName == "ต้น")
|
posMasterUser.current_holder.posLevel.posLevelName == "ต้น")
|
||||||
) {
|
) {
|
||||||
condition = {
|
condition = {
|
||||||
where: {
|
isDirector: true,
|
||||||
isDirector: true,
|
isDeputy: true,
|
||||||
isDeputy: true,
|
orgChild1Id: IsNull(),
|
||||||
orgChild1Id: IsNull(),
|
orgChild2Id: IsNull(),
|
||||||
orgChild2Id: IsNull(),
|
orgChild3Id: IsNull(),
|
||||||
orgChild3Id: IsNull(),
|
orgChild4Id: IsNull(),
|
||||||
orgChild4Id: IsNull(),
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue