fix ระบบทะเบียนประวัติผู้พ้นจากราชการ ลูกจ้างประจำฯ >>เลือกเหตุผลการพ้นจากราชการ ระบแสดง Error #1405

This commit is contained in:
Bright 2025-04-22 13:34:56 +07:00
parent afc8bbf26a
commit 31b8116a6f

View file

@ -1907,7 +1907,7 @@ export class ProfileEmployeeController extends Controller {
: "1=1",
)
.andWhere(
retireType != undefined && retireType != null ? `profile.leaveType = :retireType` : "1=1",
retireType != undefined && retireType != null ? `profileEmployee.leaveType = :retireType` : "1=1",
{ retireType: retireType },
)
.andWhere("profileEmployee.employeeClass LIKE :type", {