|
@@ -129,7 +129,7 @@ public class PdfTaskLogicServiceImpl implements PdfTaskLogicService {
|
|
// 更新文件路径、更新考场状态、印刷计划状态
|
|
// 更新文件路径、更新考场状态、印刷计划状态
|
|
createPdfNewUtil.mergePdfSaveDb(dirNamePaper, dirNameCardA3, tbTaskPdf);
|
|
createPdfNewUtil.mergePdfSaveDb(dirNamePaper, dirNameCardA3, tbTaskPdf);
|
|
// 生成A4文件
|
|
// 生成A4文件
|
|
- createA4File(tbTaskPdf, examDetailCourseList);
|
|
|
|
|
|
+ createA4File(tbTaskPdf, examDetailCourseList, createPdfDto.getFileTempList());
|
|
long endTime = System.currentTimeMillis();
|
|
long endTime = System.currentTimeMillis();
|
|
addSummary(stringJoinerSummary, "pdf文件生成成功,共处理" + examDetail.getTotalSubjects() + "科次。耗时:" + (endTime - startTime) / 1000 + "秒");
|
|
addSummary(stringJoinerSummary, "pdf文件生成成功,共处理" + examDetail.getTotalSubjects() + "科次。耗时:" + (endTime - startTime) / 1000 + "秒");
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
@@ -350,10 +350,11 @@ public class PdfTaskLogicServiceImpl implements PdfTaskLogicService {
|
|
*
|
|
*
|
|
* @param tbTaskPdf
|
|
* @param tbTaskPdf
|
|
* @param examDetailCourseList
|
|
* @param examDetailCourseList
|
|
|
|
+ * @param fileTempList
|
|
* @throws Exception
|
|
* @throws Exception
|
|
*/
|
|
*/
|
|
@Transactional
|
|
@Transactional
|
|
- public void createA4File(TBTaskPdf tbTaskPdf, List<ExamDetailCourse> examDetailCourseList) throws Exception {
|
|
|
|
|
|
+ public void createA4File(TBTaskPdf tbTaskPdf, List<ExamDetailCourse> examDetailCourseList, List<File> fileTempList) throws Exception {
|
|
CreatePdfTypeEnum createPdfType = tbTaskPdf.getCreateType();
|
|
CreatePdfTypeEnum createPdfType = tbTaskPdf.getCreateType();
|
|
ExamPrintPlan examPrintPlan = examPrintPlanService.getById(tbTaskPdf.getPrintPlanId());
|
|
ExamPrintPlan examPrintPlan = examPrintPlanService.getById(tbTaskPdf.getPrintPlanId());
|
|
ExamDetail examDetail = examDetailService.getById(tbTaskPdf.getId());
|
|
ExamDetail examDetail = examDetailService.getById(tbTaskPdf.getId());
|
|
@@ -368,7 +369,7 @@ public class PdfTaskLogicServiceImpl implements PdfTaskLogicService {
|
|
if (Objects.nonNull(jsonObjectOrdinary.get("attachmentId")) && !Objects.equals("", jsonObjectOrdinary.get("attachmentId"))) {
|
|
if (Objects.nonNull(jsonObjectOrdinary.get("attachmentId")) && !Objects.equals("", jsonObjectOrdinary.get("attachmentId"))) {
|
|
Long attachmentId = Long.parseLong((String) jsonObjectOrdinary.get("attachmentId"));
|
|
Long attachmentId = Long.parseLong((String) jsonObjectOrdinary.get("attachmentId"));
|
|
BasicAttachment basicAttachment = basicAttachmentService.getById(attachmentId);
|
|
BasicAttachment basicAttachment = basicAttachmentService.getById(attachmentId);
|
|
- createPdfNewUtil.createCheckIn(examDetail, basicAttachment, (Integer) jsonObjectOrdinary.get("backupCount"));
|
|
|
|
|
|
+ createPdfNewUtil.createCheckIn(examDetail, basicAttachment, (Integer) jsonObjectOrdinary.get("backupCount"), fileTempList);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|