Merge branch 'develop' of github.com:Frappet/bma-ehr-salary into develop

This commit is contained in:
Kittapath 2024-03-07 15:57:01 +07:00
commit 93d4ffa7a6
2 changed files with 26 additions and 25 deletions

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 }),
});