mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 03:55:17 +08:00
update 高德地图工具类
This commit is contained in:
@@ -28,4 +28,11 @@ public interface AMapService {
|
||||
* @throws Exception
|
||||
*/
|
||||
String pushChargingDeviceDynamics(String pileConnectorCode) throws Exception;
|
||||
|
||||
/**
|
||||
* 商家推送充电订单信息
|
||||
* @param orderCode
|
||||
* @return
|
||||
*/
|
||||
String pushChargingOrderInfo(String orderCode);
|
||||
}
|
||||
|
||||
@@ -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查询计费模板
|
||||
|
||||
Reference in New Issue
Block a user