diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/rpc/WccServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/rpc/WccServiceImpl.java index 655269484..ce1bdc3d7 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/rpc/WccServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/rpc/WccServiceImpl.java @@ -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 queryStationToPlatformList(String stationId) { List thirdPartySecretInfoVOS = thirdpartySecretInfoService.queryStationToPlatformList(stationId); if (thirdPartySecretInfoVOS == null || thirdPartySecretInfoVOS.isEmpty()) { + log.info("根据站点id查询第三方平台配置列表数量:0"); return Collections.emptyList(); } + List 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