fix unkwons field Projectname

This commit is contained in:
AdisakKanthawilang 2024-04-19 16:18:24 +07:00
parent 19ea1c5468
commit b70f447174
2 changed files with 1 additions and 7 deletions

View file

@ -275,9 +275,6 @@ export class kpiPlanController extends Controller {
round: `${round?.trim().toUpperCase()}`,
},
)
.andWhere(keyword != undefined ? "kpiPlan.projectName LIKE :keyword" : "1=1", {
keyword: `%${keyword}%`,
})
.select([
"kpiPlan.id",
"kpiPlan.year",

View file

@ -220,10 +220,7 @@ export class kpiRoleController extends Controller {
round: `${round?.trim().toUpperCase()}`,
},
)
.andWhere(keyword != undefined ? "kpiRole.projectName LIKE :keyword" : "1=1", {
keyword: `%${keyword}%`,
})
.andWhere(position != undefined ? "kpiRole.projectName LIKE :position" : "1=1", {
.andWhere(position != undefined ? "kpiRole.position LIKE :position" : "1=1", {
position: `%${position}%`,
})
.select([