|
|
@ -139,7 +139,7 @@ public class DataReportingServiceImpl implements DataReportingService { |
|
|
|
//根据入参,获取项目
|
|
|
|
long start = System.currentTimeMillis(); |
|
|
|
List<ScreenProjectDataDTO> projectList = screenProjectDataService.getProjectList(formDTO.getCustomerId(), formDTO.getProjectId(), formDTO.getPageNo(), formDTO.getPageSize()); |
|
|
|
log.error("事件上报-查询项目列表耗时:{}ms",System.currentTimeMillis()-start); |
|
|
|
log.info("事件上报-查询项目列表耗时:{}ms",System.currentTimeMillis()-start); |
|
|
|
//项目列表为空,返回空数组
|
|
|
|
if(CollectionUtils.isEmpty(projectList)) { |
|
|
|
return Collections.emptyList(); |
|
|
@ -197,7 +197,7 @@ public class DataReportingServiceImpl implements DataReportingService { |
|
|
|
return dto; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
log.error("事件上报-组装数据耗时:{}ms",System.currentTimeMillis()-start); |
|
|
|
log.info("事件上报-组装数据耗时:{}ms",System.currentTimeMillis()-start); |
|
|
|
return list.stream().collect(collectingAndThen(toCollection(() -> new TreeSet<>(Comparator.comparing(EventInfoResultDTO::getId))), ArrayList::new)); |
|
|
|
} |
|
|
|
|
|
|
|