mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-15 15:28:41 +08:00
bugfix 新电途平台接口
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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();
|
||||||
// 加密数据
|
// 加密数据
|
||||||
|
|||||||
Reference in New Issue
Block a user