แก้ไขกลุ่มงาน
This commit is contained in:
parent
c86a88d32b
commit
5578bd4f18
2 changed files with 12 additions and 15 deletions
|
|
@ -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 }),
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue