bugfix 新电途平台接口

This commit is contained in:
Lemon
2024-01-11 11:17:37 +08:00
parent 4ab1022c71
commit c2e974e36c
2 changed files with 12 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ package com.jsowell.common.enums.thirdparty;
import com.jsowell.common.util.StringUtils; import com.jsowell.common.util.StringUtils;
/** /**
* TODO * 第三方平台 type operatorId 对应枚举
* *
* @author Lemon * @author Lemon
* @Date 2023/11/8 9:11:55 * @Date 2023/11/8 9:11:55

View File

@@ -675,7 +675,11 @@ public class LianLianServiceImpl implements LianLianService {
.failReason(0) .failReason(0)
.build(); .build();
String type = ThirdPartyOperatorIdEnum.getTypeByOperatorId(dto.getOperatorId());
if (StringUtils.equals(ThirdPlatformTypeEnum.XIN_DIAN_TU.getCode(), type)) {
// 如果是新电途平台,则将 startChargeSeqStat 改为 3-停止中
vo.setStartChargeSeqStat(3);
}
// 异步推送启动充电结果 // 异步推送启动充电结果
CompletableFuture.runAsync(() -> { CompletableFuture.runAsync(() -> {
try { try {
@@ -822,6 +826,12 @@ public class LianLianServiceImpl implements LianLianService {
} }
vo.setSuccStat(0); vo.setSuccStat(0);
vo.setFailReason(0); vo.setFailReason(0);
String type = ThirdPartyOperatorIdEnum.getTypeByOperatorId(dto.getOperatorId());
if (StringUtils.equals(ThirdPlatformTypeEnum.XIN_DIAN_TU.getCode(), type)) {
// 如果是新电途平台,则将 startChargeSeqStat 改为 1-启动中
vo.setStartChargeSeqStat(1);
}
// 加密 // 加密
Map<String, String> resultMap = Maps.newLinkedHashMap(); Map<String, String> resultMap = Maps.newLinkedHashMap();
// 加密数据 // 加密数据