|
@@ -1,19 +1,23 @@
|
|
|
package com.qmth.distributed.print.api.mark;
|
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.validation.annotation.Validated;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
|
import com.qmth.teachcloud.common.contant.SystemConstant;
|
|
|
import com.qmth.teachcloud.common.util.Result;
|
|
|
import com.qmth.teachcloud.common.util.ResultUtil;
|
|
|
+import com.qmth.teachcloud.mark.bean.student.AbsentManualUpdateVo;
|
|
|
import com.qmth.teachcloud.mark.bean.student.StudentQuery;
|
|
|
import com.qmth.teachcloud.mark.service.MarkStudentService;
|
|
|
+
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.validation.annotation.Validated;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -27,12 +31,19 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
@RestController
|
|
|
@RequestMapping(ApiConstant.DEFAULT_URI_PREFIX + SystemConstant.PREFIX_URL_SCAN + "/student")
|
|
|
public class ScanStudentController {
|
|
|
- @Autowired
|
|
|
- private MarkStudentService markStudentService;
|
|
|
+ @Autowired
|
|
|
+ private MarkStudentService markStudentService;
|
|
|
+
|
|
|
+ @ApiOperation(value = "考生查询")
|
|
|
+ @RequestMapping(value = "find", method = RequestMethod.POST)
|
|
|
+ public Result student(@Validated StudentQuery query) {
|
|
|
+ return ResultUtil.ok(markStudentService.findOne(query));
|
|
|
+ }
|
|
|
|
|
|
- @ApiOperation(value = "考生查询")
|
|
|
- @RequestMapping(value = "find", method = RequestMethod.POST)
|
|
|
- public Result student(@Validated StudentQuery query) {
|
|
|
- return ResultUtil.ok(markStudentService.findOne(query));
|
|
|
- }
|
|
|
+ @ApiOperation(value = "更新缺考状态")
|
|
|
+ @PostMapping("absent/update")
|
|
|
+ public AbsentManualUpdateVo absentManualUpdate(@RequestParam Long examId, @RequestParam String coursePaperId,
|
|
|
+ @RequestParam String studentCode) {
|
|
|
+ return markStudentService.absentManualUpdate(examId, coursePaperId,studentCode);
|
|
|
+ }
|
|
|
}
|