|
@@ -1,14 +1,16 @@
|
|
package cn.com.qmth.examcloud.core.examwork.service.bean;
|
|
package cn.com.qmth.examcloud.core.examwork.service.bean;
|
|
|
|
|
|
-import cn.com.qmth.examcloud.api.commons.enums.ExamSpecialSettingsType;
|
|
|
|
-import cn.com.qmth.examcloud.api.commons.enums.ExamType;
|
|
|
|
-import cn.com.qmth.examcloud.api.commons.exchange.JsonSerializable;
|
|
|
|
|
|
+import java.util.Date;
|
|
|
|
+import java.util.Map;
|
|
|
|
|
|
import javax.persistence.EnumType;
|
|
import javax.persistence.EnumType;
|
|
import javax.persistence.Enumerated;
|
|
import javax.persistence.Enumerated;
|
|
import javax.validation.constraints.NotNull;
|
|
import javax.validation.constraints.NotNull;
|
|
-import java.util.Date;
|
|
|
|
-import java.util.Map;
|
|
|
|
|
|
+
|
|
|
|
+import cn.com.qmth.examcloud.api.commons.enums.ExamSpecialSettingsType;
|
|
|
|
+import cn.com.qmth.examcloud.api.commons.enums.ExamType;
|
|
|
|
+import cn.com.qmth.examcloud.api.commons.exchange.JsonSerializable;
|
|
|
|
+import cn.com.qmth.examcloud.core.examwork.base.enums.CallType;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 类注释
|
|
* 类注释
|
|
@@ -19,190 +21,203 @@ import java.util.Map;
|
|
*/
|
|
*/
|
|
public class ExamInfo implements JsonSerializable {
|
|
public class ExamInfo implements JsonSerializable {
|
|
|
|
|
|
- private static final long serialVersionUID = 4009839764353162256L;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 顶级机构Id
|
|
|
|
- */
|
|
|
|
- private Long rootOrgId;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 考试批次开始时间
|
|
|
|
- */
|
|
|
|
- private Date beginTime;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 考试批次结束时间
|
|
|
|
- */
|
|
|
|
- private Date endTime;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 考试名称
|
|
|
|
- */
|
|
|
|
- @NotNull
|
|
|
|
- private String name;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 考试编码
|
|
|
|
- */
|
|
|
|
- private String code;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 考试类型
|
|
|
|
- */
|
|
|
|
- @Enumerated(EnumType.STRING)
|
|
|
|
- private ExamType examType;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 考试时长
|
|
|
|
- */
|
|
|
|
- private Integer duration;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 是否可用
|
|
|
|
- */
|
|
|
|
- private Boolean enable;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 考试备注
|
|
|
|
- */
|
|
|
|
- private String remark;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 考试次数
|
|
|
|
- */
|
|
|
|
- private Long examTimes;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 是否禁止考试
|
|
|
|
- */
|
|
|
|
- private Boolean examLimit;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 开启特殊设置
|
|
|
|
- */
|
|
|
|
- private Boolean specialSettingsEnabled;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 特殊设置类型
|
|
|
|
- */
|
|
|
|
- private ExamSpecialSettingsType specialSettingsType;
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 考试属性
|
|
|
|
- */
|
|
|
|
- private Map<String, String> properties;
|
|
|
|
-
|
|
|
|
- public Long getRootOrgId() {
|
|
|
|
- return rootOrgId;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setRootOrgId(Long rootOrgId) {
|
|
|
|
- this.rootOrgId = rootOrgId;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public Date getBeginTime() {
|
|
|
|
- return beginTime;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setBeginTime(Date beginTime) {
|
|
|
|
- this.beginTime = beginTime;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public Date getEndTime() {
|
|
|
|
- return endTime;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setEndTime(Date endTime) {
|
|
|
|
- this.endTime = endTime;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String getName() {
|
|
|
|
- return name;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setName(String name) {
|
|
|
|
- this.name = name;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String getCode() {
|
|
|
|
- return code;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setCode(String code) {
|
|
|
|
- this.code = code;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public ExamType getExamType() {
|
|
|
|
- return examType;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setExamType(ExamType examType) {
|
|
|
|
- this.examType = examType;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public Integer getDuration() {
|
|
|
|
- return duration;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setDuration(Integer duration) {
|
|
|
|
- this.duration = duration;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public Boolean getEnable() {
|
|
|
|
- return enable;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setEnable(Boolean enable) {
|
|
|
|
- this.enable = enable;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String getRemark() {
|
|
|
|
- return remark;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setRemark(String remark) {
|
|
|
|
- this.remark = remark;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public Long getExamTimes() {
|
|
|
|
- return examTimes;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setExamTimes(Long examTimes) {
|
|
|
|
- this.examTimes = examTimes;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public Boolean getExamLimit() {
|
|
|
|
- return examLimit;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setExamLimit(Boolean examLimit) {
|
|
|
|
- this.examLimit = examLimit;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public Map<String, String> getProperties() {
|
|
|
|
- return properties;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setProperties(Map<String, String> properties) {
|
|
|
|
- this.properties = properties;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public Boolean getSpecialSettingsEnabled() {
|
|
|
|
- return specialSettingsEnabled;
|
|
|
|
- }
|
|
|
|
|
|
+ private static final long serialVersionUID = 4009839764353162256L;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 顶级机构Id
|
|
|
|
+ */
|
|
|
|
+ private Long rootOrgId;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 考试批次开始时间
|
|
|
|
+ */
|
|
|
|
+ private Date beginTime;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 考试批次结束时间
|
|
|
|
+ */
|
|
|
|
+ private Date endTime;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 考试名称
|
|
|
|
+ */
|
|
|
|
+ @NotNull
|
|
|
|
+ private String name;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 考试编码
|
|
|
|
+ */
|
|
|
|
+ private String code;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 考试类型
|
|
|
|
+ */
|
|
|
|
+ @Enumerated(EnumType.STRING)
|
|
|
|
+ private ExamType examType;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 考试时长
|
|
|
|
+ */
|
|
|
|
+ private Integer duration;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 是否可用
|
|
|
|
+ */
|
|
|
|
+ private Boolean enable;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 考试备注
|
|
|
|
+ */
|
|
|
|
+ private String remark;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 考试次数
|
|
|
|
+ */
|
|
|
|
+ private Long examTimes;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 是否禁止考试
|
|
|
|
+ */
|
|
|
|
+ private Boolean examLimit;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 开启特殊设置
|
|
|
|
+ */
|
|
|
|
+ private Boolean specialSettingsEnabled;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 特殊设置类型
|
|
|
|
+ */
|
|
|
|
+ private ExamSpecialSettingsType specialSettingsType;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 考试属性
|
|
|
|
+ */
|
|
|
|
+ private Map<String, String> properties;
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 抽题模式
|
|
|
|
+ */
|
|
|
|
+ private CallType callType;
|
|
|
|
+
|
|
|
|
+ public Long getRootOrgId() {
|
|
|
|
+ return rootOrgId;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setRootOrgId(Long rootOrgId) {
|
|
|
|
+ this.rootOrgId = rootOrgId;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Date getBeginTime() {
|
|
|
|
+ return beginTime;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setBeginTime(Date beginTime) {
|
|
|
|
+ this.beginTime = beginTime;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Date getEndTime() {
|
|
|
|
+ return endTime;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setEndTime(Date endTime) {
|
|
|
|
+ this.endTime = endTime;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getName() {
|
|
|
|
+ return name;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setName(String name) {
|
|
|
|
+ this.name = name;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getCode() {
|
|
|
|
+ return code;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setCode(String code) {
|
|
|
|
+ this.code = code;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public ExamType getExamType() {
|
|
|
|
+ return examType;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setExamType(ExamType examType) {
|
|
|
|
+ this.examType = examType;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Integer getDuration() {
|
|
|
|
+ return duration;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setDuration(Integer duration) {
|
|
|
|
+ this.duration = duration;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Boolean getEnable() {
|
|
|
|
+ return enable;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setEnable(Boolean enable) {
|
|
|
|
+ this.enable = enable;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getRemark() {
|
|
|
|
+ return remark;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setRemark(String remark) {
|
|
|
|
+ this.remark = remark;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Long getExamTimes() {
|
|
|
|
+ return examTimes;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setExamTimes(Long examTimes) {
|
|
|
|
+ this.examTimes = examTimes;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Boolean getExamLimit() {
|
|
|
|
+ return examLimit;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setExamLimit(Boolean examLimit) {
|
|
|
|
+ this.examLimit = examLimit;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Map<String, String> getProperties() {
|
|
|
|
+ return properties;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setProperties(Map<String, String> properties) {
|
|
|
|
+ this.properties = properties;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Boolean getSpecialSettingsEnabled() {
|
|
|
|
+ return specialSettingsEnabled;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setSpecialSettingsEnabled(Boolean specialSettingsEnabled) {
|
|
|
|
+ this.specialSettingsEnabled = specialSettingsEnabled;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public ExamSpecialSettingsType getSpecialSettingsType() {
|
|
|
|
+ return specialSettingsType;
|
|
|
|
+ }
|
|
|
|
|
|
- public void setSpecialSettingsEnabled(Boolean specialSettingsEnabled) {
|
|
|
|
- this.specialSettingsEnabled = specialSettingsEnabled;
|
|
|
|
- }
|
|
|
|
|
|
+ public void setSpecialSettingsType(ExamSpecialSettingsType specialSettingsType) {
|
|
|
|
+ this.specialSettingsType = specialSettingsType;
|
|
|
|
+ }
|
|
|
|
|
|
- public ExamSpecialSettingsType getSpecialSettingsType() {
|
|
|
|
- return specialSettingsType;
|
|
|
|
- }
|
|
|
|
|
|
+ public CallType getCallType() {
|
|
|
|
+ return callType;
|
|
|
|
+ }
|
|
|
|
|
|
- public void setSpecialSettingsType(ExamSpecialSettingsType specialSettingsType) {
|
|
|
|
- this.specialSettingsType = specialSettingsType;
|
|
|
|
- }
|
|
|
|
|
|
+ public void setCallType(CallType callType) {
|
|
|
|
+ this.callType = callType;
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|