From f008f5d891a93528f834506c093c3f09dbf66045 Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 7 Mar 2024 17:27:51 +0700 Subject: [PATCH] order isReserve --- src/controllers/SalaryPeriodController.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/SalaryPeriodController.ts b/src/controllers/SalaryPeriodController.ts index b3a47ac..9480a11 100644 --- a/src/controllers/SalaryPeriodController.ts +++ b/src/controllers/SalaryPeriodController.ts @@ -650,6 +650,7 @@ export class SalaryPeriodController extends Controller { }), ) .orderBy("profile.citizenId", "ASC") + .addOrderBy("profile.isReserve", "ASC") .skip((body.page - 1) * body.pageSize) .take(body.pageSize) .getManyAndCount();