问题描述
我有一条记录,如下:
{
"_id":"iUgYHSxL1R","fromDate":{"$date":"2020-08-03T00:00:00.000Z"},"toDate":{"$date":"2020-09-03T23:59:59.000Z"},"status":"occupied","apartmentId":"gzEBXiH9HH","bookingId":"A01066","type":"daily"
}
我输入的日期范围是:
fromDate: 2020-08-12T00:00:00.000Z
toDate: 2020-08-15T23:59:59.000Z
我使用以下查询来获得如上所述的记录,但是失败了:
var query = helper.createquery('Demo');
query.greaterThanorEqualTo("fromDate",params.fromDate);
query.lessthanorEqualTo("fromDate",params.toDate);
query.greaterThanorEqualTo("toDate",params.fromDate);
query.lessthanorEqualTo("toDate",params.toDate);
var apartmentStatusHistoryQuery = Parse.Query.or(query);
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)