删除原获取店铺名
This commit is contained in:
parent
5a2fdc14de
commit
bfc55e5c96
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue