|
@@ -9,7 +9,7 @@ import cn.com.qmth.examcloud.core.oe.student.dao.entity.FaceBiopsyItemEntity;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.dao.entity.FaceBiopsyItemStepEntity;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.dao.enums.FaceBiopsyType;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.service.*;
|
|
|
-import cn.com.qmth.examcloud.support.Constants;
|
|
|
+import cn.com.qmth.examcloud.support.CacheConstants;
|
|
|
import cn.com.qmth.examcloud.support.enums.ExamRecordStatus;
|
|
|
import cn.com.qmth.examcloud.support.enums.FaceBiopsyScheme;
|
|
|
import cn.com.qmth.examcloud.support.enums.HandInExamType;
|
|
@@ -72,7 +72,7 @@ public class FaceBiopsyController extends ControllerSupport {
|
|
|
public FaceBiopsyBaseInfo getFaceBiopsyBaseInfo(@RequestParam Long examRecordDataId) {
|
|
|
User user = getAccessUser();
|
|
|
Long studentId = user.getUserId();
|
|
|
- String sequenceLockKey = Constants.GET_FACE_BIOPSY_INFO_PREFIX + studentId;
|
|
|
+ String sequenceLockKey = CacheConstants.LOCK_GET_FACE_BIOPSY + studentId;
|
|
|
//系统在请求结束后会,自动释放锁,无需手动解锁
|
|
|
SequenceLockHelper.getLock(sequenceLockKey);
|
|
|
|
|
@@ -133,7 +133,7 @@ public class FaceBiopsyController extends ControllerSupport {
|
|
|
public FaceBiopsyInfo getFaceBiopsyInfo(@RequestParam Long examRecordDataId) {
|
|
|
User user = getAccessUser();
|
|
|
Long studentId = user.getUserId();
|
|
|
- String sequenceLockKey = Constants.GET_FACE_BIOPSY_INFO_PREFIX + studentId;
|
|
|
+ String sequenceLockKey = CacheConstants.LOCK_GET_FACE_BIOPSY + studentId;
|
|
|
//系统在请求结束后会,自动释放锁,无需手动解锁
|
|
|
SequenceLockHelper.getLock(sequenceLockKey);
|
|
|
|
|
@@ -170,7 +170,7 @@ public class FaceBiopsyController extends ControllerSupport {
|
|
|
public SaveFaceBiopsyResultResp saveFaceBiopsyResult(@RequestBody SaveFaceBiopsyResultReq req) {
|
|
|
User user = getAccessUser();
|
|
|
Long studentId = user.getUserId();
|
|
|
- String sequenceLockKey = Constants.GET_FACE_BIOPSY_INFO_PREFIX + studentId;
|
|
|
+ String sequenceLockKey = CacheConstants.LOCK_GET_FACE_BIOPSY + studentId;
|
|
|
//系统在请求结束后会,自动释放锁,无需手动解锁
|
|
|
SequenceLockHelper.getLock(sequenceLockKey);
|
|
|
|