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