From 0467013f141683115ffe9736cada27addcfa8eb9 Mon Sep 17 00:00:00 2001 From: Bright Date: Mon, 29 Apr 2024 17:03:08 +0700 Subject: [PATCH] fix bug --- src/controllers/SalaryRankEmployeeController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/SalaryRankEmployeeController.ts b/src/controllers/SalaryRankEmployeeController.ts index ca51580..1b0324e 100644 --- a/src/controllers/SalaryRankEmployeeController.ts +++ b/src/controllers/SalaryRankEmployeeController.ts @@ -158,8 +158,8 @@ export class SalaryRankEmployeeController extends Controller { ); }), ) - .orderBy("salaryRankEmployee.salary", "DESC") - .addOrderBy("salaryRankEmployee.salaryHalf", "DESC") + .orderBy("salaryRankEmployee.salaryMonth", "DESC") + .addOrderBy("salaryRankEmployee.salaryDay", "DESC") .skip((page - 1) * pageSize) .take(pageSize) .getManyAndCount();