This commit is contained in:
AdisakKanthawilang 2024-05-08 16:22:25 +07:00
parent 2b060dedd4
commit c630b9743f
2 changed files with 10 additions and 10 deletions

View file

@ -419,7 +419,7 @@ export class kpiRoleController extends Controller {
? "kpiRole.year LIKE :year"
: "1=1",
{
year: `%${requestBody.year}%`,
year: requestBody.year,
},
)
.andWhere(
@ -427,7 +427,7 @@ export class kpiRoleController extends Controller {
? "kpiRole.period LIKE :period"
: "1=1",
{
period: `%${requestBody.period}%`,
period: requestBody.period,
},
)
.andWhere(requestBody.position != undefined ? "kpiRole.position LIKE :position" : "1=1", {