提交代码

dev-discount
胡锐 3 years ago
parent bd7c2c5f99
commit 86f186078b
  1. 10
      hai-cweb/src/main/java/com/cweb/controller/HighGasController.java

@ -92,10 +92,12 @@ 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);
if (MapUtils.getInteger(store, "source_type").equals(1)) {
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);

Loading…
Cancel
Save