|
@@ -201,7 +201,11 @@ public class ExamDetailController {
|
|
|
printPlanIdList = new ArrayList<>();
|
|
|
}
|
|
|
List<Long> idList = printPlanIdList.stream().map(SystemConstant::convertIdToLong).collect(Collectors.toList());
|
|
|
- Map<String, Object> map = tbTaskService.saveTask(TaskTypeEnum.EXAMINATION_EXPORT, idList.get(0));
|
|
|
+ Long printId = null;
|
|
|
+ if (idList.size() > 0){
|
|
|
+ printId = idList.get(0);
|
|
|
+ }
|
|
|
+ Map<String, Object> map = tbTaskService.saveTask(TaskTypeEnum.EXAMINATION_EXPORT, printId);
|
|
|
map.put("printPlanIdList", idList);
|
|
|
map.put("courseCode", courseCode);
|
|
|
map.put("paperNumber", paperNumber);
|