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
|
||||
? "1=1"
|
||||
: [
|
||||
{ "kpiCapacity.name": Like(`%${keyword}%`) },
|
||||
{ "kpiCapacity.description": Like(`%${keyword}%`) },
|
||||
{ name: Like(`%${keyword}%`) },
|
||||
{ description: Like(`%${keyword}%`) },
|
||||
],
|
||||
)
|
||||
.andWhere(type == undefined ? "1=1" : { "kpiCapacity.type": type })
|
||||
.andWhere(type == undefined ? "1=1" : { type: type })
|
||||
.orderBy("kpiCapacityDetail.level", "ASC")
|
||||
.skip((page - 1) * pageSize)
|
||||
.take(pageSize)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue