update 第三方平台查询站点信息接口只查推送的对应平台下的站点信息

This commit is contained in:
Lemon
2024-04-23 14:20:06 +08:00
parent 87159997a0
commit 866daa6121
4 changed files with 15 additions and 24 deletions

View File

@@ -155,16 +155,7 @@ public class YCBCServiceImpl implements YCBCService {
*/
@Override
public Map<String, String> queryStationsInfo(QueryStationInfoDTO dto) {
// 查询出要查询的充电站id并set进 dto 的stationIds
ThirdPartyStationRelation relation = new ThirdPartyStationRelation();
relation.setThirdPartyType(ThirdPlatformTypeEnum.YONG_CHENG_BO_CHE.getTypeCode());
List<ThirdPartyStationRelation> ycbcList = relationService.selectThirdPartyStationRelationList(relation);
if (CollectionUtils.isNotEmpty(ycbcList)) {
List<String> stationList = ycbcList.stream()
.map(x -> String.valueOf(x.getStationId()))
.collect(Collectors.toList());
dto.setStationIds(stationList);
}
dto.setThirdPlatformType(ThirdPlatformTypeEnum.YONG_CHENG_BO_CHE.getTypeCode());
return zdlService.queryStationsInfo(dto);
}