mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-17 08:18:34 +08:00
对接内蒙古平台
This commit is contained in:
@@ -204,6 +204,15 @@ public class NeiMengGuPlatformServiceImpl implements ThirdPartyPlatformService {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public Map<String, String> queryStationsInfo(QueryStationInfoDTO dto) {
|
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 pageNo = dto.getPageNo() == null ? 1 : dto.getPageNo();
|
||||||
int pageSize = dto.getPageSize() == null ? 10 : dto.getPageSize();
|
int pageSize = dto.getPageSize() == null ? 10 : dto.getPageSize();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user