Commit e77853c8 authored by 董建华's avatar 董建华

调整边界问题

parent c01a8a95
......@@ -14,4 +14,6 @@ public interface QueryStatisticsRepository extends JpaRepository<QueryStatistics
List<QueryStatisticsEntry> findByReportTimeAndDataSource(Timestamp time, DataSource dataSource);
List<QueryStatisticsEntry> findByReportMonthAndDataSource(String month, DataSource dataSource);
List<QueryStatisticsEntry> findByReportTimeGreaterThanEqualAndReportTimeBefore(Timestamp start, Timestamp end);
}
......@@ -44,7 +44,7 @@ public class QueryStatisticsServiceImpl implements QueryStatisticsService {
List<QueryStatisticsModel> result = Lists.newArrayList();
List<QueryStatisticsEntry> datas = queryStatisticsRepository.findByReportTimeAfterAndReportTimeBefore(start, end);
List<QueryStatisticsEntry> datas = queryStatisticsRepository.findByReportTimeGreaterThanEqualAndReportTimeBefore(start, end);
Map<String, List<QueryStatisticsEntry>> collect = datas.stream().collect(Collectors.groupingBy(this::groupByKey));
......
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