import ตำแหน่ง

This commit is contained in:
kittapath 2025-03-12 12:15:13 +07:00
parent 1e1bd56db6
commit 20ff14def9
3 changed files with 13 additions and 6 deletions

View file

@ -1009,7 +1009,7 @@ export class OrgRootController extends Controller {
relations: ["positions", "positions.posLevel", "positions.posType"],
});
for (const item of employeePosMaster) {
if (item.next_holderId != null && status == "NOW") {
if (item.next_holderId != null) {
const profile = await repoProfileEmployee.findOne({
where: { id: item.next_holderId == null ? "" : item.next_holderId },
});
@ -1031,7 +1031,7 @@ export class OrgRootController extends Controller {
relations: ["positions", "positions.posLevel", "positions.posType"],
});
for (const item of employeeTempPosMaster) {
if (item.next_holderId != null && status == "NOW") {
if (item.next_holderId != null) {
const profile = await repoProfileEmployee.findOne({
where: { id: item.next_holderId == null ? "" : item.next_holderId },
});