Commit 3704404d by guojx

门店pk榜单接口不需要传门店id参数

parent a597ab93
......@@ -337,6 +337,11 @@ public class DataController {
}
String apolloKey = qo.getApolloKey();
boolean notNeedStoreIdParam = "data_store_rank_index_info".equals(apolloKey);
if (notNeedStoreIdParam) {
jsonObject.remove("storeId");
}
Map<String, Object> res = DataApiUtils.http(jsonObject.toJSONString(), apolloKey);
boolean isNeedFill = (apolloKey.contains("data_mbr_scale_stat_new_custm_overview")
......
......@@ -79,7 +79,7 @@ public class StoreRankController {
if (CollectionUtils.isEmpty(enterpriseIndexList)) {
return RestResponse.successResult(Collections.emptyList());
}
Set<String> set = indexList.stream().map(e -> e.getIndexCode()).collect(Collectors.toSet());
Set<String> set = enterpriseIndexList.stream().map(e -> e.getIndexCode()).collect(Collectors.toSet());
indexList = indexList.stream().filter(e -> set.contains(e.getIndexCode())).collect(Collectors.toList());
return RestResponse.successResult(indexList);
}
......
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