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

Commit 9bd3e534 authored by zhengfuxin's avatar zhengfuxin

修改bug

parent d2755042
...@@ -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,9 +763,13 @@ public class GoblinFrontServiceImpl implements GoblinFrontService { ...@@ -763,9 +763,13 @@ 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();
GoblinGoodsInfoVo goblinGoodsInfoVo= goblinRedisUtils.getGoodsInfoVo(goblinFrontSelectGoods.getSpuId()); if(StringUtils.isBlank(goblinFrontSelectGoods.getSpuId())){
if (null==goblinGoodsInfoVo) {
it.remove(); it.remove();
}else{
GoblinGoodsInfoVo goblinGoodsInfoVo= goblinRedisUtils.getGoodsInfoVo(goblinFrontSelectGoods.getSpuId());
if (null==goblinGoodsInfoVo) {
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