Commit 7be11931 authored by alex yao's avatar alex yao

feat: 智能出题-文件下载 调整样式

parent d0609a0f
...@@ -275,15 +275,14 @@ public class ExaminationServiceImpl implements ExaminationService { ...@@ -275,15 +275,14 @@ public class ExaminationServiceImpl implements ExaminationService {
titleParagraphRun.setText(examinationEntity.getTitle()); titleParagraphRun.setText(examinationEntity.getTitle());
titleParagraphRun.setBold(true); titleParagraphRun.setBold(true);
titleParagraphRun.setFontSize(22); titleParagraphRun.setFontSize(22);
titleParagraphRun.addBreak();
// 详情 // 详情
XWPFParagraph detailParagraph = document.createParagraph(); XWPFParagraph detailParagraph = document.createParagraph();
detailParagraph.setAlignment(ParagraphAlignment.CENTER); detailParagraph.setAlignment(ParagraphAlignment.CENTER);
detailParagraph.setVerticalAlignment(TextAlignment.CENTER); detailParagraph.setVerticalAlignment(TextAlignment.CENTER);
XWPFRun detailParagraphRun = detailParagraph.createRun(); XWPFRun detailParagraphRun = detailParagraph.createRun();
detailParagraphRun.setText("总分:" + examinationEntity.getTotalScore() + "分 难度级别:" + examinationEntity.getLevel() + " 适用岗位:" + examinationEntity.getPositions()); detailParagraphRun.setText("总分: " + examinationEntity.getTotalScore() + "分 难度级别:" + examinationEntity.getLevel() + " 适用岗位: " + examinationEntity.getPositions());
detailParagraphRun.addBreak();
// 遍历试卷题目,写入试卷 // 遍历试卷题目,写入试卷
List<ExaminationDetail> examinationDetails = JsonUtils.deSerialize(examinationEntity.getExaminationDetail(), new TypeReference<List<ExaminationDetail>>() { List<ExaminationDetail> examinationDetails = JsonUtils.deSerialize(examinationEntity.getExaminationDetail(), new TypeReference<List<ExaminationDetail>>() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment