|
@@ -1,17 +1,5 @@
|
|
|
package cn.com.qmth.scancentral.controller.admin;
|
|
|
|
|
|
-import org.slf4j.Logger;
|
|
|
-import org.slf4j.LoggerFactory;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-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.annotation.Aac;
|
|
|
-import com.qmth.boot.api.constant.ApiConstant;
|
|
|
-
|
|
|
import cn.com.qmth.scancentral.bean.User;
|
|
|
import cn.com.qmth.scancentral.controller.BaseController;
|
|
|
import cn.com.qmth.scancentral.service.OmrTaskService;
|
|
@@ -19,25 +7,31 @@ import cn.com.qmth.scancentral.vo.task.TaskResultVo;
|
|
|
import cn.com.qmth.scancentral.vo.task.TaskSaveVo;
|
|
|
import cn.com.qmth.scancentral.vo.task.TaskStatusVo;
|
|
|
import cn.com.qmth.scancentral.vo.task.TaskVo;
|
|
|
+import com.qmth.boot.api.annotation.Aac;
|
|
|
+import com.qmth.boot.api.constant.ApiConstant;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@RestController
|
|
|
-@Api(tags = "识别对照接口")
|
|
|
+@Api(tags = "识别对照仲裁任务接口")
|
|
|
@RequestMapping(ApiConstant.DEFAULT_URI_PREFIX + "/admin/check/omr/arbitrate")
|
|
|
@Aac(strict = false, auth = true)
|
|
|
-public class ArbitrateController extends BaseController {
|
|
|
+public class OmrArbitrateController extends BaseController {
|
|
|
|
|
|
- protected static final Logger log = LoggerFactory.getLogger(ArbitrateController.class);
|
|
|
+ protected static final Logger log = LoggerFactory.getLogger(OmrArbitrateController.class);
|
|
|
|
|
|
@Autowired
|
|
|
private OmrTaskService omrTaskService;
|
|
|
|
|
|
@ApiOperation(value = "识别对照仲裁任务获取")
|
|
|
@RequestMapping(value = "/get", method = RequestMethod.POST)
|
|
|
- public TaskVo get(@RequestParam Long examId) {
|
|
|
+ public TaskVo get(@RequestParam Long groupId) {
|
|
|
User user = getAccessUser();
|
|
|
- return omrTaskService.getArbitrateTask(examId, user.getAccount());
|
|
|
+ return omrTaskService.getArbitrateTask(groupId, user.getAccount());
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "识别对照仲裁结果提交")
|
|
@@ -65,8 +59,9 @@ public class ArbitrateController extends BaseController {
|
|
|
@ApiOperation(value = "识别对照仲裁任务历史")
|
|
|
@RequestMapping(value = "/history", method = RequestMethod.POST)
|
|
|
public TaskVo history(@RequestParam Long examId, @RequestParam(required = false) Long id,
|
|
|
- @RequestParam(required = false) Boolean next) {
|
|
|
+ @RequestParam(required = false) Boolean next) {
|
|
|
User user = getAccessUser();
|
|
|
return omrTaskService.getArbitrateHistory(examId, id, user.getAccount(), next);
|
|
|
}
|
|
|
+
|
|
|
}
|