From 87a49c5cc1d53828e107cfefd555f634bf0d8ff0 Mon Sep 17 00:00:00 2001 From: Bright Date: Wed, 17 Jul 2024 17:33:48 +0700 Subject: [PATCH] =?UTF-8?q?fix=20=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=95=E0=B8=B4=E0=B8=AD=E0=B8=AD=E0=B8=81=E0=B8=84?= =?UTF-8?q?=E0=B8=B3=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/ProfileController.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index d57fe4cb..3889043a 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -5083,10 +5083,10 @@ export class ProfileController extends Controller { const [profiles, total] = await this.profileRepo .createQueryBuilder("profile") .leftJoinAndSelect("profile.profileSalary", "profileSalary") - // .where("YEAR(profileSalary.date) = :year", { year: body.year }) - // .where("profileSalary.refCommandNo LIKE :refCommandNo", { - // refCommandNo: `%${body.posno}%`, - // }) + .where("YEAR(profileSalary.date) = :year", { year: body.year }) + .where("profileSalary.refCommandNo LIKE :refCommandNo", { + refCommandNo: `%${body.posno}%`, + }) // .andWhere("profileSalary.commandType LIKE :commandType", { // commandType: `${body.commandType}`, // })