删除原获取店铺名
This commit is contained in:
parent
5a2fdc14de
commit
bfc55e5c96
|
@ -250,6 +250,11 @@ public class MeituanServiceImpl implements IMeituanService {
|
||||||
return "ok";
|
return "ok";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 昨日订单量
|
||||||
|
* @param storeInfo
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
public boolean yesterdayCountOne(BusStoreInfo storeInfo){
|
public boolean yesterdayCountOne(BusStoreInfo storeInfo){
|
||||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
String wmPoiId = valueFromCookie("wmPoiId", storeInfo.getStoreCookie());
|
String wmPoiId = valueFromCookie("wmPoiId", storeInfo.getStoreCookie());
|
||||||
|
@ -263,17 +268,17 @@ public class MeituanServiceImpl implements IMeituanService {
|
||||||
JSONObject data = jsonObject.getJSONObject("data");
|
JSONObject data = jsonObject.getJSONObject("data");
|
||||||
String total = data.getString("totalCount");
|
String total = data.getString("totalCount");
|
||||||
|
|
||||||
JSONArray array = jsonObject.getJSONObject("data").getJSONArray("wmOrderList");
|
// JSONArray array = jsonObject.getJSONObject("data").getJSONArray("wmOrderList");
|
||||||
Object o = array.get(0);
|
// Object o = array.get(0);
|
||||||
JSONObject oj = JSONObject.parseObject(JSON.toJSONString(o));
|
// JSONObject oj = JSONObject.parseObject(JSON.toJSONString(o));
|
||||||
JSONObject order0 = oj.getJSONObject("orderInfo");
|
// JSONObject order0 = oj.getJSONObject("orderInfo");
|
||||||
JSONObject order1 = order0.getJSONObject("orderInfo");
|
// JSONObject order1 = order0.getJSONObject("orderInfo");
|
||||||
// JSONObject tipInfoVo = order1.getJSONObject("tipInfoVo");
|
//// JSONObject tipInfoVo = order1.getJSONObject("tipInfoVo");
|
||||||
String poiName = order1.getString("poiName");
|
// String poiName = order1.getString("poiName");
|
||||||
if (storeInfo.getStoreName() == null) {
|
// if (storeInfo.getStoreName() == null) {
|
||||||
storeInfo.setStoreName(poiName);
|
// storeInfo.setStoreName(poiName);
|
||||||
busStoreInfoService.updateBusStoreInfo(storeInfo);
|
// busStoreInfoService.updateBusStoreInfo(storeInfo);
|
||||||
}
|
// }
|
||||||
|
|
||||||
BusStoreInfo store = new BusStoreInfo();
|
BusStoreInfo store = new BusStoreInfo();
|
||||||
store.setStoreCode(wmPoiId);
|
store.setStoreCode(wmPoiId);
|
||||||
|
|
Loading…
Reference in New Issue