mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
发送停止充电指令时,校验交易流水号是否一致
This commit is contained in:
@@ -204,7 +204,7 @@ public class OrderService {
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_ORDER_PILE_MAPPING_ERROR);
|
||||
}
|
||||
// push远程停机指令
|
||||
pileRemoteService.remoteStopCharging(dto.getPileSn(), dto.getConnectorCode());
|
||||
pileRemoteService.remoteStopCharging(dto.getPileSn(), dto.getConnectorCode(), orderBasicInfo.getTransactionCode());
|
||||
|
||||
}
|
||||
|
||||
@@ -308,7 +308,7 @@ public class OrderService {
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_ORDER_MEMBER_NOT_MATCH_ERROR);
|
||||
}
|
||||
// 发送停止指令
|
||||
pileRemoteService.remoteStopCharging(orderInfo.getPileSn(), orderInfo.getConnectorCode());
|
||||
pileRemoteService.remoteStopCharging(orderInfo.getPileSn(), orderInfo.getConnectorCode(), orderInfo.getTransactionCode());
|
||||
log.info("订单号:{}发送停机指令成功", dto.getOrderCode());
|
||||
}
|
||||
|
||||
@@ -721,7 +721,7 @@ public class OrderService {
|
||||
orderLogic.settleOrder(data, orderBasicInfo);
|
||||
|
||||
// 发送停止充电指令
|
||||
pileRemoteService.remoteStopCharging(orderBasicInfo.getPileSn(), orderBasicInfo.getConnectorCode());
|
||||
pileRemoteService.remoteStopCharging(orderBasicInfo.getPileSn(), orderBasicInfo.getConnectorCode(), orderBasicInfo.getTransactionCode());
|
||||
|
||||
log.info("人工结算订单-end orderCode:{}", dto.getOrderCode());
|
||||
return true;
|
||||
|
||||
@@ -95,7 +95,7 @@ public class PileRemoteController extends BaseController {
|
||||
if (StringUtils.isBlank(dto.getPileSn()) || StringUtils.isBlank(dto.getConnectorCode())) {
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR);
|
||||
}
|
||||
pileRemoteService.remoteStopCharging(dto.getPileSn(), dto.getConnectorCode());
|
||||
pileRemoteService.remoteStopCharging(dto.getPileSn(), dto.getConnectorCode(), null);
|
||||
ajaxResult = AjaxResult.success();
|
||||
} catch (BusinessException e) {
|
||||
ajaxResult = AjaxResult.error(e.getCode(), e.getMessage());
|
||||
|
||||
Reference in New Issue
Block a user