mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-13 10:38:05 +08:00
update
This commit is contained in:
@@ -198,15 +198,8 @@ public class ConfirmStartChargingRequestHandler extends AbstractYkcHandler {
|
|||||||
.vinCode(vinCode)
|
.vinCode(vinCode)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
// 初始化返回值
|
// 启动充电
|
||||||
Map<String, String> resultMap = new HashMap<>();
|
Map<String, String> resultMap = this.confirmStartCharging(confirmStartChargingData);
|
||||||
try {
|
|
||||||
// 启动充电
|
|
||||||
resultMap = this.confirmStartCharging(confirmStartChargingData);
|
|
||||||
} catch (Exception e) {
|
|
||||||
// 有报错,说明验证失败,应该返回鉴权失败
|
|
||||||
resultMap.put("defeatReasonCode", "05"); // 05 桩停用
|
|
||||||
}
|
|
||||||
|
|
||||||
byte[] defeatReasonByteArr = Constants.zeroByteArray;
|
byte[] defeatReasonByteArr = Constants.zeroByteArray;
|
||||||
/**
|
/**
|
||||||
@@ -360,7 +353,14 @@ public class ConfirmStartChargingRequestHandler extends AbstractYkcHandler {
|
|||||||
dto.setMerchantId(pileBasicInfo.getMerchantId() + "");
|
dto.setMerchantId(pileBasicInfo.getMerchantId() + "");
|
||||||
|
|
||||||
// 校验充电桩相关的信息
|
// 校验充电桩相关的信息
|
||||||
orderBasicInfoService.checkPileInfoForEV(dto);
|
try {
|
||||||
|
orderBasicInfoService.checkPileInfoForEV(dto);
|
||||||
|
} catch (Exception e) {
|
||||||
|
// 校验充电桩报错,返回校验值 05-桩停用
|
||||||
|
resultMap.put("transactionCode", Constants.ILLEGAL_TRANSACTION_CODE);
|
||||||
|
resultMap.put("accountBalance", accountBalance);
|
||||||
|
resultMap.put("defeatReasonCode", "05");
|
||||||
|
}
|
||||||
|
|
||||||
// 异步创建订单
|
// 异步创建订单
|
||||||
CompletableFuture.runAsync(() -> {
|
CompletableFuture.runAsync(() -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user