fix search

This commit is contained in:
AdisakKanthawilang 2024-07-17 16:35:50 +07:00
parent 69db570268
commit 09c47361f1
3 changed files with 24 additions and 15 deletions

View file

@ -1329,7 +1329,8 @@ export class ProfileEmployeeController extends Controller {
.map((x) => x.next_holderId),
});
}),
)
)
.andWhere("profileEmployee.employeeClass = :employeeClass", {employeeClass:"PERM"})
.skip((requestBody.page - 1) * requestBody.pageSize)
.take(requestBody.pageSize)
.getManyAndCount();