update 对接第三方平台

This commit is contained in:
2024-03-28 12:04:49 +08:00
parent 8482585a21
commit ad5d24618c

View File

@@ -220,14 +220,14 @@ public class LianLianController extends BaseController {
/**
* 充电站信息变化推送 notificationStationInfo
* http://localhost:8080/LianLian/notificationStationInfo
*/
@PostMapping("/notificationStationInfo")
public RestApiResponse<?> notificationStationInfo(@RequestBody PushInfoParamDTO dto) {
logger.info("联联平台充电站信息变化推送 params:{}", JSON.toJSONString(dto));
RestApiResponse<?> response = null;
try {
if (StringUtils.isBlank(String.valueOf(dto.getPileConnectorCode())) ||
StringUtils.isBlank(String.valueOf(dto.getStatus()))) {
if (StringUtils.isBlank(String.valueOf(dto.getStationId()))) {
throw new BusinessException(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR);
}
String result = lianLianService.notificationStationInfo(dto.getStationId());
@@ -273,14 +273,14 @@ public class LianLianController extends BaseController {
/**
* 站点费率变化推送 notification_stationFee
* http://localhost:8080/LianLian/notificationStationFee
*/
@PostMapping("/notificationStationFee")
public RestApiResponse<?> notificationStationFee(@RequestBody PushInfoParamDTO dto) {
logger.info("联联平台站点费率变化推送 params:{}", JSON.toJSONString(dto));
RestApiResponse<?> response = null;
try {
if (StringUtils.isBlank(String.valueOf(dto.getPileConnectorCode())) ||
StringUtils.isBlank(String.valueOf(dto.getStatus()))) {
if (StringUtils.isBlank(String.valueOf(dto.getStationId()))) {
throw new BusinessException(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR);
}
String result = lianLianService.notificationStationFee(dto.getStationId());
@@ -298,6 +298,7 @@ public class LianLianController extends BaseController {
/**
* 设备充电中状态变化推送 notification_connector_charge_status
* http://localhost:8080/LianLian/notificationConnectorChargeStatus
* @return
*/
@GetMapping("/notificationConnectorChargeStatus/{orderCode}")
@@ -324,6 +325,7 @@ public class LianLianController extends BaseController {
/**
* 推送订单信息 notification_orderInfo
* http://localhost:8080/LianLian/notificationOrderInfo/
* @param orderCode
* @return
*/