This commit is contained in:
YAS\29473
2024-11-23 15:30:55 +08:00
parent 0a23c947d4
commit edfb7d4f89

View File

@@ -209,8 +209,7 @@ public class NanRuiPlatfromServicelmp implements ThirdPartyPlatformService {
info.setAreaCode(subAreaCode);
// 截取运营商组织机构代码(去除最后一位后的最后九位)
String organizationCode = "";
if (StringUtils.equals(ThirdPlatformTypeEnum.LIAN_LIAN_PLATFORM.getTypeCode(), thirdPlatformType)) {
// 联联平台先使用自己运营商的组织机构代码
if (StringUtils.equals(ThirdPlatformTypeEnum.NAN_RUI_PLATFORM.getTypeCode(), thirdPlatformType)) {
organizationCode = Constants.OPERATORID_LIANLIAN;
info.setEquipmentOwnerID(organizationCode);
} else {
@@ -264,6 +263,7 @@ public class NanRuiPlatfromServicelmp implements ThirdPartyPlatformService {
/**
* 获取充电站信息
*
* @param dto
* @return
*/
@@ -347,6 +347,7 @@ public class NanRuiPlatfromServicelmp implements ThirdPartyPlatformService {
/**
* 推送告警信息
*
* @param dto
* @return
*/
@@ -442,6 +443,7 @@ public class NanRuiPlatfromServicelmp implements ThirdPartyPlatformService {
* 查询设备接口状态
* 此接口用于批量查询设备实时状态
* 由充电运营商方实现此接口,省、市两级监管平台调用。
*
* @param dto
* @return
*/
@@ -510,13 +512,14 @@ public class NanRuiPlatfromServicelmp implements ThirdPartyPlatformService {
Map<String, Object> map = new LinkedHashMap<>();
map.put("StationStatusInfos", resultList);
Map<String, String> resultMap = ThirdPartyPlatformUtils.generateResultMap(map,NanRuiSecretInfo);
Map<String, String> resultMap = ThirdPartyPlatformUtils.generateResultMap(map, NanRuiSecretInfo);
return resultMap;
}
/**
* 充电电量信息推送
* 当运营商平台完成一次充电时,将充电电量信息推送至省、市两级监管平台
*
* @param orderCode
* @return
*/
@@ -557,6 +560,7 @@ public class NanRuiPlatfromServicelmp implements ThirdPartyPlatformService {
/**
* 查询充电电量信息
* 此接口用于批量查询时间区段内交易记录
*
* @param dto
* @return
*/
@@ -584,6 +588,7 @@ public class NanRuiPlatfromServicelmp implements ThirdPartyPlatformService {
/**
* 获取设备信息
*
* @param stationId
* @return
*/
@@ -634,6 +639,7 @@ public class NanRuiPlatfromServicelmp implements ThirdPartyPlatformService {
/**
* 获取枪口信息
*
* @param pileSn
* @return
*/
@@ -701,8 +707,10 @@ public class NanRuiPlatfromServicelmp implements ThirdPartyPlatformService {
jiangSuOrderInfo.setMeterValueEnd(BigDecimal.ZERO);
return jiangSuOrderInfo;
}
/**
* 格式化南瑞平台订单对象
*
* @param nrOrderInfoVO
* @return
*/