mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-13 03:39:55 +08:00
update
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package com.jsowell.amap;
|
package com.jsowell.amap;
|
||||||
|
|
||||||
import com.alibaba.fastjson2.JSON;
|
import com.alibaba.fastjson2.JSON;
|
||||||
|
import com.alibaba.fastjson2.JSONObject;
|
||||||
import com.jsowell.common.annotation.Anonymous;
|
import com.jsowell.common.annotation.Anonymous;
|
||||||
import com.jsowell.common.core.controller.BaseController;
|
import com.jsowell.common.core.controller.BaseController;
|
||||||
import com.jsowell.pile.dto.QueryPileDTO;
|
import com.jsowell.pile.dto.QueryPileDTO;
|
||||||
@@ -62,9 +63,9 @@ public class AMapController extends BaseController {
|
|||||||
@PostMapping("/pushStationStatus")
|
@PostMapping("/pushStationStatus")
|
||||||
public AMapCommonResult pushStationStatus(@RequestBody QueryPileDTO dto) {
|
public AMapCommonResult pushStationStatus(@RequestBody QueryPileDTO dto) {
|
||||||
AMapCommonResult result = new AMapCommonResult();
|
AMapCommonResult result = new AMapCommonResult();
|
||||||
logger.info("商家推送充电设备动态数据");
|
logger.info("商家推送充电设备动态数据 params:{}", JSONObject.toJSONString(dto));
|
||||||
try {
|
try {
|
||||||
String pushResult = aMapService.pushChargingDeviceDynamics(dto.getPileConnectorCode());
|
String pushResult = aMapService.pushChargingDeviceDynamics(dto.getStationId());
|
||||||
return result.successResponse(pushResult);
|
return result.successResponse(pushResult);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("商家推送充电设备动态数据 error", e);
|
logger.error("商家推送充电设备动态数据 error", e);
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ public class AdapayMemberController extends BaseController {
|
|||||||
logger.warn("创建结算账户接口warn", e);
|
logger.warn("创建结算账户接口warn", e);
|
||||||
result = AjaxResult.error(e.getMessage());
|
result = AjaxResult.error(e.getMessage());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.warn("创建结算账户接口error", e);
|
logger.error("创建结算账户接口error", e);
|
||||||
result = AjaxResult.error("创建结算账户接口异常:" + e.getMessage());
|
result = AjaxResult.error("创建结算账户接口异常:" + e.getMessage());
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -34,4 +34,6 @@ public class QueryPileDTO extends BasicPileDTO{
|
|||||||
* 桩编码List
|
* 桩编码List
|
||||||
*/
|
*/
|
||||||
private List<String> pileSns;
|
private List<String> pileSns;
|
||||||
|
|
||||||
|
private String stationId;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user