|
|
@ -41,6 +41,9 @@ import javax.annotation.Resource; |
|
|
|
import java.util.*; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
import static java.util.stream.Collectors.collectingAndThen; |
|
|
|
import static java.util.stream.Collectors.toCollection; |
|
|
|
|
|
|
|
/** |
|
|
|
* @dscription 省网格化平台数据上报--数据查询 |
|
|
|
* @author sun |
|
|
@ -183,7 +186,7 @@ public class DataReportingServiceImpl implements DataReportingService { |
|
|
|
return dto; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
return list.stream().filter(item -> StringUtils.isNotBlank(item.getParentEventCategory())).collect(Collectors.toList()); |
|
|
|
return list.stream().collect(collectingAndThen(toCollection(() -> new TreeSet<>(Comparator.comparing(EventInfoResultDTO::getId))), ArrayList::new)); |
|
|
|
} |
|
|
|
|
|
|
|
private EventInfoResultDTO getEventInfoResultDTO(ScreenProjectDataDTO project, Map<String, CustomerProjectCategoryDictEntity> epmetCodeMap, Map<String, CustomerProjectCategoryDictEntity> codeMap) { |
|
|
|