แก้ไขกลุ่มงาน

This commit is contained in:
AnandaTon 2024-04-18 12:16:31 +07:00
parent c86a88d32b
commit 5578bd4f18
2 changed files with 12 additions and 15 deletions

View file

@ -20,6 +20,7 @@ import HttpSuccess from "../interfaces/http-success";
import HttpError from "../interfaces/http-error";
import HttpStatusCode from "../interfaces/http-status";
import { KpiPeriod, createKpiPeriod, updateKpiPeriod } from "../entities/kpiPeriod";
import { Like } from "typeorm/browser";
@Route("api/v1/kpi/period")
@Tags("kpiPeriod")
@ -176,9 +177,9 @@ export class kpiController extends Controller {
@Query("keyword") keyword?: string,
) {
const [kpiPeriod, total] = await this.kpiPeriodRepository.findAndCount({
// where: {
// name: Like(`%${keyword}%`),
// },
// where: {
// durationKPI: Like(`%${keyword}%`),
// },
...(keyword ? {} : { skip: (page - 1) * pageSize, take: pageSize }),
});