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

Commit 377d6e37 authored by 胡佳晨's avatar 胡佳晨

去重

parent ed11a382
...@@ -48,7 +48,7 @@ public class GoblinAppZhengzaiServiceImpl implements IGoblinAppZhengzaiService { ...@@ -48,7 +48,7 @@ public class GoblinAppZhengzaiServiceImpl implements IGoblinAppZhengzaiService {
@Override @Override
public List<GoblinShowStoreInfoVo> getStoreList(String marketId) { public List<GoblinShowStoreInfoVo> getStoreList(String marketId) {
List<GoblinMarketRelationVo> relationVo = redisUtils.getMarketRelation(GoblinStatusConst.MarketPreStatus.MARKET_PRE_ZHENGZAI.getValue(), marketId); List<GoblinMarketRelationVo> relationVo = redisUtils.getMarketRelation(GoblinStatusConst.MarketPreStatus.MARKET_PRE_ZHENGZAI.getValue(), marketId);
List<String> storeIdList = relationVo.stream().map(GoblinMarketRelationVo::getStoreId).collect(Collectors.toList()); List<String> storeIdList = relationVo.stream().map(GoblinMarketRelationVo::getStoreId).distinct().collect(Collectors.toList());
List<GoblinShowStoreInfoVo> voList = ObjectUtil.getGoblinShowStoreInfoVoArrayList(); List<GoblinShowStoreInfoVo> voList = ObjectUtil.getGoblinShowStoreInfoVoArrayList();
for (String storeId : storeIdList) { for (String storeId : storeIdList) {
if (storeId == null) { if (storeId == null) {
......
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