|
@@ -6,6 +6,7 @@ import org.springframework.validation.annotation.Validated;
|
|
|
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.constant.ApiConstant;
|
|
@@ -17,6 +18,7 @@ import com.qmth.teachcloud.common.entity.SysUser;
|
|
|
import com.qmth.teachcloud.common.util.ServletUtil;
|
|
|
import com.qmth.teachcloud.mark.bean.answerbatch.BatchCreateDomain;
|
|
|
import com.qmth.teachcloud.mark.bean.answerbatch.BatchCreateVo;
|
|
|
+import com.qmth.teachcloud.mark.bean.answerbatch.BatchFinishVo;
|
|
|
import com.qmth.teachcloud.mark.service.ScanBatchService;
|
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -51,4 +53,10 @@ public class ScanAnswerBatchController {
|
|
|
SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
|
|
|
return scanBatchService.batchCreate(domain,sysUser);
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "答题卡扫描批次完成")
|
|
|
+ @RequestMapping(value = "finish", method = RequestMethod.POST)
|
|
|
+ public BatchFinishVo batchFinish(@RequestParam Long id) {
|
|
|
+ return scanBatchService.batchFinish(id);
|
|
|
+ }
|
|
|
}
|