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

Commit dec7bf3f authored by GaoHu's avatar GaoHu

预约获取

parent 28397f21
...@@ -61,6 +61,7 @@ public class GoblinMongoUtils { ...@@ -61,6 +61,7 @@ public class GoblinMongoUtils {
HashMap<String, Object> info = CollectionUtil.mapStringObject(); HashMap<String, Object> info = CollectionUtil.mapStringObject();
Pageable pageable = PageRequest.of(goblinGoodsAnticipateValueParam.getPageNum() - 1, 20, Sort.by(Sort.Direction.DESC, "createdDate")); Pageable pageable = PageRequest.of(goblinGoodsAnticipateValueParam.getPageNum() - 1, 20, Sort.by(Sort.Direction.DESC, "createdDate"));
Criteria criteria = Criteria.where("delTag").is(0).and("uid").is(uid); Criteria criteria = Criteria.where("delTag").is(0).and("uid").is(uid);
if (goblinGoodsAnticipateValueParam.getType()!=null){
if (goblinGoodsAnticipateValueParam.getType()==1){ if (goblinGoodsAnticipateValueParam.getType()==1){
//预约提醒 //预约提醒
criteria = criteria.and("type").is(goblinGoodsAnticipateValueParam.getType()); criteria = criteria.and("type").is(goblinGoodsAnticipateValueParam.getType());
...@@ -71,6 +72,7 @@ public class GoblinMongoUtils { ...@@ -71,6 +72,7 @@ public class GoblinMongoUtils {
//预约助力 //预约助力
criteria = criteria.and("type").is(2).and("peopleType").gt(0); criteria = criteria.and("type").is(2).and("peopleType").gt(0);
} }
}
if (StringUtils.isNotBlank(goblinGoodsAnticipateValueParam.getName())) { if (StringUtils.isNotBlank(goblinGoodsAnticipateValueParam.getName())) {
criteria = criteria.and("skuName").regex(".*?" + goblinGoodsAnticipateValueParam.getName() + ".*"); criteria = criteria.and("skuName").regex(".*?" + goblinGoodsAnticipateValueParam.getName() + ".*");
} }
......
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