mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-11 10:49:52 +08:00
update 对接第三方平台
This commit is contained in:
@@ -220,14 +220,14 @@ public class LianLianController extends BaseController {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 充电站信息变化推送 notificationStationInfo
|
* 充电站信息变化推送 notificationStationInfo
|
||||||
|
* http://localhost:8080/LianLian/notificationStationInfo
|
||||||
*/
|
*/
|
||||||
@PostMapping("/notificationStationInfo")
|
@PostMapping("/notificationStationInfo")
|
||||||
public RestApiResponse<?> notificationStationInfo(@RequestBody PushInfoParamDTO dto) {
|
public RestApiResponse<?> notificationStationInfo(@RequestBody PushInfoParamDTO dto) {
|
||||||
logger.info("联联平台充电站信息变化推送 params:{}", JSON.toJSONString(dto));
|
logger.info("联联平台充电站信息变化推送 params:{}", JSON.toJSONString(dto));
|
||||||
RestApiResponse<?> response = null;
|
RestApiResponse<?> response = null;
|
||||||
try {
|
try {
|
||||||
if (StringUtils.isBlank(String.valueOf(dto.getPileConnectorCode())) ||
|
if (StringUtils.isBlank(String.valueOf(dto.getStationId()))) {
|
||||||
StringUtils.isBlank(String.valueOf(dto.getStatus()))) {
|
|
||||||
throw new BusinessException(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR);
|
throw new BusinessException(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR);
|
||||||
}
|
}
|
||||||
String result = lianLianService.notificationStationInfo(dto.getStationId());
|
String result = lianLianService.notificationStationInfo(dto.getStationId());
|
||||||
@@ -273,14 +273,14 @@ public class LianLianController extends BaseController {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 站点费率变化推送 notification_stationFee
|
* 站点费率变化推送 notification_stationFee
|
||||||
|
* http://localhost:8080/LianLian/notificationStationFee
|
||||||
*/
|
*/
|
||||||
@PostMapping("/notificationStationFee")
|
@PostMapping("/notificationStationFee")
|
||||||
public RestApiResponse<?> notificationStationFee(@RequestBody PushInfoParamDTO dto) {
|
public RestApiResponse<?> notificationStationFee(@RequestBody PushInfoParamDTO dto) {
|
||||||
logger.info("联联平台站点费率变化推送 params:{}", JSON.toJSONString(dto));
|
logger.info("联联平台站点费率变化推送 params:{}", JSON.toJSONString(dto));
|
||||||
RestApiResponse<?> response = null;
|
RestApiResponse<?> response = null;
|
||||||
try {
|
try {
|
||||||
if (StringUtils.isBlank(String.valueOf(dto.getPileConnectorCode())) ||
|
if (StringUtils.isBlank(String.valueOf(dto.getStationId()))) {
|
||||||
StringUtils.isBlank(String.valueOf(dto.getStatus()))) {
|
|
||||||
throw new BusinessException(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR);
|
throw new BusinessException(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR);
|
||||||
}
|
}
|
||||||
String result = lianLianService.notificationStationFee(dto.getStationId());
|
String result = lianLianService.notificationStationFee(dto.getStationId());
|
||||||
@@ -298,6 +298,7 @@ public class LianLianController extends BaseController {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 设备充电中状态变化推送 notification_connector_charge_status
|
* 设备充电中状态变化推送 notification_connector_charge_status
|
||||||
|
* http://localhost:8080/LianLian/notificationConnectorChargeStatus
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@GetMapping("/notificationConnectorChargeStatus/{orderCode}")
|
@GetMapping("/notificationConnectorChargeStatus/{orderCode}")
|
||||||
@@ -324,6 +325,7 @@ public class LianLianController extends BaseController {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 推送订单信息 notification_orderInfo
|
* 推送订单信息 notification_orderInfo
|
||||||
|
* http://localhost:8080/LianLian/notificationOrderInfo/
|
||||||
* @param orderCode
|
* @param orderCode
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user