|
@@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import com.qmth.boot.api.annotation.Aac;
|
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
|
+import com.qmth.boot.core.collection.PageResult;
|
|
|
import com.qmth.boot.core.concurrent.service.ConcurrentService;
|
|
|
import com.qmth.boot.core.exception.ParameterException;
|
|
|
import com.qmth.boot.core.exception.ReentrantException;
|
|
@@ -120,9 +121,9 @@ public class CheckAssignedController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "管理员任务历史")
|
|
|
@RequestMapping(value = "task/history", method = RequestMethod.POST)
|
|
|
- public List<AnswerQueryVo> history(@RequestParam Long id, @RequestParam Long pageSize) {
|
|
|
+ public PageResult<AnswerQueryVo> history(@RequestParam Long examId, @RequestParam String subjectCode, @RequestParam Long pageNumber, @RequestParam Long pageSize) {
|
|
|
User user = getAccessUser();
|
|
|
- return studentService.getAssignedCheckTaskHistory(id, pageSize, user);
|
|
|
+ return studentService.getAssignedCheckTaskHistory(examId, subjectCode,pageNumber,pageSize, user);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "管理员任务提交")
|
|
@@ -134,14 +135,14 @@ public class CheckAssignedController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "管理员任务状态")
|
|
|
@PostMapping("task/status")
|
|
|
- public TaskStatusVo status(@RequestParam Long examId) {
|
|
|
+ public TaskStatusVo status(@RequestParam Long examId, @RequestParam String subjectCode) {
|
|
|
User user = getAccessUser();
|
|
|
return studentService.getAssignedCheckTaskStatus(examId, user);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "管理员任务释放")
|
|
|
@PostMapping("task/release")
|
|
|
- public Object release(@RequestParam Long examId) {
|
|
|
+ public Object release(@RequestParam Long examId, @RequestParam String subjectCode) {
|
|
|
User user = getAccessUser();
|
|
|
studentService.releaseAssignedCheckTaskByUser(examId, user.getAccount());
|
|
|
return success(true);
|