หาหัวหน้าปลัด
This commit is contained in:
parent
f981e16243
commit
0b1ba202fc
1 changed files with 6 additions and 0 deletions
|
|
@ -1740,10 +1740,13 @@ export class ProfileController extends Controller {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
if (!posMaster) throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลการครองตำแหน่ง");
|
if (!posMaster) throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลการครองตำแหน่ง");
|
||||||
|
posMaster.current_holderId = "";
|
||||||
// return new HttpSuccess({ data: [], total: 0 });
|
// return new HttpSuccess({ data: [], total: 0 });
|
||||||
} else if ((posMaster?.current_holder?.posLevel?.posLevelAuthority ?? null) == "GOVERNOR") {
|
} else if ((posMaster?.current_holder?.posLevel?.posLevelAuthority ?? null) == "GOVERNOR") {
|
||||||
return new HttpSuccess({ data: [], total: 0 });
|
return new HttpSuccess({ data: [], total: 0 });
|
||||||
}
|
}
|
||||||
|
console.log(posMaster);
|
||||||
|
console.log(posMaster.id);
|
||||||
let condition: any = {
|
let condition: any = {
|
||||||
orgRootId: posMaster.orgRootId,
|
orgRootId: posMaster.orgRootId,
|
||||||
id: Not(posMaster.current_holderId || ""),
|
id: Not(posMaster.current_holderId || ""),
|
||||||
|
|
@ -1773,6 +1776,9 @@ export class ProfileController extends Controller {
|
||||||
condition.isDirector = true;
|
condition.isDirector = true;
|
||||||
conditionNow.isDirector = true;
|
conditionNow.isDirector = true;
|
||||||
}
|
}
|
||||||
|
console.log(condition);
|
||||||
|
console.log("------------------");
|
||||||
|
console.log(conditionNow);
|
||||||
if (body.isAct == true) {
|
if (body.isAct == true) {
|
||||||
const [lists, total] = await AppDataSource.getRepository(viewDirectorActing)
|
const [lists, total] = await AppDataSource.getRepository(viewDirectorActing)
|
||||||
.createQueryBuilder("viewDirectorActing")
|
.createQueryBuilder("viewDirectorActing")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue