|
@ -1968,6 +1968,7 @@ public class DataStatsServiceImpl implements DataStatsService { |
|
|
List<CustomerDataManageResultDTO> issueEnd = dataStatsDao.issueList(formDTO); |
|
|
List<CustomerDataManageResultDTO> issueEnd = dataStatsDao.issueList(formDTO); |
|
|
List<CustomerDataManageResultDTO> projectEnd = dataStatsDao.projectList(formDTO); |
|
|
List<CustomerDataManageResultDTO> projectEnd = dataStatsDao.projectList(formDTO); |
|
|
List<CustomerDataManageResultDTO> patrolEnd = statsStaffPatrolRecordDailyService.patrolList(formDTO); |
|
|
List<CustomerDataManageResultDTO> patrolEnd = statsStaffPatrolRecordDailyService.patrolList(formDTO); |
|
|
|
|
|
|
|
|
//4.判断是否需要查询起始日期用户、群组、话题、议题、项目、巡查数据
|
|
|
//4.判断是否需要查询起始日期用户、群组、话题、议题、项目、巡查数据
|
|
|
List<CustomerDataManageResultDTO> userStart = new ArrayList<>(); |
|
|
List<CustomerDataManageResultDTO> userStart = new ArrayList<>(); |
|
|
List<CustomerDataManageResultDTO> groupStart = new ArrayList<>(); |
|
|
List<CustomerDataManageResultDTO> groupStart = new ArrayList<>(); |
|
@ -1981,7 +1982,8 @@ public class DataStatsServiceImpl implements DataStatsService { |
|
|
issueStart = dataStatsDao.issueList(formDTO); |
|
|
issueStart = dataStatsDao.issueList(formDTO); |
|
|
projectStart = dataStatsDao.projectList(formDTO); |
|
|
projectStart = dataStatsDao.projectList(formDTO); |
|
|
} |
|
|
} |
|
|
//5.封装数据并返回
|
|
|
|
|
|
|
|
|
//5.封装数据
|
|
|
List<CustomerDataManageResultDTO> finalUserStart = userStart; |
|
|
List<CustomerDataManageResultDTO> finalUserStart = userStart; |
|
|
List<CustomerDataManageResultDTO> finalGroupStart = groupStart; |
|
|
List<CustomerDataManageResultDTO> finalGroupStart = groupStart; |
|
|
List<CustomerDataManageResultDTO> finalTopicStart = topicStart; |
|
|
List<CustomerDataManageResultDTO> finalTopicStart = topicStart; |
|
@ -2098,6 +2100,14 @@ public class DataStatsServiceImpl implements DataStatsService { |
|
|
resultList.add(dto); |
|
|
resultList.add(dto); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
//6.默认按用户总数降序
|
|
|
|
|
|
Collections.sort(resultList, new Comparator<CustomerDataManageResultDTO>() { |
|
|
|
|
|
@Override |
|
|
|
|
|
public int compare(CustomerDataManageResultDTO o1, CustomerDataManageResultDTO o2) { |
|
|
|
|
|
return o2.getUserCount().compareTo(o1.getUserCount()); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
return resultList; |
|
|
return resultList; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|