คอมเม้นผู้บังคับบัญชา
This commit is contained in:
parent
9576d26753
commit
7f7b676750
9 changed files with 318 additions and 10 deletions
|
|
@ -22,6 +22,7 @@ import HttpStatusCode from "../interfaces/http-status";
|
|||
import { KpiPlan, createKpiPlan, updateKpiPlan } from "../entities/kpiPlan";
|
||||
import CallAPI from "../interfaces/call-api";
|
||||
import { KpiPeriod } from "../entities/kpiPeriod";
|
||||
import { Brackets } from "typeorm";
|
||||
|
||||
@Route("api/v1/kpi/plan")
|
||||
@Tags("kpiPlan")
|
||||
|
|
@ -320,6 +321,14 @@ export class kpiPlanController extends Controller {
|
|||
kpiPeriodId: kpiPeriodId,
|
||||
},
|
||||
)
|
||||
.andWhere(
|
||||
new Brackets((qb) => {
|
||||
qb.orWhere("kpiPlan.including LIKE :keyword", { keyword: `%${keyword}%` }).orWhere(
|
||||
"kpiPlan.includingName LIKE :keyword",
|
||||
{ keyword: `%${keyword}%` },
|
||||
);
|
||||
}),
|
||||
)
|
||||
.select([
|
||||
"kpiPlan.id",
|
||||
"kpiPeriod.year",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue