店铺名称

This commit is contained in:
Lenovo 2024-07-09 18:42:30 +08:00
parent 95f306b9ac
commit 0b9efc9c44
1 changed files with 12 additions and 3 deletions

View File

@ -72,9 +72,6 @@ public class MeituanServiceImpl implements IMeituanService {
@Autowired @Autowired
private ProxyProperties proxyProperties; private ProxyProperties proxyProperties;
@Autowired
private IBusAgentInfoService iBusAgentInfoService;
@Autowired @Autowired
private BusReturnVisitInfoMapper busReturnVisitInfoMapper; private BusReturnVisitInfoMapper busReturnVisitInfoMapper;
@ -230,6 +227,18 @@ public class MeituanServiceImpl implements IMeituanService {
if ("0".equals(code)) { if ("0".equals(code)) {
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");
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(); BusStoreInfo store = new BusStoreInfo();
store.setStoreCode(wmPoiId); store.setStoreCode(wmPoiId);
List<BusStoreInfo> list = busStoreInfoService.selectBusStoreInfoList(store); List<BusStoreInfo> list = busStoreInfoService.selectBusStoreInfoList(store);