|
@@ -4,7 +4,6 @@ package com.qmth.paper.library.api;
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
import com.qmth.paper.library.business.bean.result.EditResult;
|
|
import com.qmth.paper.library.business.bean.result.EditResult;
|
|
-import com.qmth.paper.library.business.entity.PaperLibrary;
|
|
|
|
import com.qmth.paper.library.business.service.DocManageService;
|
|
import com.qmth.paper.library.business.service.DocManageService;
|
|
import com.qmth.paper.library.business.service.PaperLibraryService;
|
|
import com.qmth.paper.library.business.service.PaperLibraryService;
|
|
import com.qmth.paper.library.business.templete.execute.AsyncDownloadPaperService;
|
|
import com.qmth.paper.library.business.templete.execute.AsyncDownloadPaperService;
|
|
@@ -21,7 +20,6 @@ import com.qmth.paper.library.common.util.ServletUtil;
|
|
import io.swagger.annotations.*;
|
|
import io.swagger.annotations.*;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
-import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
import javax.validation.constraints.Max;
|
|
import javax.validation.constraints.Max;
|
|
@@ -51,11 +49,21 @@ public class DocManageController {
|
|
@ApiOperation(value = "分页查询")
|
|
@ApiOperation(value = "分页查询")
|
|
@PostMapping("/page")
|
|
@PostMapping("/page")
|
|
@ApiResponses({@ApiResponse(code = 200, message = "查询成功", response = Result.class)})
|
|
@ApiResponses({@ApiResponse(code = 200, message = "查询成功", response = Result.class)})
|
|
- public Result page(@ApiParam(value = "考试ID", required = true) @RequestParam() Long examId,
|
|
|
|
|
|
+ public Result page(@ApiParam(value = "学期ID", required = true) @RequestParam Long semesterId,
|
|
|
|
+ @ApiParam(value = "考试ID", required = true) @RequestParam Long examId,
|
|
@ApiParam(value = "课程代码") @RequestParam(required = false) String courseCode,
|
|
@ApiParam(value = "课程代码") @RequestParam(required = false) String courseCode,
|
|
@ApiParam(value = "分页页码", required = true) @RequestParam @Min(SystemConstant.PAGE_NUMBER_MIN) Integer pageNumber,
|
|
@ApiParam(value = "分页页码", required = true) @RequestParam @Min(SystemConstant.PAGE_NUMBER_MIN) Integer pageNumber,
|
|
@ApiParam(value = "分页数", required = true) @RequestParam @Min(SystemConstant.PAGE_SIZE_MIN) @Max(SystemConstant.PAGE_SIZE_MAX) Integer pageSize) {
|
|
@ApiParam(value = "分页数", required = true) @RequestParam @Min(SystemConstant.PAGE_SIZE_MIN) @Max(SystemConstant.PAGE_SIZE_MAX) Integer pageSize) {
|
|
- return ResultUtil.ok(docManageService.pageData(examId, courseCode, pageNumber, pageSize));
|
|
|
|
|
|
+ return ResultUtil.ok(docManageService.pageData(semesterId, examId, courseCode, pageNumber, pageSize));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "汇总统计")
|
|
|
|
+ @PostMapping("/stat")
|
|
|
|
+ @ApiResponses({@ApiResponse(code = 200, message = "查询成功", response = Result.class)})
|
|
|
|
+ public Result stat(@ApiParam(value = "学期ID", required = true) @RequestParam Long semesterId,
|
|
|
|
+ @ApiParam(value = "考试ID", required = true) @RequestParam Long examId,
|
|
|
|
+ @ApiParam(value = "课程代码") @RequestParam(required = false) String courseCode) {
|
|
|
|
+ return ResultUtil.ok(docManageService.statData(semesterId, examId, courseCode));
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "查看详情")
|
|
@ApiOperation(value = "查看详情")
|
|
@@ -74,9 +82,11 @@ public class DocManageController {
|
|
@ApiParam(value = "成绩(大)") @RequestParam(required = false) Double maxScore,
|
|
@ApiParam(value = "成绩(大)") @RequestParam(required = false) Double maxScore,
|
|
@ApiParam(value = "绑定数量(小)") @RequestParam(required = false) Integer minBindCount,
|
|
@ApiParam(value = "绑定数量(小)") @RequestParam(required = false) Integer minBindCount,
|
|
@ApiParam(value = "绑定数量(大)") @RequestParam(required = false) Integer maxBindCount,
|
|
@ApiParam(value = "绑定数量(大)") @RequestParam(required = false) Integer maxBindCount,
|
|
|
|
+ @ApiParam(value = "大于、等于、小于、不等于") @RequestParam(value = "pictureSymbol", required = false) String pictureSymbol,
|
|
|
|
+ @ApiParam(value = "图片张数") @RequestParam(value = "pictureCount", required = false) Integer pictureCount,
|
|
@ApiParam(value = "分页页码", required = true) @RequestParam @Min(SystemConstant.PAGE_NUMBER_MIN) Integer pageNumber,
|
|
@ApiParam(value = "分页页码", required = true) @RequestParam @Min(SystemConstant.PAGE_NUMBER_MIN) Integer pageNumber,
|
|
@ApiParam(value = "分页数", required = true) @RequestParam @Min(SystemConstant.PAGE_SIZE_MIN) @Max(SystemConstant.PAGE_SIZE_MAX) Integer pageSize) {
|
|
@ApiParam(value = "分页数", required = true) @RequestParam @Min(SystemConstant.PAGE_SIZE_MIN) @Max(SystemConstant.PAGE_SIZE_MAX) Integer pageSize) {
|
|
- return ResultUtil.ok(docManageService.pageDetail(paperScanTaskId, collegeName, majorName, className, examRoom, teacher, teachClass, isBind, param, minScore, maxScore, minBindCount, maxBindCount, pageNumber, pageSize));
|
|
|
|
|
|
+ return ResultUtil.ok(docManageService.pageDetail(paperScanTaskId, collegeName, majorName, className, examRoom, teacher, teachClass, isBind, param, minScore, maxScore, minBindCount, maxBindCount, pictureSymbol, pictureCount, pageNumber, pageSize));
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "批量下载")
|
|
@ApiOperation(value = "批量下载")
|