ค้นหาพ้นราชการ

This commit is contained in:
Kittapath 2024-07-09 14:53:36 +07:00
parent 91cff0bf61
commit 4548a78256

View file

@ -2347,8 +2347,8 @@ export class ProfileController extends Controller {
.andWhere( .andWhere(
isRetire != undefined && isRetire != null isRetire != undefined && isRetire != null
? isRetire == true ? isRetire == true
? `profile.dateRetire IS null` ? `profile.dateLeave IS null`
: `profile.dateRetire IS NOT NULL` : `profile.dateLeave IS NOT NULL`
: "1=1", : "1=1",
) )
.andWhere( .andWhere(