รายการประวัติการฝึกอบรมลูกจ้าง & ระดับชั้นงานลูกจ้าง

This commit is contained in:
Bright 2025-04-10 15:04:17 +07:00
parent cd6ef27116
commit 719da25875
2 changed files with 2 additions and 2 deletions

View file

@ -2434,7 +2434,7 @@ export class DevelopmentController extends Controller {
? item.posLevel.posLevelName
: null
: item.employeePosLevel
? item.employeePosLevel.posLevelName
? `${item.employeePosType.posTypeShortName ?? ""} ${item.employeePosLevel.posLevelName ?? ""}`
: null,
posExecutive: item.posExecutive,
org: item.org,

View file

@ -505,7 +505,7 @@ export class ReportController extends Controller {
.andWhere(body.year != 0 && body.year != null ? "development.year = :year" : "1=1", {
year: body.year,
})
.andWhere(body.root != null ? "development.root = :root" : "1=1", {
.andWhere(body.root != null ? "developmentHistory.root = :root" : "1=1", {
root: body.root,
})
.andWhere("developmentHistory.type = :type", { type: "EMPLOYEE" })