|
@@ -114,7 +114,7 @@ public class CreatePdfUtil {
|
|
String filePath = (String) jsonObject.get(SystemConstant.PATH);
|
|
String filePath = (String) jsonObject.get(SystemConstant.PATH);
|
|
UploadFileEnum uploadFileEnum = UploadFileEnum.valueOf((String) jsonObject.get(SystemConstant.UPLOAD_TYPE));
|
|
UploadFileEnum uploadFileEnum = UploadFileEnum.valueOf((String) jsonObject.get(SystemConstant.UPLOAD_TYPE));
|
|
|
|
|
|
- PrintPathVo printPathVo = new PrintPathVo(ClassifyEnum.CHECK_IN, uploadFileEnum, SystemConstant.LOCAL,filePath, basicAttachment.getMd5(), null, null);
|
|
|
|
|
|
+ PrintPathVo printPathVo = new PrintPathVo(ClassifyEnum.CHECK_IN, uploadFileEnum, SystemConstant.LOCAL, filePath, basicAttachment.getMd5(), null, null);
|
|
examDetail.setAttachmentPath(printCommonService.parseAttachmentPath(examDetail.getAttachmentPath(), printPathVo));
|
|
examDetail.setAttachmentPath(printCommonService.parseAttachmentPath(examDetail.getAttachmentPath(), printPathVo));
|
|
|
|
|
|
for (int i = 0; i < printCount; i++) {
|
|
for (int i = 0; i < printCount; i++) {
|
|
@@ -1222,6 +1222,7 @@ public class CreatePdfUtil {
|
|
if (StringUtils.isNotBlank(dirNamePaper)) {
|
|
if (StringUtils.isNotBlank(dirNamePaper)) {
|
|
dirNamePaper = FileUtil.replaceSplit(dirNamePaper);
|
|
dirNamePaper = FileUtil.replaceSplit(dirNamePaper);
|
|
localPaperPdfFile = new File(dirNamePaper);
|
|
localPaperPdfFile = new File(dirNamePaper);
|
|
|
|
+ examDetail.setPaperPages(PdfUtil.getPdfPages(localPaperPdfFile));
|
|
basicAttachment = basicAttachmentService.saveAttachmentPdf(dirNamePaper, userId);
|
|
basicAttachment = basicAttachmentService.saveAttachmentPdf(dirNamePaper, userId);
|
|
if (StringUtils.isBlank(tbTask.getImportFileName())) {
|
|
if (StringUtils.isBlank(tbTask.getImportFileName())) {
|
|
tbTask.setImportFileName(basicAttachment.getName());
|
|
tbTask.setImportFileName(basicAttachment.getName());
|
|
@@ -1234,6 +1235,7 @@ public class CreatePdfUtil {
|
|
// 题卡
|
|
// 题卡
|
|
if (StringUtils.isNotBlank(dirNameCardA3)) {
|
|
if (StringUtils.isNotBlank(dirNameCardA3)) {
|
|
localA3PdfCardFile = new File(FileUtil.replaceSplit(dirNameCardA3));
|
|
localA3PdfCardFile = new File(FileUtil.replaceSplit(dirNameCardA3));
|
|
|
|
+ examDetail.setCardPages(PdfUtil.getPdfPages(localA3PdfCardFile));
|
|
basicAttachment = basicAttachmentService.saveAttachmentPdf(dirNameCardA3, userId);
|
|
basicAttachment = basicAttachmentService.saveAttachmentPdf(dirNameCardA3, userId);
|
|
if (StringUtils.isBlank(tbTask.getImportFileName())) {
|
|
if (StringUtils.isBlank(tbTask.getImportFileName())) {
|
|
tbTask.setImportFileName(basicAttachment.getName());
|
|
tbTask.setImportFileName(basicAttachment.getName());
|
|
@@ -1243,14 +1245,13 @@ public class CreatePdfUtil {
|
|
}
|
|
}
|
|
examDetail.setCardAttachmentId(basicAttachment.getId());
|
|
examDetail.setCardAttachmentId(basicAttachment.getId());
|
|
}
|
|
}
|
|
- examDetail.setPaperPages(PdfUtil.getPdfPages(localPaperPdfFile));
|
|
|
|
- examDetail.setCardPages(PdfUtil.getPdfPages(localA3PdfCardFile));
|
|
|
|
- examDetail.setPagesA4(PdfUtil.getPdfPages(localA4PdfFile));
|
|
|
|
|
|
+// examDetail.setPagesA4(PdfUtil.getPdfPages(localA4PdfFile));
|
|
if (PrintMethodEnum.AUTO == basicPrintConfig.getPrintMethod()) {
|
|
if (PrintMethodEnum.AUTO == basicPrintConfig.getPrintMethod()) {
|
|
examDetail.setStatus(ExamDetailStatusEnum.WAITING);
|
|
examDetail.setStatus(ExamDetailStatusEnum.WAITING);
|
|
} else {
|
|
} else {
|
|
examDetail.setStatus(ExamDetailStatusEnum.READY);
|
|
examDetail.setStatus(ExamDetailStatusEnum.READY);
|
|
}
|
|
}
|
|
|
|
+ examDetail.setNormal(true);
|
|
detailService.saveOrUpdate(examDetail);
|
|
detailService.saveOrUpdate(examDetail);
|
|
return basicAttachment;
|
|
return basicAttachment;
|
|
}
|
|
}
|