mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-13 11:49:49 +08:00
加日志
This commit is contained in:
@@ -2511,6 +2511,7 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> generateOrderForThirdParty(QueryStartChargeDTO dto) {
|
public Map<String, Object> generateOrderForThirdParty(QueryStartChargeDTO dto) {
|
||||||
|
logger.info("联联平台生成订单param:{}", JSON.toJSONString(dto));
|
||||||
// 获取到第三方平台类型
|
// 获取到第三方平台类型
|
||||||
String operatorId = dto.getOperatorId();
|
String operatorId = dto.getOperatorId();
|
||||||
String type = ThirdPartyOperatorIdEnum.getTypeByOperatorId(operatorId);
|
String type = ThirdPartyOperatorIdEnum.getTypeByOperatorId(operatorId);
|
||||||
@@ -2590,7 +2591,7 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
|
|||||||
resultMap.put("orderBasicInfo", orderBasicInfo);
|
resultMap.put("orderBasicInfo", orderBasicInfo);
|
||||||
resultMap.put("orderDetail", orderDetail);
|
resultMap.put("orderDetail", orderDetail);
|
||||||
// resultMap.put("accountBalance", totalAccountAmount);
|
// resultMap.put("accountBalance", totalAccountAmount);
|
||||||
|
logger.info("联联平台生成订单result:{}", JSON.toJSONString(resultMap));
|
||||||
return resultMap;
|
return resultMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -46,6 +46,8 @@ import com.jsowell.thirdparty.platform.factory.ThirdPartyPlatformFactory;
|
|||||||
import com.jsowell.thirdparty.platform.util.*;
|
import com.jsowell.thirdparty.platform.util.*;
|
||||||
import com.jsowell.thirdparty.service.ThirdpartySecretInfoService;
|
import com.jsowell.thirdparty.service.ThirdpartySecretInfoService;
|
||||||
import org.apache.commons.collections4.CollectionUtils;
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
@@ -57,6 +59,7 @@ import java.util.stream.Collectors;
|
|||||||
|
|
||||||
@Service
|
@Service
|
||||||
public class LianLianPlatformServiceImpl implements ThirdPartyPlatformService {
|
public class LianLianPlatformServiceImpl implements ThirdPartyPlatformService {
|
||||||
|
Logger logger = LoggerFactory.getLogger(this.getClass());
|
||||||
// 平台类型
|
// 平台类型
|
||||||
private final String thirdPlatformType = ThirdPlatformTypeEnum.LIAN_LIAN_PLATFORM.getTypeCode();
|
private final String thirdPlatformType = ThirdPlatformTypeEnum.LIAN_LIAN_PLATFORM.getTypeCode();
|
||||||
|
|
||||||
@@ -1246,7 +1249,6 @@ public class LianLianPlatformServiceImpl implements ThirdPartyPlatformService {
|
|||||||
.connectorID(pileConnectorCode)
|
.connectorID(pileConnectorCode)
|
||||||
.succStat(0)
|
.succStat(0)
|
||||||
.failReason(0)
|
.failReason(0)
|
||||||
|
|
||||||
.build();
|
.build();
|
||||||
String type = ThirdPartyOperatorIdEnum.getTypeByOperatorId(dto.getOperatorId());
|
String type = ThirdPartyOperatorIdEnum.getTypeByOperatorId(dto.getOperatorId());
|
||||||
if (StringUtils.equals(ThirdPlatformTypeEnum.XIN_DIAN_TU.getTypeCode(), type)) {
|
if (StringUtils.equals(ThirdPlatformTypeEnum.XIN_DIAN_TU.getTypeCode(), type)) {
|
||||||
@@ -1274,7 +1276,7 @@ public class LianLianPlatformServiceImpl implements ThirdPartyPlatformService {
|
|||||||
// 生成sig
|
// 生成sig
|
||||||
// String resultSign = GBSignUtils.sign(resultMap, configInfo.getSignSecret());
|
// String resultSign = GBSignUtils.sign(resultMap, configInfo.getSignSecret());
|
||||||
// resultMap.put("Sig", resultSign);
|
// resultMap.put("Sig", resultSign);
|
||||||
|
logger.info("联联平台请求启动充电 result :{}", JSON.toJSONString(vo));
|
||||||
Map<String, String> resultMap = ThirdPartyPlatformUtils.generateResultMap(vo, thirdPartySecretInfoVO);
|
Map<String, String> resultMap = ThirdPartyPlatformUtils.generateResultMap(vo, thirdPartySecretInfoVO);
|
||||||
return resultMap;
|
return resultMap;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user