ปรับ order by

This commit is contained in:
Bright 2024-03-07 15:47:22 +07:00
parent defec8a70e
commit 50484f7e7c

View file

@ -272,7 +272,14 @@ export class Salary extends Controller {
const [salary, total] = await this.salaryRepository.findAndCount({
relations: ["posLevel_", "posType_"],
order: {
startDate: "DESC",
// startDate: "DESC",
isActive: "ASC",
posType_: {
posTypeRank: "ASC"
},
posLevel_: {
posLevelRank: "ASC"
},
},
...(keyword ? {} : { skip: (page - 1) * pageSize, take: pageSize }),
});