还是LZM
还是LZM
  • 发布:2024-01-11 17:54
  • 更新:2024-02-02 14:57
  • 阅读:258

【报Bug】使用临时表查询报错

分类:uniCloud

产品分类: uniCloud/App

示例代码:

nfield = 'gid,gid._id as g_id,gid.myid as ngmyid,warehouseid,storagelocation,unit,ncount';
ngroupBy = 'gid,warehouseid,storagelocation,unit';

cpage = 1;
pagesize = 50;

const restmp = dbJQL.collection('my-Inventorymanagement,my-material')
.where(where)
.field(nfield)
.groupBy(ngroupBy)
.groupField('sum(ncount) as sumncount')
.orderBy('gid')
.getTemp();

rwhere = "sumncount!=0"

const ress = await dbJQL.collection(restmp)
.where(rwhere)
.skip((cpage - 1) * pagesize).limit(pagesize)
.get({getCount:true});

操作步骤:

SYSTEM_ERROR:e.split is not a function at Function.complete

预期结果:

正常查询

实际结果:

报错SYSTEM_ERROR:e.split is not a function at Function.complete

bug描述:

使用临时表查询时报错:
err: Error: [zhjql]: SYSTEM_ERROR:e.split is not a function at Function.complete (http://localhost:8081/static/js/chunk-vendors.js:179704:33) at http://localhost:8081/static/js/chunk-vendors.js:71330:93078 at Object.M [as callback] (http://localhost:8081/static/js/chunk-vendors.js:71330:95734) at y (http://localhost:8081/static/js/chunk-vendors.js:71330:96172) at k.onload (http://localhost:8081/static/js/chunk-vendors.js:71330:53905)
cause: undefined
code: "FunctionBizError"
errCode: "FunctionBizError"
errMsg: "SYSTEM_ERROR:e.split is not a function"
errSubject: undefined
requestId: undefined
subject: undefined

不知道哪里出错了,在文档也找不到类似的示例,求求大佬们解答一下

2024-01-11 17:54 负责人:无 分享
已邀请:
DCloud_uniCloud_WYQ

DCloud_uniCloud_WYQ

上面的代码写在客户端还是云函数?dbJQL对象是调哪个方法返回的?

  • 还是LZM (作者)

    在云函数,const dbJQL = uniCloud.databaseForJQL({

    event,

    context

    });

    2024-03-06 16:49

  • DCloud_uniCloud_WYQ

    回复 还是LZM: 看下能不能写一个查询复现这个问题,各个参数都不要使用变量,如果能的话发出来我看下

    2024-03-07 16:26

要回复问题请先登录注册