提交代码

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) { if (region != null) {
List<Map<String, Object>> storeList = highGasOilPriceService.getStoreListByOilNo(storeName,region.getRegionId(), oilNoName); List<Map<String, Object>> storeList = highGasOilPriceService.getStoreListByOilNo(storeName,region.getRegionId(), oilNoName);
for (Map<String, Object> store : storeList) { for (Map<String, Object> store : storeList) {
if (StringUtils.isNotBlank(MapUtils.getString(store, "store_logo"))) { if (MapUtils.getInteger(store, "source_type").equals(1)) {
store.put("store_logo", CommonSysConst.getSysConfig().getHsgDomainName() +"/filesystem/"+MapUtils.getString(store, "store_logo")); if (StringUtils.isNotBlank(MapUtils.getString(store, "store_logo"))) {
} else { store.put("store_logo", CommonSysConst.getSysConfig().getHsgDomainName() +"/filesystem/"+MapUtils.getString(store, "store_logo"));
store.put("store_logo", null); } 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)); 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); store.put("distance", Math.round(distance/100d)/10d);

Loading…
Cancel
Save