对接内蒙古平台

This commit is contained in:
Guoqs
2024-11-06 09:49:12 +08:00
parent c599a97a07
commit 59740a5c38

View File

@@ -204,6 +204,15 @@ public class NeiMengGuPlatformServiceImpl implements ThirdPartyPlatformService {
*/
@Override
public Map<String, String> queryStationsInfo(QueryStationInfoDTO dto) {
// 查询出要查询的充电站id并set进 dto 的stationIds
List<ThirdPartyStationRelation> stationRelationList = thirdPartyStationRelationService.selectThirdPartyStationRelationList(thirdPlatformType);
if (CollectionUtils.isNotEmpty(stationRelationList)) {
List<String> stationIdList = stationRelationList.stream()
.map(x -> String.valueOf(x.getStationId()))
.collect(Collectors.toList());
dto.setStationIds(stationIdList);
}
int pageNo = dto.getPageNo() == null ? 1 : dto.getPageNo();
int pageSize = dto.getPageSize() == null ? 10 : dto.getPageSize();