Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-web
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
cloud-web
Commits
abe80017
Commit
abe80017
authored
Mar 07, 2025
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
试题导出
parent
3afc38e7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
cloud-web-manage/src/main/java/com/yizhi/application/exam/controller/ExamOnlineReadOverController.java
+6
-1
No files found.
cloud-web-manage/src/main/java/com/yizhi/application/exam/controller/ExamOnlineReadOverController.java
View file @
abe80017
...
@@ -47,6 +47,7 @@ import org.slf4j.Logger;
...
@@ -47,6 +47,7 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.util.Assert
;
import
org.springframework.util.Assert
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
...
@@ -97,6 +98,9 @@ public class ExamOnlineReadOverController {
...
@@ -97,6 +98,9 @@ public class ExamOnlineReadOverController {
@Autowired
@Autowired
private
ReportClient
reportClient
;
private
ReportClient
reportClient
;
@Value
(
"${pc.host.url}"
)
String
pcHostUrl
;
/* @ApiOperation(value = "阅卷列表", notes = "阅卷列表",response = ExamDetailsMarkingVO.class)
/* @ApiOperation(value = "阅卷列表", notes = "阅卷列表",response = ExamDetailsMarkingVO.class)
@GetMapping("/marking/list")
@GetMapping("/marking/list")
public Response<ExamDetailsMarkingVO> getExamMarkingList(
public Response<ExamDetailsMarkingVO> getExamMarkingList(
...
@@ -560,7 +564,8 @@ public class ExamOnlineReadOverController {
...
@@ -560,7 +564,8 @@ public class ExamOnlineReadOverController {
@GetMapping
(
"/marking/export"
)
@GetMapping
(
"/marking/export"
)
public
Response
<
String
>
studentExamExport
(
@ApiParam
(
name
=
"examId"
,
required
=
true
)
@RequestParam
(
name
=
"examId"
,
required
=
true
)
Long
examId
)
{
public
Response
<
String
>
studentExamExport
(
@ApiParam
(
name
=
"examId"
,
required
=
true
)
@RequestParam
(
name
=
"examId"
,
required
=
true
)
Long
examId
)
{
String
serialNo
=
examOnlineReadOverClient
.
studentExamExport
(
examId
);
String
serialNo
=
examOnlineReadOverClient
.
studentExamExport
(
examId
);
return
Response
.
ok
(
"导出成功,"
+
" "
+
"编号:"
+
serialNo
);
String
fileUril
=
pcHostUrl
+
"/api/v1/buckets/upload/objects/download/?preview=true&prefix="
+
serialNo
+
".xlsx"
;
return
Response
.
ok
(
fileUril
);
}
}
...
...
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