|
|
@@ -2596,10 +2596,15 @@ public class StoreInfoServiceImpl extends ServiceImpl<StoreInfoMapper, StoreInfo
|
|
|
}
|
|
|
})
|
|
|
.collect(Collectors.toList());
|
|
|
-
|
|
|
+
|
|
|
+ // 按距离从近到远排序(distance3 越小越靠前)
|
|
|
+ filteredList.sort(Comparator.comparingDouble(StoreInfoVo::getDistance3));
|
|
|
+
|
|
|
// 记录距离筛选结果
|
|
|
if (log.isInfoEnabled()) {
|
|
|
- log.info("距离筛选完成,原始店铺数量:" + storeInfoVoList.size() + ",筛选后店铺数量:" + filteredList.size() + ",筛选距离:" + distance + "米");
|
|
|
+ log.info("距离筛选完成,原始店铺数量:" + storeInfoVoList.size()
|
|
|
+ + ",筛选后店铺数量:" + filteredList.size()
|
|
|
+ + ",筛选距离:" + distance + "米");
|
|
|
}
|
|
|
}
|
|
|
return filteredList;
|