|
@@ -77,7 +77,7 @@ public class ExamTaskDetailServiceImpl extends ServiceImpl<ExamTaskDetailMapper,
|
|
|
// 正在生成pdf不能禁用
|
|
|
ExamTask examTask = examTaskService.getById(examTaskDetail.getId());
|
|
|
List<ExamDetail> examDetails = examDetailService.listByCourseCodeAndPaperNumber(examTask.getSchoolId(), examTask.getCourseCode(), examTask.getPaperNumber());
|
|
|
- if (!examDetails.isEmpty()) {
|
|
|
+ if (examDetails != null && examDetails.size() > 0) {
|
|
|
Map<Long, List<Long>> map = examDetails.stream().collect(Collectors.groupingBy(ExamDetail::getPrintPlanId, Collectors.mapping(ExamDetail::getId, Collectors.toList())));
|
|
|
for (Map.Entry<Long, List<Long>> listEntry : map.entrySet()) {
|
|
|
boolean b = tbTaskService.countByPrintPlanIdAndEntityId(examTask.getSchoolId(), listEntry.getKey(), listEntry.getValue());
|