mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update 高德
This commit is contained in:
@@ -1,19 +1,15 @@
|
||||
package com.jsowell.amap;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.jsowell.common.annotation.Anonymous;
|
||||
import com.jsowell.common.core.controller.BaseController;
|
||||
import com.jsowell.pile.dto.QueryPileDTO;
|
||||
import com.jsowell.pile.dto.amap.GetStationInfoDTO;
|
||||
import com.jsowell.thirdparty.amap.common.AMapCommonParams;
|
||||
import com.jsowell.thirdparty.amap.common.AMapCommonResult;
|
||||
import com.jsowell.thirdparty.amap.domain.AMapStationInfo;
|
||||
import com.jsowell.thirdparty.amap.service.AMapService;
|
||||
import com.jsowell.thirdparty.amap.util.AMapUtils;
|
||||
import org.apache.poi.ss.formula.functions.T;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
@@ -46,6 +42,7 @@ public class AMapController extends BaseController {
|
||||
String bizContent = requestMap.get("biz_content");
|
||||
GetStationInfoDTO dto = JSON.parseObject(bizContent, GetStationInfoDTO.class);
|
||||
List<AMapStationInfo> stationInfos = aMapService.getStationInfos(dto);
|
||||
List<AMapStationInfo> stationInfosV2 = aMapService.getStationInfosV2(dto);
|
||||
logger.info("高德拉取充电站静态数据 success");
|
||||
return result.successResponse(stationInfos);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user