|
@@ -132,14 +132,14 @@ public class MarkUserQuestionController extends BaseController {
|
|
@ApiOperation(value = "设置评卷任务")
|
|
@ApiOperation(value = "设置评卷任务")
|
|
@RequestMapping(value = "/setTaskCount", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/setTaskCount", method = RequestMethod.POST)
|
|
@OperationLogDetail(operationType = OperationTypeEnum.UPDATE, detail = "设置评卷任务操作,用户分组ID集合:{{markUserQuestionIds}}、评卷任务数:{{topCount}}")
|
|
@OperationLogDetail(operationType = OperationTypeEnum.UPDATE, detail = "设置评卷任务操作,用户分组ID集合:{{markUserQuestionIds}}、评卷任务数:{{topCount}}")
|
|
- public Result setTaskCount(@ApiParam(value = "用户分组ID集合", required = true) @RequestParam List<Long> markUserQuestionIds,
|
|
|
|
|
|
+ public Result setTaskCount(@ApiParam(value = "用户分组ID集合", required = true) @RequestParam List<Long> markUserGroupIds,
|
|
@ApiParam(value = "评卷任务数", required = true) @RequestParam Integer topCount) {
|
|
@ApiParam(value = "评卷任务数", required = true) @RequestParam Integer topCount) {
|
|
- MarkUserQuestion markUserQuestion = markUserQuestionService.getById(markUserQuestionIds.get(0));
|
|
|
|
|
|
+ MarkUserQuestion markUserQuestion = markUserQuestionService.getById(markUserGroupIds.get(0));
|
|
if (markUserQuestion == null) {
|
|
if (markUserQuestion == null) {
|
|
throw ExceptionResultEnum.ERROR.exception("评卷员不存在");
|
|
throw ExceptionResultEnum.ERROR.exception("评卷员不存在");
|
|
}
|
|
}
|
|
validMarkPaperForMark(markUserQuestion.getExamId(), markUserQuestion.getPaperNumber());
|
|
validMarkPaperForMark(markUserQuestion.getExamId(), markUserQuestion.getPaperNumber());
|
|
- markUserQuestionService.setTopCount(markUserQuestionIds, topCount);
|
|
|
|
|
|
+ markUserQuestionService.setTopCount(markUserGroupIds, topCount);
|
|
return ResultUtil.ok(true);
|
|
return ResultUtil.ok(true);
|
|
}
|
|
}
|
|
|
|
|