Commit 8b31ecf0 by yuwei

项目初始化

parent ec56b184
...@@ -70,12 +70,16 @@ public class CheckReportServiceImpl extends BaseServiceImpl<CheckReportDao, Chec ...@@ -70,12 +70,16 @@ public class CheckReportServiceImpl extends BaseServiceImpl<CheckReportDao, Chec
}); });
} }
list.addAll(differenceReportList); list.addAll(differenceReportList);
// 排序
list = list.stream().sorted(Comparator.comparing(DataReportEntity::getRuleSourceId).thenComparing(DataReportEntity::getRuleLevelId)).collect(Collectors.toList());
return list; return list;
} }
@Override @Override
public List<DataReportEntity> getReportByType() { public List<DataReportEntity> getReportByType() {
List<DataReportEntity> list = checkReportDao.getReportByType(); List<DataReportEntity> list = checkReportDao.getReportByType();
// 排序
list = list.stream().sorted(Comparator.comparing(DataReportEntity::getRuleTypeId)).collect(Collectors.toList());
return list; return list;
} }
} }
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