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 8cae2e0..22534b6 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 @@ -250,6 +250,11 @@ public class MeituanServiceImpl implements IMeituanService { return "ok"; } + /** + * 昨日订单量 + * @param storeInfo + * @return + */ public boolean yesterdayCountOne(BusStoreInfo storeInfo){ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); String wmPoiId = valueFromCookie("wmPoiId", storeInfo.getStoreCookie()); @@ -263,17 +268,17 @@ public class MeituanServiceImpl implements IMeituanService { 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 = order1.getString("poiName"); - if (storeInfo.getStoreName() == null) { - storeInfo.setStoreName(poiName); - busStoreInfoService.updateBusStoreInfo(storeInfo); - } +// 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 = order1.getString("poiName"); +// if (storeInfo.getStoreName() == null) { +// storeInfo.setStoreName(poiName); +// busStoreInfoService.updateBusStoreInfo(storeInfo); +// } BusStoreInfo store = new BusStoreInfo(); store.setStoreCode(wmPoiId);