mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
新增 高德商家推送静态信息状态、高德拉取商家静态详细信息接口
This commit is contained in:
@@ -40,5 +40,14 @@ public interface AMapService {
|
||||
|
||||
List<AMapStationInfo> getStationInfosV2(GetStationInfoDTO dto);
|
||||
|
||||
/**
|
||||
* 推送站点信息
|
||||
* 站点状态如有变化,(上线、下线)调用此接口
|
||||
* @param stationIds 站点idList
|
||||
* @param status 更改站点状态(1:上线,0:下线)
|
||||
* @return
|
||||
*/
|
||||
String pushStationInfo(List<String> stationIds, String status) throws Exception;
|
||||
|
||||
Map<String, List<AMapEquipmentInfo>> getPileListByStationIdList(List<String> stationIdList);
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ public class AMapServiceImpl implements AMapService {
|
||||
PageUtils.startPage(pageNo, pageSize);
|
||||
// 查询站点信息
|
||||
sw.start("查询站点信息");
|
||||
List<PileStationInfo> stationInfos = pileStationInfoService.getStationInfosByAmap();
|
||||
List<PileStationInfo> stationInfos = pileStationInfoService.getStationInfosByAmap(dto);
|
||||
|
||||
PageInfo<PileStationInfo> pageInfo = new PageInfo<>(stationInfos);
|
||||
sw.stop();
|
||||
@@ -123,7 +123,7 @@ public class AMapServiceImpl implements AMapService {
|
||||
PageUtils.startPage(pageNo, pageSize);
|
||||
|
||||
// 第一次查询,得到站点
|
||||
List<PileStationInfo> stationInfos = pileStationInfoService.getStationInfosByAmap();
|
||||
List<PileStationInfo> stationInfos = pileStationInfoService.getStationInfosByAmap(dto);
|
||||
PageInfo<PileStationInfo> pageInfo = new PageInfo<>(stationInfos);
|
||||
List<PileStationInfo> stationList = pageInfo.getList();
|
||||
if (CollectionUtils.isEmpty(stationList)) {
|
||||
@@ -252,6 +252,28 @@ public class AMapServiceImpl implements AMapService {
|
||||
return resultList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 推送站点信息
|
||||
* 站点状态如有变化,(上线、下线)调用此接口
|
||||
* @param stationIds 站点idList
|
||||
* @param status 更改站点状态(1:上线,0:下线)
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public String pushStationInfo(List<String> stationIds, String status) throws Exception {
|
||||
// 拼装业务参数
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
jsonObject.put("status", status);
|
||||
jsonObject.put("idList", stationIds);
|
||||
|
||||
String SPI = "amap.charging.pushStationInfo";
|
||||
|
||||
Map<String, String> map = AMapUtils.generateParamMap(jsonObject, SPI);
|
||||
|
||||
// 调用高德接口
|
||||
return AMapUtils.sendPost(map);
|
||||
}
|
||||
|
||||
/**
|
||||
* 拼装高德需要的格式数据
|
||||
* @param stationInfo 站点信息
|
||||
|
||||
Reference in New Issue
Block a user