|
@@ -1,5 +1,6 @@
|
|
|
package com.zswl.cloud.springBtach.server.core.service.impl;
|
|
|
|
|
|
+import cn.hutool.json.JSONArray;
|
|
|
import cn.hutool.json.JSONObject;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
import com.github.microservice.auth.client.content.ResultContent;
|
|
@@ -141,4 +142,30 @@ public class QiuXiangServiceImpl implements QiuXiangService {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public ResultContent<OrderDelitResponse> driverLocation(String orderId) {
|
|
|
+
|
|
|
+ ResultContent<GoodsResultModel> goodsResultModelResultContent = orderService2.qrGoods(orderId);
|
|
|
+ GoodsResultModel content = goodsResultModelResultContent.getContent();
|
|
|
+ JSONObject goodsInfo = content.getGoodsInfo();
|
|
|
+ String goodsId = goodsInfo.get("channelOrderId").toString();
|
|
|
+
|
|
|
+ JSONObject entries = qiuXiangApi.driverLocation(goodsId);
|
|
|
+
|
|
|
+ return ResultContent.build(ResultState.Success, entries);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public ResultContent<OrderDelitResponse> driverLocationLog(String orderId) {
|
|
|
+
|
|
|
+ ResultContent<GoodsResultModel> goodsResultModelResultContent = orderService2.qrGoods(orderId);
|
|
|
+ GoodsResultModel content = goodsResultModelResultContent.getContent();
|
|
|
+ JSONObject goodsInfo = content.getGoodsInfo();
|
|
|
+ String goodsId = goodsInfo.get("channelOrderId").toString();
|
|
|
+
|
|
|
+ JSONArray entries = qiuXiangApi.driverLocationLog(goodsId);
|
|
|
+
|
|
|
+ return ResultContent.build(ResultState.Success, entries);
|
|
|
+ }
|
|
|
}
|