Commit 79dd6a46 authored by caotao's avatar caotao

场站下的逆变器sncode进行去重操作。

parent 3821c645
...@@ -178,7 +178,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS ...@@ -178,7 +178,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
public List<JpStation>getJpStationList (JpStationDto reviewDto){ public List<JpStation>getJpStationList (JpStationDto reviewDto){
List<JpInverter> dataJpInverter=jpInverterMapper.selectList(new QueryWrapper<JpInverter>().isNotNull("third_station_id")); List<JpInverter> dataJpInverter=jpInverterMapper.selectList(new QueryWrapper<JpInverter>().isNotNull("third_station_id").groupBy("third_station_id"));
Map<String,List<String>> inverterMap=dataJpInverter.stream().collect(Collectors.groupingBy(JpInverter::getThirdStationId,Collectors.mapping(JpInverter::getSnCode,Collectors.toList()))); Map<String,List<String>> inverterMap=dataJpInverter.stream().collect(Collectors.groupingBy(JpInverter::getThirdStationId,Collectors.mapping(JpInverter::getSnCode,Collectors.toList())));
List<JpStation> list= jpStationMapper.getJpStationList(reviewDto); List<JpStation> list= jpStationMapper.getJpStationList(reviewDto);
list.forEach(jpStation -> { list.forEach(jpStation -> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment