mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-23 04:25:21 +08:00
添加 商家推送充电设备动态数据接口
This commit is contained in:
@@ -4,6 +4,7 @@ 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;
|
||||
@@ -57,4 +58,18 @@ public class AMapController extends BaseController {
|
||||
return result.checkSignFailed();
|
||||
// logger.info("高德拉取充电站静态数据 result:{}", );
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/pushStationStatus")
|
||||
public AMapCommonResult pushStationStatus(@RequestBody QueryPileDTO dto) {
|
||||
AMapCommonResult result = new AMapCommonResult();
|
||||
logger.info("商家推送充电设备动态数据");
|
||||
try {
|
||||
String pushResult = aMapService.pushChargingDeviceDynamics(dto.getPileConnectorCode());
|
||||
return result.successResponse(pushResult);
|
||||
} catch (Exception e) {
|
||||
logger.error("商家推送充电设备动态数据 error", e);
|
||||
}
|
||||
return result.failedResponse();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user