This commit is contained in:
YAS\29473
2026-01-21 14:32:53 +08:00
parent b69cbb2cbe
commit 29adcfd901

View File

@@ -1,5 +1,6 @@
package com.jsowell.pile.rpc;
import com.alibaba.fastjson.JSON;
import com.jsowell.common.core.domain.ykc.BMSChargeInfoData;
import com.jsowell.common.core.domain.ykc.BMSDemandAndChargerOutputData;
import com.jsowell.common.core.domain.ykc.RealTimeMonitorData;
@@ -249,8 +250,10 @@ public class WccServiceImpl implements WccService {
public List<JCTThirdPartySecretInfoVO> queryStationToPlatformList(String stationId) {
List<ThirdPartySecretInfoVO> thirdPartySecretInfoVOS = thirdpartySecretInfoService.queryStationToPlatformList(stationId);
if (thirdPartySecretInfoVOS == null || thirdPartySecretInfoVOS.isEmpty()) {
log.info("根据站点id查询第三方平台配置列表数量:0");
return Collections.emptyList();
}
List<JCTThirdPartySecretInfoVO> result = new ArrayList<>(thirdPartySecretInfoVOS.size());
for (ThirdPartySecretInfoVO thirdPartySecretInfoVO : thirdPartySecretInfoVOS) {
JCTThirdPartySecretInfoVO build = JCTThirdPartySecretInfoVO.builder()
.ourOperatorId(thirdPartySecretInfoVO.getOurOperatorId())
@@ -271,9 +274,10 @@ public class WccServiceImpl implements WccService {
.theirPublicSecret(thirdPartySecretInfoVO.getTheirPublicSecret())
.theirPrivateSecret(thirdPartySecretInfoVO.getTheirPrivateSecret())
.build();
return Collections.singletonList(build);
result.add(build);
}
return Collections.emptyList();
log.info("根据站点id查询第三方平台配置列表数量:{},详情:{}", result.size(), JSON.toJSONString(result));
return result;
}
@Override