|
@@ -9,10 +9,7 @@ import com.itextpdf.text.DocumentException;
|
|
import com.qmth.distributed.print.business.bean.dto.ExamStudentDto;
|
|
import com.qmth.distributed.print.business.bean.dto.ExamStudentDto;
|
|
import com.qmth.distributed.print.business.bean.dto.PdfDto;
|
|
import com.qmth.distributed.print.business.bean.dto.PdfDto;
|
|
import com.qmth.distributed.print.business.entity.*;
|
|
import com.qmth.distributed.print.business.entity.*;
|
|
-import com.qmth.distributed.print.business.enums.DrawRuleEnum;
|
|
|
|
-import com.qmth.distributed.print.business.enums.ExamDetailStatusEnum;
|
|
|
|
-import com.qmth.distributed.print.business.enums.PageSizeEnum;
|
|
|
|
-import com.qmth.distributed.print.business.enums.PrintMethodEnum;
|
|
|
|
|
|
+import com.qmth.distributed.print.business.enums.*;
|
|
import com.qmth.distributed.print.business.service.BasicAttachmentService;
|
|
import com.qmth.distributed.print.business.service.BasicAttachmentService;
|
|
import com.qmth.distributed.print.business.service.CommonService;
|
|
import com.qmth.distributed.print.business.service.CommonService;
|
|
import com.qmth.distributed.print.business.service.ExamDetailService;
|
|
import com.qmth.distributed.print.business.service.ExamDetailService;
|
|
@@ -81,7 +78,7 @@ public class CreatePdfUtil {
|
|
ordinaryPdfList.add(new PdfDto(localFile.getPath(), PageSizeEnum.A4, pdfDto.getPageCount()));
|
|
ordinaryPdfList.add(new PdfDto(localFile.getPath(), PageSizeEnum.A4, pdfDto.getPageCount()));
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- basicAttachmentService.saveAttachmentPdf("checkIn", examDetailCourse, basicAttachment, ordinaryPdfList, printCount, 0);
|
|
|
|
|
|
+ basicAttachmentService.saveAttachmentPdf(ClassifyEnum.CHECK_IN, examDetailCourse, basicAttachment, ordinaryPdfList, printCount, 0);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -158,7 +155,7 @@ public class CreatePdfUtil {
|
|
htmlMap.computeIfAbsent("printCount", v -> printCount);
|
|
htmlMap.computeIfAbsent("printCount", v -> printCount);
|
|
htmlMap.computeIfAbsent("sequence", v -> 1);
|
|
htmlMap.computeIfAbsent("sequence", v -> 1);
|
|
htmlMap.computeIfAbsent("examDetailCourse", v -> examDetailCourse);
|
|
htmlMap.computeIfAbsent("examDetailCourse", v -> examDetailCourse);
|
|
- htmlMap.computeIfAbsent("printType", v -> "paperPackage");
|
|
|
|
|
|
+ htmlMap.computeIfAbsent("printType", v -> ClassifyEnum.PACKAGE);
|
|
freemarkerUtil.createPaperPackage(htmlMap);
|
|
freemarkerUtil.createPaperPackage(htmlMap);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -256,7 +253,7 @@ public class CreatePdfUtil {
|
|
htmlMap.computeIfAbsent("printCount", v -> printCount);
|
|
htmlMap.computeIfAbsent("printCount", v -> printCount);
|
|
htmlMap.computeIfAbsent("sequence", v -> 2);
|
|
htmlMap.computeIfAbsent("sequence", v -> 2);
|
|
htmlMap.computeIfAbsent("examDetailCourse", v -> examDetailCourse);
|
|
htmlMap.computeIfAbsent("examDetailCourse", v -> examDetailCourse);
|
|
- htmlMap.computeIfAbsent("printType", v -> "signBook");
|
|
|
|
|
|
+ htmlMap.computeIfAbsent("printType", v -> ClassifyEnum.SIGN);
|
|
freemarkerUtil.createSignBook(htmlMap);
|
|
freemarkerUtil.createSignBook(htmlMap);
|
|
}
|
|
}
|
|
|
|
|