我统计我表格里面总共多少条数据,今天突然返回0l 乍回事,之前还好好的 LCQuery query = LCQuery('positionInfo'); print('waybill_ID=${widget.orderNumber}'); query.whereEqualTo('waybill_ID', widget.orderNumber);
今天上午有故障,不知道是否是因为这个原因。您再试试看?如果仍有问题,请提供开启调试日志后的详细报错信息。
*** Request ***uri: https://gcapp.hy100.com.cn/1.1/classes/positionInfo?skip=0&limit=0&where=%7B%22waybill_ID%22%3A%22GCZC00022550%22%7D&count=1method: GETresponseType: ResponseType.jsonfollowRedirects: trueconnectTimeout: 0receiveTimeout: 0extra: {dio_cache_try_cache: true, dio_cache_max_age: 168:00:00.000000}headers: X-LC-Id: 24PJDWahD7Pww2cDice6F6Er-gzGzoHsz User-Agent: LeanCloud-Flutter-SDK/0.5.0 content-type: application/json X-LC-Sign: 92558e81b5af0f56b540465dcdd57dd2,1606278970345 X-LC-Session: tx6szb7pgzzxy7rttzkjna7zndata:null*** Response ***uri: https://gcapp.hy100.com.cn/1.1/classes/positionInfo?skip=0&limit=0&where=%7B%22waybill_ID%22%3A%22GCZC00022550%22%7D&count=1statusCode: 200headers: connection: keep-alive cache-control: no-cache,no-store date: Wed, 25 Nov 2020 04:36:12 GMT transfer-encoding: chunked content-encoding: gzip vary: Accept-Encoding strict-transport-security: max-age=31536000 x-request-biztype: unknown pragma: no-cache content-type: application/json;charset=utf-8 server: openrestyResponse Text:{"results":[],"count":0}
还是返回0
从调试日志来看,您是要匹配 waybill_ID 等于 GCZC00022550 的记录?请确认数据库中确实存在符合条件的记录(比如,您可以通过「控制台 > 结构化数据 > positionInfo > 按条件过滤」查询)。如果确实存在记录但查不到,请提供相应的符合条件的记录的 objectId 以便我们排查。
waybill_ID
GCZC00022550