|
@@ -70,7 +70,8 @@ public class CoursePaperController extends ControllerSupport {
|
|
|
|
|
|
@GetMapping("/export/batch")
|
|
|
@ApiOperation(value = "批量导出")
|
|
|
- public void exportBatch(@RequestBody ExportBatchReq req) throws Exception {
|
|
|
+ public void exportBatch(@RequestParam Long[] ids, @RequestParam Integer[] types) throws Exception {
|
|
|
+ ExportBatchReq req = new ExportBatchReq(ids, types);
|
|
|
File file = coursePaperService.exportBatchCoursePaper(req);
|
|
|
if (file != null) {
|
|
|
super.exportFile(STRUCT_ZIP_NAME, file);
|
|
@@ -81,7 +82,8 @@ public class CoursePaperController extends ControllerSupport {
|
|
|
|
|
|
@GetMapping("/export/all")
|
|
|
@ApiOperation(value = "整体导出")
|
|
|
- public void exportAll(@RequestBody ExportAllReq req) throws Exception {
|
|
|
+ public void exportAll(@RequestParam Long orgId, @RequestParam Long examId, @RequestParam Integer[] types) throws Exception {
|
|
|
+ ExportAllReq req = new ExportAllReq(orgId, examId, types);
|
|
|
File file = coursePaperService.exportAllCoursePaper(req);
|
|
|
if (file != null) {
|
|
|
super.exportFile(STRUCT_ZIP_NAME, file);
|