记得上下班打卡 | git大法好,push需谨慎

Commit a5c3a10b authored by GaoHu's avatar GaoHu

预约列表模糊查询

parent 308de968
......@@ -89,14 +89,14 @@ public class GoblinMongoUtils {
LocalDateTime createdAtBegin = createDt.withHour(0).withMinute(0).withSecond(0).withNano(0);
LocalDateTime createdAtEnd = createDt.withHour(23).withMinute(59).withSecond(59).withNano(999);
criteria = criteria.and("aboutStartDate").gte(createdAtBegin).lte(createdAtEnd);
criteria = criteria.and("aboutStartDate").gte(createdAtBegin);
}
if (StringUtils.isNotBlank(goblinGoodsAnticipateValueParam.getAboutEndDate())) {
LocalDateTime createDt = DateUtil.Formatter.yyyyMMddHHmmss.parse(goblinGoodsAnticipateValueParam.getAboutEndDate());
LocalDateTime createdAtBegin = createDt.withHour(0).withMinute(0).withSecond(0).withNano(0);
LocalDateTime createdAtEnd = createDt.withHour(23).withMinute(59).withSecond(59).withNano(999);
criteria = criteria.and("aboutEndDate").gte(createdAtBegin).lte(createdAtEnd);
criteria = criteria.and("aboutEndDate").lte(createdAtEnd);
}
Query query = Query.query(criteria);
//查询总数
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment