update 高德

This commit is contained in:
2023-06-25 17:14:23 +08:00
parent d3982f81d1
commit 9a0bf581fd
8 changed files with 210 additions and 6 deletions

View File

@@ -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);
}