This commit is contained in:
AdisakKanthawilang 2024-05-08 16:41:35 +07:00
parent 45b460a095
commit eeb70570c8
4 changed files with 22 additions and 22 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", {