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);