加日志

This commit is contained in:
2024-05-09 09:14:53 +08:00
parent 51a3f42f62
commit cba6df4ef5
2 changed files with 6 additions and 3 deletions

View File

@@ -46,6 +46,8 @@ import com.jsowell.thirdparty.platform.factory.ThirdPartyPlatformFactory;
import com.jsowell.thirdparty.platform.util.*;
import com.jsowell.thirdparty.service.ThirdpartySecretInfoService;
import org.apache.commons.collections4.CollectionUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -57,6 +59,7 @@ import java.util.stream.Collectors;
@Service
public class LianLianPlatformServiceImpl implements ThirdPartyPlatformService {
Logger logger = LoggerFactory.getLogger(this.getClass());
// 平台类型
private final String thirdPlatformType = ThirdPlatformTypeEnum.LIAN_LIAN_PLATFORM.getTypeCode();
@@ -1246,7 +1249,6 @@ public class LianLianPlatformServiceImpl implements ThirdPartyPlatformService {
.connectorID(pileConnectorCode)
.succStat(0)
.failReason(0)
.build();
String type = ThirdPartyOperatorIdEnum.getTypeByOperatorId(dto.getOperatorId());
if (StringUtils.equals(ThirdPlatformTypeEnum.XIN_DIAN_TU.getTypeCode(), type)) {
@@ -1274,7 +1276,7 @@ public class LianLianPlatformServiceImpl implements ThirdPartyPlatformService {
// 生成sig
// String resultSign = GBSignUtils.sign(resultMap, configInfo.getSignSecret());
// resultMap.put("Sig", resultSign);
logger.info("联联平台请求启动充电 result :{}", JSON.toJSONString(vo));
Map<String, String> resultMap = ThirdPartyPlatformUtils.generateResultMap(vo, thirdPartySecretInfoVO);
return resultMap;