แก้ query total

This commit is contained in:
Kittapath 2024-04-26 12:40:43 +07:00
parent b433a44000
commit ba00645cb8
5 changed files with 124 additions and 65 deletions

View file

@ -309,7 +309,7 @@ export class kpiPlanController extends Controller {
: "kpiPlan.rootId LIKE :nodeId"
: "1=1",
{
nodeId: `${nodeId}`,
nodeId: nodeId,
},
)
.andWhere(
@ -317,7 +317,7 @@ export class kpiPlanController extends Controller {
? "kpiPlan.kpiPeriodId LIKE :kpiPeriodId"
: "1=1",
{
kpiPeriodId: `${kpiPeriodId}`,
kpiPeriodId: kpiPeriodId,
},
)
.select([