|
|
|
@ -109,8 +109,12 @@ public class StatisticsServiceImpl extends ServiceImpl<StatisticsMapper, Statist
|
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public IPage<StatisticsResponseVo> selectPage(Page<StatisticsResponseVo> page1, StatisticsVo statistics) { |
|
|
|
|
statistics.setCreateTime(statistics.getCreateTime().substring(0, 10)); |
|
|
|
|
statistics.setEndTime(statistics.getEndTime().substring(0, 10)); |
|
|
|
|
if (statistics.getCreateTime() != null) { |
|
|
|
|
statistics.setCreateTime(statistics.getCreateTime().substring(0, 10)); |
|
|
|
|
} |
|
|
|
|
if (statistics.getEndTime() != null) { |
|
|
|
|
statistics.setEndTime(statistics.getEndTime().substring(0, 10)); |
|
|
|
|
} |
|
|
|
|
IPage<StatisticsResponseVo> statisticsResponseVoIPage = baseMapper.selectPages(page1, statistics); |
|
|
|
|
// List<StatisticsResponseVo> records = statisticsResponseVoIPage.getRecords();
|
|
|
|
|
// List<StatisticsResponseVo> collect = records.stream().sorted(Comparator.comparing(StatisticsResponseVo::getSort)).collect(Collectors.toList());
|
|
|
|
|