ปรับ order by
This commit is contained in:
parent
defec8a70e
commit
50484f7e7c
1 changed files with 8 additions and 1 deletions
|
|
@ -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 }),
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue