update 高德地图工具类

This commit is contained in:
Lemon
2023-06-16 16:08:17 +08:00
parent 1874808419
commit cea3464cdc
7 changed files with 151 additions and 34 deletions

View File

@@ -28,4 +28,11 @@ public interface AMapService {
* @throws Exception
*/
String pushChargingDeviceDynamics(String pileConnectorCode) throws Exception;
/**
* 商家推送充电订单信息
* @param orderCode
* @return
*/
String pushChargingOrderInfo(String orderCode);
}

View File

@@ -5,6 +5,7 @@ import com.jsowell.common.constant.Constants;
import com.jsowell.common.exception.BusinessException;
import com.jsowell.common.util.PageUtils;
import com.jsowell.common.util.StringUtils;
import com.jsowell.pile.domain.OrderBasicInfo;
import com.jsowell.pile.domain.PileBasicInfo;
import com.jsowell.pile.domain.PileStationInfo;
import com.jsowell.pile.dto.amap.ChargeDeviceDynamicsDTO;
@@ -52,6 +53,9 @@ public class AMapServiceImpl implements AMapService {
@Autowired
private IPileModelInfoService pileModelInfoService;
@Autowired
private IOrderBasicInfoService orderBasicInfoService;
/**
* 高德拉取充电站静态数据
* @param dto
@@ -125,6 +129,7 @@ public class AMapServiceImpl implements AMapService {
*/
@Override
public String pushChargingDeviceDynamics(String pileConnectorCode) throws Exception {
// 根据枪口号查出桩信息
PileConnectorDetailVO pileConnectorDetailVO = pileBasicInfoService.queryPileConnectorDetail(pileConnectorCode);
if (pileConnectorDetailVO == null) {
@@ -155,6 +160,24 @@ public class AMapServiceImpl implements AMapService {
return AMapUtils.sendPost(map);
}
/**
* 商家推送充电订单信息
* @param orderCode
* @return
*/
@Override
public String pushChargingOrderInfo(String orderCode) {
// 根据订单编号查询信息
OrderBasicInfo orderBasicInfo = orderBasicInfoService.getOrderInfoByOrderCode(orderCode);
// 拼装业务参数
JSONObject json = new JSONObject();
json.put("", "");
return null;
}
/**
* 根据站点id查询计费模板