From 0b9efc9c444fd87c0fd071fb4ca498f62fedf2a4 Mon Sep 17 00:00:00 2001 From: Lenovo Date: Tue, 9 Jul 2024 18:42:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=97=E9=93=BA=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/service/impl/MeituanServiceImpl.java | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/business/service/impl/MeituanServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/business/service/impl/MeituanServiceImpl.java index 1f1b12c..e712749 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/business/service/impl/MeituanServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/business/service/impl/MeituanServiceImpl.java @@ -72,9 +72,6 @@ public class MeituanServiceImpl implements IMeituanService { @Autowired private ProxyProperties proxyProperties; - @Autowired - private IBusAgentInfoService iBusAgentInfoService; - @Autowired private BusReturnVisitInfoMapper busReturnVisitInfoMapper; @@ -230,6 +227,18 @@ public class MeituanServiceImpl implements IMeituanService { if ("0".equals(code)) { JSONObject data = jsonObject.getJSONObject("data"); String total = data.getString("totalCount"); + + JSONArray array = jsonObject.getJSONObject("data").getJSONArray("wmOrderList"); + Object o = array.get(0); + JSONObject oj = JSONObject.parseObject(JSON.toJSONString(o)); + JSONObject order0 = oj.getJSONObject("orderInfo"); + JSONObject order1 = order0.getJSONObject("orderInfo"); + JSONObject tipInfoVo = order1.getJSONObject("tipInfoVo"); + String poiName = tipInfoVo.getString("poiName"); + if (storeInfo.getStoreName() == null) { + storeInfo.setStoreName(poiName); + } + BusStoreInfo store = new BusStoreInfo(); store.setStoreCode(wmPoiId); List list = busStoreInfoService.selectBusStoreInfoList(store);