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

Commit 5b6ddf24 authored by zhengfuxin's avatar zhengfuxin

修改搜索marketId

parent 6a3896f6
......@@ -459,7 +459,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
Criteria.where("extagVoList.tagName").is(name)
));
// query.addCriteria(Criteria.where("name").regex(pattern).and("spuAppear").is("0").and("delFlg").is("0").and("shelvesStatus").is("3"));
query.addCriteria(Criteria.where("spuAppear").is("0").and("delFlg").is("0").and("shelvesStatus").is("3"));
query.addCriteria(Criteria.where("spuAppear").is("0").and("delFlg").is("0").and("shelvesStatus").is("3").and("marketId").is(null));
query.with(Sort.by(
Sort.Order.desc("count"),
Sort.Order.desc("createdAt")
......@@ -555,7 +555,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
//
Query query = new Query();
query.addCriteria(new Criteria().orOperator(
Criteria.where("extagVoList.tagId").is(tagId).and("spuAppear").is("0").and("delFlg").is("0").and("shelvesStatus").is("3")
Criteria.where("extagVoList.tagId").is(tagId).and("spuAppear").is("0").and("delFlg").is("0").and("shelvesStatus").is("3").and("marketId").is(null)
));
Pageable pageable=null;
//
......@@ -615,7 +615,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
Criteria.where("cateSid").is(categoryId),
Criteria.where("cateTid").is(categoryId)
));
query.addCriteria(Criteria.where("spuAppear").is("0").and("delFlg").is("0").and("shelvesStatus").is("3"));
query.addCriteria(Criteria.where("spuAppear").is("0").and("delFlg").is("0").and("shelvesStatus").is("3").and("marketId").is(null));
Pageable pageable=null;
//
if(type.equals("1")){
......@@ -655,7 +655,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
if(StringUtil.isNotBlank(spuids)){
query.addCriteria(Criteria.where("spuId").nin(spuids.split(",")));
}
query.addCriteria(Criteria.where("delFlg").is("0").and("shelvesStatus").is("3").and("spuAppear").is("0"));
query.addCriteria(Criteria.where("delFlg").is("0").and("shelvesStatus").is("3").and("spuAppear").is("0").and("marketId").is(null));
//redis里面获取排序规则 1、上架时间2、销量3、价格高到低4、价格低到高
......@@ -770,7 +770,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
it.remove();
}else{
GoblinGoodsInfoVo goblinGoodsInfoVo= goblinRedisUtils.getGoodsInfoVo(goblinFrontSelectGoods.getSpuId());
if (null==goblinGoodsInfoVo) {
if (null==goblinGoodsInfoVo||StringUtil.isNotBlank(goblinGoodsInfoVo.getMarketId())) {
it.remove();
}
}
......
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