mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update 对接第三方平台
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user