|
@@ -1320,18 +1320,10 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
ExamCard examCard = examCardService.getById(cardId);
|
|
ExamCard examCard = examCardService.getById(cardId);
|
|
Optional.ofNullable(examCard).orElseThrow(() -> ExceptionResultEnum.ERROR.exception("找不到答题卡"));
|
|
Optional.ofNullable(examCard).orElseThrow(() -> ExceptionResultEnum.ERROR.exception("找不到答题卡"));
|
|
|
|
|
|
- MakeMethodEnum makeMethodEnum = examCard.getMakeMethod();
|
|
|
|
-
|
|
|
|
String cardHtmlPath = dirPath + "题卡" + SystemConstant.HYPHEN + name + SystemConstant.HTML_PREFIX;
|
|
String cardHtmlPath = dirPath + "题卡" + SystemConstant.HYPHEN + name + SystemConstant.HTML_PREFIX;
|
|
String cardPdfPath = dirPath + "题卡" + SystemConstant.HYPHEN + name + SystemConstant.PDF_PREFIX;
|
|
String cardPdfPath = dirPath + "题卡" + SystemConstant.HYPHEN + name + SystemConstant.PDF_PREFIX;
|
|
// 通用题卡
|
|
// 通用题卡
|
|
- String htmlContent;
|
|
|
|
- if (MakeMethodEnum.SELECT.equals(makeMethodEnum)) {
|
|
|
|
- htmlContent = createPdfUtil.resetHtmlTemplateBar(examCard.getHtmlContent());
|
|
|
|
- } else {
|
|
|
|
- BasicCardRule basicCardRule = basicCardRuleService.getById(examTask.getCardRuleId());
|
|
|
|
- htmlContent = createPdfUtil.replaceHtmlCardAllParams(examCard, basicCardRule);
|
|
|
|
- }
|
|
|
|
|
|
+ String htmlContent = createPdfNewUtil.replaceBlankHtmlContent(examCard.getHtmlContent());
|
|
// html
|
|
// html
|
|
File localFile = new File(cardHtmlPath);
|
|
File localFile = new File(cardHtmlPath);
|
|
if (!localFile.exists()) {
|
|
if (!localFile.exists()) {
|