Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
exam-project
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj
exam-project
Commits
a78932ea
Commit
a78932ea
authored
Mar 07, 2025
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
试题导出
parent
06bfe990
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
cloud-exam/src/main/java/com/yizhi/application/controller/TrExamOnlineReadOverController.java
+3
-2
cloud-exam/src/main/java/com/yizhi/application/export/ReadOnLineExamsExport.java
+1
-1
No files found.
cloud-exam/src/main/java/com/yizhi/application/controller/TrExamOnlineReadOverController.java
View file @
a78932ea
...
...
@@ -276,15 +276,16 @@ public class TrExamOnlineReadOverController {
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
RequestContext
res
=
ContextHolder
.
get
();
Long
taskId
=
System
.
currentTimeMillis
();
com
.
yizhi
.
application
.
domain
.
Exam
examEntity
=
iExamService
.
selectById
(
examId
);
String
serialNo
=
"READ-ONLINE-EXAM-EXPORT"
+
taskId
.
toString
();
String
taskName
=
"阅卷管理考试结果导出
"
+
taskId
.
toString
();
String
taskName
=
examEntity
.
getName
()
+
"考试导出结果
"
+
taskId
.
toString
();
map
.
put
(
"taskId"
,
taskId
);
map
.
put
(
"serialNo"
,
serialNo
);
map
.
put
(
"taskName"
,
taskName
);
map
.
put
(
"res"
,
res
);
map
.
put
(
"examId"
,
examId
);
readOnLineExamsExport
.
execute
(
map
,
true
);
return
serialNo
;
return
taskName
;
}
/**
...
...
cloud-exam/src/main/java/com/yizhi/application/export/ReadOnLineExamsExport.java
View file @
a78932ea
...
...
@@ -188,7 +188,7 @@ public class ReadOnLineExamsExport extends AbstractDefaultTask<String, Map<Strin
}
String
fileName
=
exam
.
getName
()
+
"考试结果"
+
sdf2
.
format
(
comitTime
)
+
".xlsx"
;
String
fileName
=
taskName
+
".xlsx"
;
// String requestPath = "/Users/dingxiaowei/aaa";
String
requestPath
=
FileConstant
.
SAVE_PATH
;
File
fileDir
=
new
File
(
requestPath
);
...
...
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