fix
This commit is contained in:
parent
00a69ebd31
commit
8593edfc43
1 changed files with 3 additions and 3 deletions
|
|
@ -226,11 +226,11 @@ export class kpiCapacityController extends Controller {
|
||||||
keyword == undefined
|
keyword == undefined
|
||||||
? "1=1"
|
? "1=1"
|
||||||
: [
|
: [
|
||||||
{ "kpiCapacity.name": Like(`%${keyword}%`) },
|
{ name: Like(`%${keyword}%`) },
|
||||||
{ "kpiCapacity.description": Like(`%${keyword}%`) },
|
{ description: Like(`%${keyword}%`) },
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
.andWhere(type == undefined ? "1=1" : { "kpiCapacity.type": type })
|
.andWhere(type == undefined ? "1=1" : { type: type })
|
||||||
.orderBy("kpiCapacityDetail.level", "ASC")
|
.orderBy("kpiCapacityDetail.level", "ASC")
|
||||||
.skip((page - 1) * pageSize)
|
.skip((page - 1) * pageSize)
|
||||||
.take(pageSize)
|
.take(pageSize)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue