PaperBasicInfo
parent
868cc95e3f
commit
7534893261
|
|
@ -439,11 +439,10 @@ public class PaperServiceImpl extends ServiceImpl<PaperMapper, PaperDO> implemen
|
||||||
QuestionTypeEnum typeEnum = QuestionTypeEnum.fromCode(question.getQuestionType());
|
QuestionTypeEnum typeEnum = QuestionTypeEnum.fromCode(question.getQuestionType());
|
||||||
String typeLabel = typeEnum == null ? question.getQuestionType() : typeEnum.getDesc() + "题";
|
String typeLabel = typeEnum == null ? question.getQuestionType() : typeEnum.getDesc() + "题";
|
||||||
String score = question.getScore() == null ? "0" : question.getScore().toPlainString();
|
String score = question.getScore() == null ? "0" : question.getScore().toPlainString();
|
||||||
StringBuilder questionText = new StringBuilder();
|
String questionText = "(" + typeLabel + ")" +
|
||||||
questionText.append("(").append(typeLabel).append(")")
|
questionNum + ". " + question.getTitle() +
|
||||||
.append(questionNum).append(". ").append(question.getTitle())
|
"(题目分值:" + score + ")";
|
||||||
.append("(题目分值:").append(score).append(")");
|
Paragraph questionLine = new Paragraph(questionText, new Font(baseFont, 10, Font.NORMAL));
|
||||||
Paragraph questionLine = new Paragraph(questionText.toString(), new Font(baseFont, 10, Font.NORMAL));
|
|
||||||
questionLine.setSpacingBefore(8f);
|
questionLine.setSpacingBefore(8f);
|
||||||
document.add(questionLine);
|
document.add(questionLine);
|
||||||
if (CollectionUtils.isEmpty(question.getQuestionOptionVOList())) {
|
if (CollectionUtils.isEmpty(question.getQuestionOptionVOList())) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue