mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 03:55:17 +08:00
新增 高德商家推送静态信息状态、高德拉取商家静态详细信息接口
This commit is contained in:
@@ -60,6 +60,35 @@ public class AMapController extends BaseController {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 高德拉取商家静态详细信息
|
||||
* @param requestMap
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/getStationInfo")
|
||||
public AMapCommonResult getStationInfo(@RequestParam Map<String, String> requestMap) {
|
||||
AMapCommonResult result = new AMapCommonResult();
|
||||
String paramString = JSON.toJSONString(requestMap);
|
||||
logger.info("高德拉取商家静态详细信息 params:{}", paramString);
|
||||
try {
|
||||
// Map map = JSON.parseObject(paramString, Map.class);
|
||||
// Map<String, String> paramMap = (Map<String, String>)JSON.parse(paramString);
|
||||
if (AMapUtils.checkSign(requestMap)) {
|
||||
// true 验签成功
|
||||
String bizContent = requestMap.get("biz_content");
|
||||
GetStationInfoDTO dto = JSON.parseObject(bizContent, GetStationInfoDTO.class);
|
||||
List<AMapStationInfo> stationInfos = aMapService.getStationInfosV2(dto);
|
||||
result = result.successResponse(stationInfos);
|
||||
logger.info("高德拉取商家静态详细信息 success result:{}", JSON.toJSONString(result));
|
||||
return result;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/pushStationStatus")
|
||||
public AMapCommonResult pushStationStatus(@RequestBody QueryPileDTO dto) {
|
||||
AMapCommonResult result = new AMapCommonResult();
|
||||
|
||||
Reference in New Issue
Block a user