filter หน่วยงาน รายการประวัติการฝึกอบรม

This commit is contained in:
Bright 2025-04-10 13:59:19 +07:00
parent 3163340215
commit cd6ef27116

View file

@ -441,7 +441,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: "OFFICER" })