|
@@ -237,6 +237,11 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
String paperType = Objects.nonNull(paperTypeParam) ? paperTypeParam : createPdfUtil.getPaperType(examPrintPlan, examTaskDetail, examDetail, examDetailCourse);
|
|
String paperType = Objects.nonNull(paperTypeParam) ? paperTypeParam : createPdfUtil.getPaperType(examPrintPlan, examTaskDetail, examDetail, examDetailCourse);
|
|
examTaskDetail.setRelatePaperType(paperType);
|
|
examTaskDetail.setRelatePaperType(paperType);
|
|
|
|
|
|
|
|
+ //获取试卷pdf
|
|
|
|
+ PdfDto pdfDto = createPdfUtil.getPaperPdf(paperType, examTaskDetail, examPrintPlan.getBackupCount(), null, backupPaperTempPdfList);
|
|
|
|
+ examDetailCourse.setPaperPagesA3(Objects.nonNull(pdfDto) ? pdfDto.getPageCount() : examDetailCourse.getPaperPagesA3());
|
|
|
|
+ backupPaperPdfList.addAll(backupPaperTempPdfList);
|
|
|
|
+
|
|
basicAttachmentList = Objects.isNull(basicAttachmentList) ? basicAttachmentList = new ArrayList<>() : basicAttachmentList;
|
|
basicAttachmentList = Objects.isNull(basicAttachmentList) ? basicAttachmentList = new ArrayList<>() : basicAttachmentList;
|
|
for (ExamCardDetail examCardDetail : examCardDetailList) {
|
|
for (ExamCardDetail examCardDetail : examCardDetailList) {
|
|
createPdfUtil.getCardAttachmentId(examCardDetail, attachmentIds);
|
|
createPdfUtil.getCardAttachmentId(examCardDetail, attachmentIds);
|
|
@@ -245,15 +250,7 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
String cardContent = createPdfUtil.replaceHtmlTemplete(examCardDetail);
|
|
String cardContent = createPdfUtil.replaceHtmlTemplete(examCardDetail);
|
|
String studentContent = cardContent;
|
|
String studentContent = cardContent;
|
|
|
|
|
|
- PdfDto pdfDto = null;
|
|
|
|
for (int i = 1; i <= examPrintPlan.getBackupCount(); i++) {
|
|
for (int i = 1; i <= examPrintPlan.getBackupCount(); i++) {
|
|
- //获取试卷pdf
|
|
|
|
- pdfDto = createPdfUtil.getPaperPdf(paperType, examTaskDetail, examPrintPlan.getBackupCount(), paperPdfTempList, backupPaperTempPdfList);
|
|
|
|
- examDetailCourse.setPaperPagesA3(Objects.nonNull(pdfDto) ? pdfDto.getPageCount() : examDetailCourse.getPaperPagesA3());
|
|
|
|
- paperPdfList.addAll(paperPdfTempList);
|
|
|
|
- backupPaperPdfList.addAll(backupPaperTempPdfList);
|
|
|
|
-
|
|
|
|
- //获取题卡
|
|
|
|
BasicAttachment basicAttachment = createPdfUtil.cardHtml(String.format("%02d", i), cardContent, paperType, examDetail, examDetailCourse, examCard, jsonArray, sysUser.getId(), cardPdfTempList);
|
|
BasicAttachment basicAttachment = createPdfUtil.cardHtml(String.format("%02d", i), cardContent, paperType, examDetail, examDetailCourse, examCard, jsonArray, sysUser.getId(), cardPdfTempList);
|
|
examDetailCourse.setCardPagesA3(basicAttachment.getPages());
|
|
examDetailCourse.setCardPagesA3(basicAttachment.getPages());
|
|
basicAttachmentList.add(basicAttachment);
|
|
basicAttachmentList.add(basicAttachment);
|
|
@@ -293,6 +290,9 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
});
|
|
});
|
|
|
|
|
|
for (ExamStudent t : examStudentList) {
|
|
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));
|
|
basicAttachmentList.add(createPdfUtil.examStudentHtml(attachmentIds, studentContent, t, paperType, examCard, sysUser.getId(), examStudentTempPdfList));
|
|
}
|
|
}
|
|
examStudentPdfList.addAll(examStudentTempPdfList);
|
|
examStudentPdfList.addAll(examStudentTempPdfList);
|