|
|
|
@ -92,6 +92,11 @@ public class HighGasController { |
|
|
|
|
if (region != null) { |
|
|
|
|
List<Map<String, Object>> storeList = highGasOilPriceService.getStoreListByOilNo(storeName,region.getRegionId(), oilNoName); |
|
|
|
|
for (Map<String, Object> store : storeList) { |
|
|
|
|
if (StringUtils.isNotBlank(MapUtils.getString(store, "store_logo"))) { |
|
|
|
|
store.put("store_logo", CommonSysConst.getSysConfig().getHsgDomainName() +"/filesystem/"+MapUtils.getString(store, "store_logo")); |
|
|
|
|
} else { |
|
|
|
|
store.put("store_logo", null); |
|
|
|
|
} |
|
|
|
|
double distance = CoordCommonUtil.getDistance(Double.valueOf(store.get("latitude").toString()), Double.valueOf(store.get("longitude").toString()), Double.valueOf(latitude), Double.valueOf(longitude)); |
|
|
|
|
store.put("distance", Math.round(distance/100d)/10d); |
|
|
|
|
} |
|
|
|
@ -230,7 +235,7 @@ public class HighGasController { |
|
|
|
|
param.put("gasLogoBig", CommonSysConst.getSysConfig().getHsgDomainName()+"/filesystem/"+store.getStoreLogo()); |
|
|
|
|
param.put("gasLogoSmall", CommonSysConst.getSysConfig().getHsgDomainName()+"/filesystem/"+store.getStoreLogo()); |
|
|
|
|
param.put("gasAddressLatitude", store.getLatitude()); |
|
|
|
|
param.put("gasAddressLongitude", store.getLatitude()); |
|
|
|
|
param.put("gasAddressLongitude", store.getLongitude()); |
|
|
|
|
// 距离
|
|
|
|
|
double distance = CoordCommonUtil.getDistance(Double.valueOf(param.get("gasAddressLatitude").toString()), Double.valueOf(param.get("gasAddressLongitude").toString()), Double.valueOf(latitude), Double.valueOf(longitude)); |
|
|
|
|
param.put("distance", Math.round(distance/100d)/10d); |
|
|
|
|