From 86f186078bbd34928deb62be70a483acd9e9eaf2 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Fri, 20 May 2022 09:28:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/cweb/controller/HighGasController.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/hai-cweb/src/main/java/com/cweb/controller/HighGasController.java b/hai-cweb/src/main/java/com/cweb/controller/HighGasController.java index b166831d..731a2793 100644 --- a/hai-cweb/src/main/java/com/cweb/controller/HighGasController.java +++ b/hai-cweb/src/main/java/com/cweb/controller/HighGasController.java @@ -92,10 +92,12 @@ public class HighGasController { if (region != null) { List> storeList = highGasOilPriceService.getStoreListByOilNo(storeName,region.getRegionId(), oilNoName); for (Map 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);