|
@@ -167,14 +167,14 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
MapUtil.populateMap(params, queryInfo);
|
|
|
|
|
|
- List<StudentApplyDetailDto> dataList = null;
|
|
|
+ List<StudentApplyDetailDto> dataList = new ArrayList<>();
|
|
|
int count = studentRegistrationDao.queryStudentDetailCount(params);
|
|
|
if (queryInfo.getIsExport() && count > 50000) {
|
|
|
throw new BizException("数据集太大,不能导出.最大数据集不能超过50000");
|
|
|
}
|
|
|
- if (count > 0) {
|
|
|
- pageInfo.setTotal(count);
|
|
|
- params.put("offset", pageInfo.getOffset());
|
|
|
+ pageInfo.setTotal(count);
|
|
|
+ params.put("offset", pageInfo.getOffset());
|
|
|
+ if (queryInfo.getPage() <= pageInfo.getTotalPage()) {
|
|
|
dataList = studentRegistrationDao.queryStudentDetailPage(params);
|
|
|
Set<Integer> subjectIds = dataList.stream().map(e -> e.getActualSubjectId()).collect(Collectors.toSet());
|
|
|
Map<Integer, String> subjectMap = MapUtil.convertIntegerMap(musicGroupSubjectPlanDao.findSubjectMap(subjectIds, queryInfo.getMusicGroupId()));
|
|
@@ -189,9 +189,6 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
- if (count == 0) {
|
|
|
- dataList = new ArrayList<>();
|
|
|
- }
|
|
|
pageInfo.setRows(dataList);
|
|
|
return pageInfo;
|
|
|
}
|
|
@@ -1654,12 +1651,12 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
Map<String, Boolean> viewMap = new HashMap<>();
|
|
|
List<MusicGroupPaymentCalender> regCalenders = musicGroupPaymentCalenderDao.getMusicGroupRegCalenderByIds(ids);
|
|
|
for (MusicGroupPaymentCalender regCalender : regCalenders) {
|
|
|
- viewMap.put(regCalender.getMusicGroupId(),true);
|
|
|
+ viewMap.put(regCalender.getMusicGroupId(), true);
|
|
|
}
|
|
|
|
|
|
Map<String, List<MusicGroupPaymentCalender>> musicGroupBatchNoTimes = musicGroupPaymentCalenderDao.getMusicGroupCalenderBatchNoByIds(ids).stream().collect(Collectors.groupingBy(MusicGroupPaymentCalender::getMusicGroupId));
|
|
|
- musicGroupBatchNoTimes.forEach((musicGroupId,calenders)->{
|
|
|
- if(viewMap.containsKey(musicGroupId) && calenders.size() > 1){
|
|
|
+ musicGroupBatchNoTimes.forEach((musicGroupId, calenders) -> {
|
|
|
+ if (viewMap.containsKey(musicGroupId) && calenders.size() > 1) {
|
|
|
viewMap.remove(musicGroupId);
|
|
|
}
|
|
|
});
|