กรองคนที่พ้นสภาพ

This commit is contained in:
Bright 2024-11-07 10:14:19 +07:00
parent 7d8c278710
commit dd05bb1e41
2 changed files with 2 additions and 0 deletions

View file

@ -3952,6 +3952,7 @@ export class ProfileController extends Controller {
position: `%${requestBody.position}%`,
},
)
.andWhere("profile.isLeave IS FALSE")
.andWhere(
new Brackets((qb) => {
qb.where(

View file

@ -1681,6 +1681,7 @@ export class ProfileEmployeeController extends Controller {
position: `%${requestBody.position}%`,
},
)
.andWhere("profileEmployee.isLeave IS FALSE")
.andWhere(
new Brackets((qb) => {
qb.where(