Browse Source

修改middle模块

zhongwei
段飞宇 2 years ago
parent
commit
3f049061b8
  1. 4
      hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/service/impl/StatisticsServiceImpl.java

4
hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/service/impl/StatisticsServiceImpl.java

@ -109,8 +109,12 @@ public class StatisticsServiceImpl extends ServiceImpl<StatisticsMapper, Statist
*/
@Override
public IPage<StatisticsResponseVo> selectPage(Page<StatisticsResponseVo> page1, StatisticsVo statistics) {
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());

Loading…
Cancel
Save