wangwei пре 5 година
родитељ
комит
73d30ccc4f

+ 97 - 0
examcloud-core-examwork-dao/src/main/java/cn/com/qmth/examcloud/core/examwork/dao/entity/ExamSiteBatchEntity.java

@@ -0,0 +1,97 @@
+package cn.com.qmth.examcloud.core.examwork.dao.entity;
+
+import java.util.Date;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.Index;
+import javax.persistence.Table;
+
+import org.springframework.format.annotation.DateTimeFormat;
+
+import cn.com.qmth.examcloud.web.jpa.WithIdJpaEntity;
+
+/**
+ * 考点场次
+ *
+ * @author WANGWEI
+ * @date 2019年10月18日
+ * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
+ */
+@Entity
+@Table(name = "EC_EXAM_SITE_BATCH", indexes = {
+		@Index(name = "IDX_E_S_BATCH_001001", columnList = "examId,siteId", unique = false)})
+public class ExamSiteBatchEntity extends WithIdJpaEntity {
+
+	private static final long serialVersionUID = 7371957453011078961L;
+
+	@Column(nullable = false)
+	private Long rootOrgId;
+
+	/**
+	 * 考试ID
+	 */
+	@Column(nullable = false)
+	private Long examId;
+
+	/**
+	 * 考点ID
+	 */
+	@Column(nullable = false)
+	private Long siteId;
+
+	/**
+	 * 场次可以考试时间段开始时间
+	 */
+	@Column(nullable = false)
+	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+	private Date beginTime;
+
+	/**
+	 * 场次可以考试时间段结束时间
+	 */
+	@Column(nullable = false)
+	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+	private Date endTime;
+
+	public Long getRootOrgId() {
+		return rootOrgId;
+	}
+
+	public void setRootOrgId(Long rootOrgId) {
+		this.rootOrgId = rootOrgId;
+	}
+
+	public Long getExamId() {
+		return examId;
+	}
+
+	public void setExamId(Long examId) {
+		this.examId = examId;
+	}
+
+	public Long getSiteId() {
+		return siteId;
+	}
+
+	public void setSiteId(Long siteId) {
+		this.siteId = siteId;
+	}
+
+	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;
+	}
+
+}

+ 58 - 0
examcloud-core-examwork-dao/src/main/java/cn/com/qmth/examcloud/core/examwork/dao/entity/SiteEntity.java

@@ -0,0 +1,58 @@
+package cn.com.qmth.examcloud.core.examwork.dao.entity;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.Index;
+import javax.persistence.Table;
+
+import cn.com.qmth.examcloud.web.jpa.WithIdAndStatusJpaEntity;
+
+/**
+ * 考点
+ *
+ * @author WANGWEI
+ * @date 2019年10月18日
+ * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
+ */
+@Entity
+@Table(name = "EC_E_SITE", indexes = {
+		@Index(name = "IDX_E_SITE_001001", columnList = "rootOrgId,code", unique = true),
+		@Index(name = "IDX_E_SITE_001002", columnList = "rootOrgId,name", unique = false)})
+public class SiteEntity extends WithIdAndStatusJpaEntity {
+
+	private static final long serialVersionUID = -8373763465850491821L;
+
+	@Column(nullable = false)
+	private Long rootOrgId;
+
+	@Column(nullable = false)
+	private String code;
+
+	@Column(nullable = false)
+	private String name;
+
+	public Long getRootOrgId() {
+		return rootOrgId;
+	}
+
+	public void setRootOrgId(Long rootOrgId) {
+		this.rootOrgId = rootOrgId;
+	}
+
+	public String getCode() {
+		return code;
+	}
+
+	public void setCode(String code) {
+		this.code = code;
+	}
+
+	public String getName() {
+		return name;
+	}
+
+	public void setName(String name) {
+		this.name = name;
+	}
+
+}