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

Commit 5fb7846b authored by 张国柄's avatar 张国柄

Merge remote-tracking branch 'origin/dev_goblin' into dev_goblin

parents ef2ec5a4 9bd3e534
...@@ -152,11 +152,16 @@ public class GoblinFrontSelectGoodsServiceImpl extends ServiceImpl<GoblinFrontSe ...@@ -152,11 +152,16 @@ public class GoblinFrontSelectGoodsServiceImpl extends ServiceImpl<GoblinFrontSe
goblinFrontSelectGoodsParam.setGoblinGoodsList(goblinGoodsList); goblinFrontSelectGoodsParam.setGoblinGoodsList(goblinGoodsList);
goodsP.add(goblinFrontSelectGoodsParam); goodsP.add(goblinFrontSelectGoodsParam);
return goodsP; return goodsP;
}else{
GoblinFrontSelectGoodsParam goblinFrontSelectGoodsParam=new GoblinFrontSelectGoodsParam();
BeanUtils.copyProperties(a,goblinFrontSelectGoodsParam);
goblinFrontSelectGoodsParam.setGoblinGoodsList(goblinGoodsList);
goodsP.add(goblinFrontSelectGoodsParam);
return goodsP;
} }
}else{ }else{
return null; return null;
} }
return null;
} }
public boolean online(){ public boolean online(){
//查询 //查询
......
...@@ -763,6 +763,9 @@ public class GoblinFrontServiceImpl implements GoblinFrontService { ...@@ -763,6 +763,9 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
Iterator<GoblinFrontSelectGoods> it = list.iterator(); Iterator<GoblinFrontSelectGoods> it = list.iterator();
while (it.hasNext()) { while (it.hasNext()) {
GoblinFrontSelectGoods goblinFrontSelectGoods= it.next(); GoblinFrontSelectGoods goblinFrontSelectGoods= it.next();
if(StringUtils.isBlank(goblinFrontSelectGoods.getSpuId())){
it.remove();
}else{
GoblinGoodsInfoVo goblinGoodsInfoVo= goblinRedisUtils.getGoodsInfoVo(goblinFrontSelectGoods.getSpuId()); GoblinGoodsInfoVo goblinGoodsInfoVo= goblinRedisUtils.getGoodsInfoVo(goblinFrontSelectGoods.getSpuId());
if (null==goblinGoodsInfoVo) { if (null==goblinGoodsInfoVo) {
it.remove(); it.remove();
...@@ -770,6 +773,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService { ...@@ -770,6 +773,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
} }
} }
} }
}
/** /**
* @author zhangfuxin * @author zhangfuxin
* @Description:精选商品列表 * @Description:精选商品列表
......
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