Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-api
Commits
7be11931
Commit
7be11931
authored
Aug 15, 2025
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 智能出题-文件下载 调整样式
parent
d0609a0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
ExaminationServiceImpl.java
...om/poc/writing/aggregate/impl/ExaminationServiceImpl.java
+2
-3
No files found.
src/main/java/cn/com/poc/writing/aggregate/impl/ExaminationServiceImpl.java
View file @
7be11931
...
...
@@ -275,15 +275,14 @@ public class ExaminationServiceImpl implements ExaminationService {
titleParagraphRun
.
setText
(
examinationEntity
.
getTitle
());
titleParagraphRun
.
setBold
(
true
);
titleParagraphRun
.
setFontSize
(
22
);
titleParagraphRun
.
addBreak
();
// 详情
XWPFParagraph
detailParagraph
=
document
.
createParagraph
();
detailParagraph
.
setAlignment
(
ParagraphAlignment
.
CENTER
);
detailParagraph
.
setVerticalAlignment
(
TextAlignment
.
CENTER
);
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
>>()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment