|
@@ -2,7 +2,11 @@ package cn.com.qmth.examcloud.core.oe.task.provider;
|
|
|
|
|
|
|
|
|
import cn.com.qmth.examcloud.core.oe.task.api.ExamCaptureCloudService;
|
|
|
+import cn.com.qmth.examcloud.core.oe.task.api.request.ExistUnhandledCaptureQueueReq;
|
|
|
import cn.com.qmth.examcloud.core.oe.task.api.request.SaveExamCaptureSyncCompareResultReq;
|
|
|
+import cn.com.qmth.examcloud.core.oe.task.api.request.UpdateExamCaptureQueuePriorityReq;
|
|
|
+import cn.com.qmth.examcloud.core.oe.task.api.response.ExistUnhandledCaptureQueueResp;
|
|
|
+import cn.com.qmth.examcloud.core.oe.task.dao.ExamCaptureQueueRepo;
|
|
|
import cn.com.qmth.examcloud.core.oe.task.service.ExamSyncCaptureService;
|
|
|
import cn.com.qmth.examcloud.web.support.ControllerSupport;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -25,6 +29,8 @@ public class ExamCaptureCloudServiceProvider extends ControllerSupport
|
|
|
|
|
|
@Autowired
|
|
|
private ExamSyncCaptureService examSyncCaptureService;
|
|
|
+ @Autowired
|
|
|
+ private ExamCaptureQueueRepo examCaptureQueueRepo;
|
|
|
|
|
|
@Override
|
|
|
@ApiOperation(value = "保存抓拍照片的同步比较结果")
|
|
@@ -33,4 +39,32 @@ public class ExamCaptureCloudServiceProvider extends ControllerSupport
|
|
|
examSyncCaptureService.saveExamCaptureSyncCompareResult(request.getStudentId(),
|
|
|
request.getExamRecordDataId());
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @param req 更新优先级请求参数
|
|
|
+ * @description 更新考试抓拍照片在队列优中的先级
|
|
|
+ * @date 2019/7/31 16:46
|
|
|
+ * @author lideyin
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ @ApiOperation(value = "更新考试抓拍照片在队列优中的先级")
|
|
|
+ @PostMapping("/updateExamCaptureQueuePriority")
|
|
|
+ public void updateExamCaptureQueuePriority(@RequestBody UpdateExamCaptureQueuePriorityReq req) {
|
|
|
+ examCaptureQueueRepo.updateExamCaptureQueuePriority(req.getPriority(), req.getExamRecordDataId());
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 是否存在未处理的图片抓拍队列(处理完成的队列数据都会清理掉)
|
|
|
+ *
|
|
|
+ * @param req
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ @ApiOperation(value = "是否存在未处理的图片抓拍队列")
|
|
|
+ @PostMapping("/existsUnhandledCaptureQueue")
|
|
|
+ public ExistUnhandledCaptureQueueResp existsUnhandledCaptureQueue(@RequestBody ExistUnhandledCaptureQueueReq req) {
|
|
|
+ ExistUnhandledCaptureQueueResp resp = new ExistUnhandledCaptureQueueResp();
|
|
|
+ resp.setExist(examCaptureQueueRepo.existsUnhandledByExamRecordDataId(req.getExamRecordDataId()) != null);
|
|
|
+ return resp;
|
|
|
+ }
|
|
|
}
|