|
@@ -50,9 +50,9 @@ import cn.com.qmth.examcloud.commons.helpers.DynamicEnum;
|
|
import cn.com.qmth.examcloud.commons.helpers.DynamicEnumManager;
|
|
import cn.com.qmth.examcloud.commons.helpers.DynamicEnumManager;
|
|
import cn.com.qmth.examcloud.commons.helpers.poi.ExcelWriter;
|
|
import cn.com.qmth.examcloud.commons.helpers.poi.ExcelWriter;
|
|
import cn.com.qmth.examcloud.commons.util.DateUtil;
|
|
import cn.com.qmth.examcloud.commons.util.DateUtil;
|
|
|
|
+import cn.com.qmth.examcloud.commons.util.DateUtil.DatePatterns;
|
|
import cn.com.qmth.examcloud.commons.util.JsonUtil;
|
|
import cn.com.qmth.examcloud.commons.util.JsonUtil;
|
|
import cn.com.qmth.examcloud.commons.util.RegExpUtil;
|
|
import cn.com.qmth.examcloud.commons.util.RegExpUtil;
|
|
-import cn.com.qmth.examcloud.commons.util.DateUtil.DatePatterns;
|
|
|
|
import cn.com.qmth.examcloud.core.basic.api.OrgCloudService;
|
|
import cn.com.qmth.examcloud.core.basic.api.OrgCloudService;
|
|
import cn.com.qmth.examcloud.core.basic.api.StudentCloudService;
|
|
import cn.com.qmth.examcloud.core.basic.api.StudentCloudService;
|
|
import cn.com.qmth.examcloud.core.basic.api.bean.OrgBean;
|
|
import cn.com.qmth.examcloud.core.basic.api.bean.OrgBean;
|
|
@@ -71,19 +71,19 @@ import cn.com.qmth.examcloud.core.examwork.dao.ExamCourseGroupRelationRepo;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.ExamCourseGroupSettingsRepo;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.ExamCourseGroupSettingsRepo;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.ExamCourseRelationRepo;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.ExamCourseRelationRepo;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.ExamOrgPropertyRepo;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.ExamOrgPropertyRepo;
|
|
-import cn.com.qmth.examcloud.core.examwork.dao.ExamSpecialSettingsRepo;
|
|
|
|
import cn.com.qmth.examcloud.core.examwork.dao.ExamPaperTypeRelationRepo;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.ExamPaperTypeRelationRepo;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.ExamPropertyRepo;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.ExamPropertyRepo;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.ExamRepo;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.ExamRepo;
|
|
|
|
+import cn.com.qmth.examcloud.core.examwork.dao.ExamSpecialSettingsRepo;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.ExamStudentRepo;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.ExamStudentRepo;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.entity.ExamCourseGroupRelationEntity;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.entity.ExamCourseGroupRelationEntity;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.entity.ExamCourseGroupSettingsEntity;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.entity.ExamCourseGroupSettingsEntity;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.entity.ExamCourseRelationEntity;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.entity.ExamCourseRelationEntity;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.entity.ExamEntity;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.entity.ExamEntity;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.entity.ExamOrgPropertyEntity;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.entity.ExamOrgPropertyEntity;
|
|
-import cn.com.qmth.examcloud.core.examwork.dao.entity.ExamSpecialSettingsEntity;
|
|
|
|
import cn.com.qmth.examcloud.core.examwork.dao.entity.ExamPaperTypeRelationEntity;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.entity.ExamPaperTypeRelationEntity;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.entity.ExamPropertyEntity;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.entity.ExamPropertyEntity;
|
|
|
|
+import cn.com.qmth.examcloud.core.examwork.dao.entity.ExamSpecialSettingsEntity;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.entity.ExamStudentEntity;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.entity.ExamStudentEntity;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.enums.ExamType;
|
|
import cn.com.qmth.examcloud.core.examwork.dao.enums.ExamType;
|
|
import cn.com.qmth.examcloud.core.examwork.service.bean.ExamInfo;
|
|
import cn.com.qmth.examcloud.core.examwork.service.bean.ExamInfo;
|
|
@@ -96,7 +96,7 @@ import cn.com.qmth.examcloud.core.oe.admin.api.response.CheckExamIsStartedResp;
|
|
import cn.com.qmth.examcloud.task.api.DataSyncCloudService;
|
|
import cn.com.qmth.examcloud.task.api.DataSyncCloudService;
|
|
import cn.com.qmth.examcloud.task.api.request.SyncExamReq;
|
|
import cn.com.qmth.examcloud.task.api.request.SyncExamReq;
|
|
import cn.com.qmth.examcloud.web.config.SystemConfig;
|
|
import cn.com.qmth.examcloud.web.config.SystemConfig;
|
|
-import cn.com.qmth.examcloud.web.enums.DataExecutionStatus;
|
|
|
|
|
|
+import cn.com.qmth.examcloud.web.enums.CURD;
|
|
import cn.com.qmth.examcloud.web.helpers.page.PageInfo;
|
|
import cn.com.qmth.examcloud.web.helpers.page.PageInfo;
|
|
import cn.com.qmth.examcloud.web.redis.RedisClient;
|
|
import cn.com.qmth.examcloud.web.redis.RedisClient;
|
|
import cn.com.qmth.examcloud.web.security.bean.User;
|
|
import cn.com.qmth.examcloud.web.security.bean.User;
|
|
@@ -507,7 +507,7 @@ public class ExamController extends ControllerSupport {
|
|
@ApiOperation(value = "新增考试批次", notes = "新增")
|
|
@ApiOperation(value = "新增考试批次", notes = "新增")
|
|
@PostMapping()
|
|
@PostMapping()
|
|
public ExamEntity addExam(@RequestBody ExamDomain domain) {
|
|
public ExamEntity addExam(@RequestBody ExamDomain domain) {
|
|
- return saveExam(domain, DataExecutionStatus.CREATION);
|
|
|
|
|
|
+ return saveExam(domain, CURD.CREATION);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -520,7 +520,7 @@ public class ExamController extends ControllerSupport {
|
|
@ApiOperation(value = "更新考试批次", notes = "更新")
|
|
@ApiOperation(value = "更新考试批次", notes = "更新")
|
|
@PutMapping()
|
|
@PutMapping()
|
|
public ExamEntity updateExam(@RequestBody ExamDomain domain) {
|
|
public ExamEntity updateExam(@RequestBody ExamDomain domain) {
|
|
- return saveExam(domain, DataExecutionStatus.UPDATE);
|
|
|
|
|
|
+ return saveExam(domain, CURD.UPDATE);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -530,7 +530,7 @@ public class ExamController extends ControllerSupport {
|
|
* @param domain
|
|
* @param domain
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- private ExamEntity saveExam(ExamDomain domain, DataExecutionStatus es) {
|
|
|
|
|
|
+ private ExamEntity saveExam(ExamDomain domain, CURD es) {
|
|
trim(domain, false);
|
|
trim(domain, false);
|
|
|
|
|
|
User accessUser = getAccessUser();
|
|
User accessUser = getAccessUser();
|