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

Commit 4cafea83 authored by 胡佳晨's avatar 胡佳晨

隐藏 周焕给的 fcateId 隐藏

parent d6624b43
...@@ -505,6 +505,9 @@ public class GoblinFrontServiceImpl implements GoblinFrontService { ...@@ -505,6 +505,9 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
} else { } else {
//无音乐人标签的 //无音乐人标签的
GoblinStoreInfoVo goblinStoreInfoVo = goblinRedisUtils.getStoreInfoVo(goblinGoodsInfoVo.getStoreId()); GoblinStoreInfoVo goblinStoreInfoVo = goblinRedisUtils.getStoreInfoVo(goblinGoodsInfoVo.getStoreId());
if(isHidden(goblinGoodsInfoVo.getCateFid())){
continue;
}
if (null != goblinStoreInfoVo) { if (null != goblinStoreInfoVo) {
goblinGoodsInfoVo.setStoreName(goblinStoreInfoVo.getStoreName()); goblinGoodsInfoVo.setStoreName(goblinStoreInfoVo.getStoreName());
} }
...@@ -857,6 +860,9 @@ public class GoblinFrontServiceImpl implements GoblinFrontService { ...@@ -857,6 +860,9 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
for (String id : spuids) { for (String id : spuids) {
GoblinGoodsInfoVo goblinGoodsInfoVo = goblinRedisUtils.getGoodsInfoVo(id); GoblinGoodsInfoVo goblinGoodsInfoVo = goblinRedisUtils.getGoodsInfoVo(id);
if (null != goblinGoodsInfoVo) { if (null != goblinGoodsInfoVo) {
if(isHidden(goblinGoodsInfoVo.getCateFid())){
continue;
}
goblinGoodsInfoVoArrayList.add(goblinGoodsInfoVo); goblinGoodsInfoVoArrayList.add(goblinGoodsInfoVo);
} }
} }
...@@ -909,6 +915,9 @@ public class GoblinFrontServiceImpl implements GoblinFrontService { ...@@ -909,6 +915,9 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
for (int i = 0; i < end; i++) { for (int i = 0; i < end; i++) {
if (i >= start) { if (i >= start) {
GoblinGoodsInfoVo goblinGoodsInfoVo = goblinRedisUtils.getGoodsInfoVo(spuidss[i]); GoblinGoodsInfoVo goblinGoodsInfoVo = goblinRedisUtils.getGoodsInfoVo(spuidss[i]);
if(isHidden(goblinGoodsInfoVo.getCateFid())){
continue;
}
goblinGoodsInfoVoArrayList.add(goblinGoodsInfoVo); goblinGoodsInfoVoArrayList.add(goblinGoodsInfoVo);
} }
} }
...@@ -1418,4 +1427,13 @@ public class GoblinFrontServiceImpl implements GoblinFrontService { ...@@ -1418,4 +1427,13 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
} }
private boolean isHidden(String fcateId){
ArrayList<String> hiddenIds = CollectionUtil.arrayListString();
hiddenIds.add("22196120924543");
hiddenIds.add("22196122839313");
if(hiddenIds.contains(fcateId)){
return true;
}
return false;
}
} }
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