|
@@ -82,7 +82,7 @@ public class LifeUserStoreService {
|
|
|
// 过滤掉永久关门的店铺
|
|
// 过滤掉永久关门的店铺
|
|
|
wrapper.ne("a.business_status", 99);
|
|
wrapper.ne("a.business_status", 99);
|
|
|
// 根据构建的条件查询门店信息
|
|
// 根据构建的条件查询门店信息
|
|
|
- List<StoreInfoVo> storeInfoVoList = storeInfoMapper.getStoreInfoVoList(wrapper);
|
|
|
|
|
|
|
+ List<StoreInfoVo> storeInfoVoList = storeInfoMapper.getStoreInfoVoListNew(wrapper,weidu + "," + jingdu);
|
|
|
// 如果查询结果为空,则直接返回空列表
|
|
// 如果查询结果为空,则直接返回空列表
|
|
|
if (storeInfoVoList.isEmpty()) {
|
|
if (storeInfoVoList.isEmpty()) {
|
|
|
return returnMaps;
|
|
return returnMaps;
|
|
@@ -113,7 +113,7 @@ public class LifeUserStoreService {
|
|
|
|
|
|
|
|
Map<String, Object> storeMap = new HashMap<>();
|
|
Map<String, Object> storeMap = new HashMap<>();
|
|
|
// 如果用户提供了经纬度信息,则计算并添加门店到用户的距离
|
|
// 如果用户提供了经纬度信息,则计算并添加门店到用户的距离
|
|
|
- if ((jingdu != null && !jingdu.isEmpty()) && (weidu != null && !weidu.isEmpty())) {
|
|
|
|
|
|
|
+ /*if ((jingdu != null && !jingdu.isEmpty()) && (weidu != null && !weidu.isEmpty())) {
|
|
|
double storeJing = Double.parseDouble(store.getStorePosition().split(",")[0]);
|
|
double storeJing = Double.parseDouble(store.getStorePosition().split(",")[0]);
|
|
|
double storeWei = Double.parseDouble(store.getStorePosition().split(",")[1]);
|
|
double storeWei = Double.parseDouble(store.getStorePosition().split(",")[1]);
|
|
|
double storeDistance = DistanceUtil.haversineCalculateDistance(Double.parseDouble(jingdu), Double.parseDouble(weidu), storeJing, storeWei);
|
|
double storeDistance = DistanceUtil.haversineCalculateDistance(Double.parseDouble(jingdu), Double.parseDouble(weidu), storeJing, storeWei);
|
|
@@ -121,7 +121,8 @@ public class LifeUserStoreService {
|
|
|
} else {
|
|
} else {
|
|
|
// 否则,返回提示信息
|
|
// 否则,返回提示信息
|
|
|
storeMap.put("distance", "没有位置信息");
|
|
storeMap.put("distance", "没有位置信息");
|
|
|
- }
|
|
|
|
|
|
|
+ }*/
|
|
|
|
|
+ storeMap.put("distance", store.getDist());
|
|
|
// 添加门店的业务状态及其描述
|
|
// 添加门店的业务状态及其描述
|
|
|
storeMap.put("businessStatus", store.getBusinessStatus());
|
|
storeMap.put("businessStatus", store.getBusinessStatus());
|
|
|
storeMap.put("businessStatusStr", store.getBusinessStatusStr());
|
|
storeMap.put("businessStatusStr", store.getBusinessStatusStr());
|