|
@@ -238,9 +238,8 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
examTaskDetail.setRelatePaperType(paperType);
|
|
|
|
|
|
//获取试卷pdf
|
|
|
- PdfDto pdfDto = createPdfUtil.getPaperPdf(paperType, examTaskDetail, examPrintPlan.getBackupCount(), paperPdfTempList, backupPaperTempPdfList);
|
|
|
+ PdfDto pdfDto = createPdfUtil.getPaperPdf(paperType, examTaskDetail, examPrintPlan.getBackupCount(), null, backupPaperTempPdfList);
|
|
|
examDetailCourse.setPaperPagesA3(Objects.nonNull(pdfDto) ? pdfDto.getPageCount() : examDetailCourse.getPaperPagesA3());
|
|
|
- paperPdfList.addAll(paperPdfTempList);
|
|
|
backupPaperPdfList.addAll(backupPaperTempPdfList);
|
|
|
|
|
|
basicAttachmentList = Objects.isNull(basicAttachmentList) ? basicAttachmentList = new ArrayList<>() : basicAttachmentList;
|
|
@@ -291,6 +290,9 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
});
|
|
|
|
|
|
for (ExamStudent t : examStudentList) {
|
|
|
+ createPdfUtil.getPaperPdf(paperType, examTaskDetail, 1, paperPdfTempList, null);
|
|
|
+ paperPdfList.addAll(paperPdfTempList);
|
|
|
+
|
|
|
basicAttachmentList.add(createPdfUtil.examStudentHtml(attachmentIds, studentContent, t, paperType, examCard, sysUser.getId(), examStudentTempPdfList));
|
|
|
}
|
|
|
examStudentPdfList.addAll(examStudentTempPdfList);
|
|
@@ -662,7 +664,7 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
|
|
|
// 处理试卷样品
|
|
|
List<Map> paperInfo = JSONObject.parseArray(examTaskDetail.getPaperAttachmentIds(), Map.class);
|
|
|
- if (Objects.isNull(paperInfo)){
|
|
|
+ if (Objects.isNull(paperInfo)) {
|
|
|
throw ExceptionResultEnum.ERROR.exception("试卷信息不存在");
|
|
|
}
|
|
|
System.out.println("paperInfo = " + JSON.toJSONString(paperInfo));
|
|
@@ -746,7 +748,7 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
}
|
|
|
FileCopyUtils.copy(bytes, localFile);
|
|
|
}
|
|
|
- count ++;
|
|
|
+ count++;
|
|
|
}
|
|
|
ZipUtil.zip(zipLocalRootPath, zipFile.getPath(), true);
|
|
|
ossUtil.ossUpload(dirNameTmp, zipFile, BinaryUtil.toBase64String(HexUtils.decodeHex(DigestUtils.md5Hex(new FileInputStream(zipFile)))));
|