Commit abe80017 by 阳浪

试题导出

parent 3afc38e7
...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment