let res = await dbj.collection('shop-category')
.where({
status: param.admin ? dbjcmd.exists(true) : true
})
.field('_id,name,parent_id,sort,status')
.orderBy("sort desc,_id desc")
.skip((param.pagesCurrent - 1) * param.pageSize)
.limit(param.pageSize)
.get({
getCount: true,
getTree: true
})
netohall
- 发布:2024-03-25 17:49
- 更新:2024-03-25 17:49
- 阅读:121
产品分类: uniCloud/App
示例代码:
操作步骤:
let res = await dbj.collection('shop-category')
.where({
status: param.admin ? dbjcmd.exists(true) : true
})
.field('_id,name,parent_id,sort,status')
.orderBy("sort desc,_id desc")
.skip((param.pagesCurrent - 1) * param.pageSize)
.limit(param.pageSize)
.get({
getCount: true,
getTree: true
})
let res = await dbj.collection('shop-category')
.where({
status: param.admin ? dbjcmd.exists(true) : true
})
.field('_id,name,parent_id,sort,status')
.orderBy("sort desc,_id desc")
.skip((param.pagesCurrent - 1) * param.pageSize)
.limit(param.pageSize)
.get({
getCount: true,
getTree: true
})
预期结果:
可以正常查询
可以正常查询
实际结果:
TypeError: Cannot read properties of undefined (reading 'state')
TypeError: Cannot read properties of undefined (reading 'state')
bug描述:
jql语法 gettree和DBjcmd.exists(true) 无法同时使用
0 个回复