update add year param
This commit is contained in:
parent
6e0181c52b
commit
f382e3622f
1 changed files with 4 additions and 0 deletions
|
|
@ -72,6 +72,7 @@ export class KpiUserEvaluationController extends Controller {
|
|||
page: number;
|
||||
pageSize: number;
|
||||
kpiPeriodId?: string;
|
||||
year?: number;
|
||||
keyword?: string;
|
||||
status?: string | null;
|
||||
results?: string | null;
|
||||
|
|
@ -104,6 +105,9 @@ export class KpiUserEvaluationController extends Controller {
|
|||
kpiPeriodId: requestBody.kpiPeriodId,
|
||||
},
|
||||
)
|
||||
.andWhere(
|
||||
requestBody.year ? "kpiUserEvaluation.year LIKE :year" : "1=1", {year: requestBody.year},
|
||||
)
|
||||
.andWhere(
|
||||
requestBody.status != null && requestBody.status != undefined
|
||||
? requestBody.status.trim().toUpperCase() == "NEW"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue