haogh 1 жил өмнө
parent
commit
52689f8be0

+ 66 - 0
src/main/java/com/qmth/exam/reserve/entity/ApplyTaskEntity.java

@@ -0,0 +1,66 @@
+package com.qmth.exam.reserve.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.qmth.exam.reserve.entity.base.BaseEntity;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+@TableName("t_apply_task")
+public class ApplyTaskEntity extends BaseEntity {
+
+    private static final long serialVersionUID = -3519039143928920038L;
+
+    /**
+     * 是否启用
+     */
+    private Boolean enable;
+
+    /**
+     * 所属机构ID(学校)
+     */
+    private Long orgId;
+
+    /**
+     * 任务名称
+     */
+    private String name;
+
+    /**
+     * 考前多少天,禁止考生自主预约
+     */
+    private Integer allowApplyDays;
+
+    /**
+     * 考前多少天,禁止考生自主取消预约
+     */
+    private Integer allowApplyCancelDays;
+
+    /**
+     * 自主预约起始时间,只能预约本教学点下的考点
+     */
+    private Long selfApplyStartTime;
+
+    /**
+     * 自主预约截止时间,只能预约本教学点下的考点
+     */
+    private Long selfApplyEndTime;
+
+    /**
+     * 开放式预约起始时间,可以在不同教学点间预约
+     */
+    private Long openApplyStartTime;
+
+    /**
+     * 开放式预约截止时间,可以在不同教学点间预约
+     */
+    private Long openApplyEndTime;
+
+    /**
+     * 考试说明
+     */
+    private String notice;
+
+}

+ 51 - 0
src/main/java/com/qmth/exam/reserve/entity/CategoryEntity.java

@@ -0,0 +1,51 @@
+package com.qmth.exam.reserve.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.qmth.exam.reserve.entity.base.BaseEntity;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+@TableName("t_category")
+public class CategoryEntity extends BaseEntity {
+
+    private static final long serialVersionUID = -2643085041792104964L;
+
+    /**
+     * 是否启用
+     */
+    private Boolean enable;
+
+    /**
+     * 所属机构ID(学校)
+     */
+    private Long orgId;
+
+    /**
+     * 父级ID,顶级值为0
+     */
+    private Long parentId;
+
+    /**
+     * 分类代码
+     */
+    private String code;
+
+    /**
+     * 分类名称
+     */
+    private String name;
+
+    /**
+     * 层级,第一级值为1
+     */
+    private Integer level;
+
+    /**
+     * 容量
+     */
+    private Integer capacity;
+
+}

+ 46 - 0
src/main/java/com/qmth/exam/reserve/entity/ExamRoomEntity.java

@@ -0,0 +1,46 @@
+package com.qmth.exam.reserve.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.qmth.exam.reserve.entity.base.BaseEntity;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+@TableName("t_exam_room")
+public class ExamRoomEntity extends BaseEntity {
+
+    private static final long serialVersionUID = 3989318075350506133L;
+
+    /**
+     * 是否启用
+     */
+    private Boolean enable;
+
+    /**
+     * 考场代码
+     */
+    private String code;
+
+    /**
+     * 考场名称
+     */
+    private String name;
+
+    /**
+     * 所属考点ID
+     */
+    private Long examSiteId;
+
+    /**
+     * 考场地址
+     */
+    private String address;
+
+    /**
+     * 机房容量
+     */
+    private Integer capacity;
+
+}

+ 51 - 0
src/main/java/com/qmth/exam/reserve/entity/ExamSiteEntity.java

@@ -0,0 +1,51 @@
+package com.qmth.exam.reserve.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.qmth.exam.reserve.entity.base.BaseEntity;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+@TableName("t_exam_site")
+public class ExamSiteEntity extends BaseEntity {
+
+    private static final long serialVersionUID = 7033132655967035750L;
+
+    /**
+     * 是否启用
+     */
+    private Boolean enable;
+
+    /**
+     * 考点代码
+     */
+    private String code;
+
+    /**
+     * 考点名称
+     */
+    private String name;
+
+    /**
+     * 所属教学点ID
+     */
+    private Long categoryId;
+
+    /**
+     * 容量,考点下所有机房的容量
+     */
+    private Integer capacity;
+
+    /**
+     * 考点地址
+     */
+    private String address;
+
+    /**
+     * 考点指引
+     */
+    private String guide;
+
+}

+ 30 - 0
src/main/java/com/qmth/exam/reserve/entity/OperateLogEntity.java

@@ -0,0 +1,30 @@
+package com.qmth.exam.reserve.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.qmth.exam.reserve.entity.base.BaseEntity;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+@TableName("t_operate_log")
+public class OperateLogEntity extends BaseEntity {
+
+    private static final long serialVersionUID = 5398774092639307418L;
+
+    /**
+     * 操作人ID
+     */
+    private Long operateId;
+
+    /**
+     * 事件类型,如:考生取消预约、用户登录等
+     */
+    private String eventType;
+
+    /**
+     * 操作内容(JSON)
+     */
+    private String content;
+}

+ 25 - 0
src/main/java/com/qmth/exam/reserve/entity/OrgEntity.java

@@ -0,0 +1,25 @@
+package com.qmth.exam.reserve.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.qmth.exam.reserve.entity.base.BaseEntity;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+@TableName("t_org")
+public class OrgEntity extends BaseEntity {
+
+    private static final long serialVersionUID = 8868959852753779018L;
+
+    /**
+     * 是否启用
+     */
+    private Boolean enable;
+
+    /**
+     * 机构名称
+     */
+    private String name;
+}

+ 51 - 0
src/main/java/com/qmth/exam/reserve/entity/StudentApplyEntity.java

@@ -0,0 +1,51 @@
+package com.qmth.exam.reserve.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.qmth.exam.reserve.entity.base.BaseEntity;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+@TableName("t_student_apply")
+public class StudentApplyEntity extends BaseEntity {
+
+    private static final long serialVersionUID = -4784391259546475099L;
+
+    /**
+     * 考生ID
+     */
+    private Long studentId;
+
+    /**
+     * 预约的考点ID
+     */
+    private Long examSiteId;
+
+    /**
+     * 预约的考场ID
+     */
+    private Long examRoomId;
+
+    /**
+     * 预约时段ID
+     */
+    private Long timePeriodId;
+
+    /**
+     * 是否取消预约
+     */
+    private Boolean cancel;
+
+    /**
+     * 准考证号
+     */
+    private String ticketNumber;
+
+    /**
+     * 座位号
+     */
+    private String seatNumber;
+
+}

+ 76 - 0
src/main/java/com/qmth/exam/reserve/entity/StudentEntity.java

@@ -0,0 +1,76 @@
+package com.qmth.exam.reserve.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.qmth.exam.reserve.entity.base.BaseEntity;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+@TableName("t_student")
+public class StudentEntity extends BaseEntity {
+
+    private static final long serialVersionUID = -242115556183519328L;
+
+    /**
+     * 考生姓名
+     */
+    private String name;
+
+    /**
+     * 证件号
+     */
+    private String identityNumber;
+
+    /**
+     * 学号
+     */
+    private String studentCode;
+
+    /**
+     * 头像相对路径
+     */
+    private String photoPath;
+
+    /**
+     * 性别
+     */
+    private String gender;
+
+    /**
+     * 微信OID
+     */
+    private String openId;
+
+    /**
+     * 微信UID
+     */
+    private String uid;
+
+    /**
+     * 所属预约任务ID
+     */
+    private Long applyTaskId;
+
+    /**
+     * 所属教学点ID
+     */
+    private Long categoryId;
+
+    /**
+     * 允许预约时段数量
+     */
+    private Integer applyNumber;
+
+    /**
+     * 预约时段是否全部完成
+     */
+    private Boolean applyFinished;
+
+    /**
+     * 所属机构ID(学校)
+     */
+    private Long orgId;
+
+}

+ 45 - 0
src/main/java/com/qmth/exam/reserve/entity/StudentImportTaskEntity.java

@@ -0,0 +1,45 @@
+package com.qmth.exam.reserve.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.qmth.exam.reserve.entity.base.BaseEntity;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+@TableName("t_student_import_task")
+public class StudentImportTaskEntity extends BaseEntity {
+
+    private static final long serialVersionUID = 1552930673805926851L;
+
+    /**
+     * 操作人ID
+     */
+    private Long operateId;
+
+    /**
+     * 所属预约任务ID
+     */
+    private Long applyTaskId;
+
+    /**
+     * 导入类型
+     */
+    private String type;
+
+    /**
+     * 执行状态
+     */
+    private String status;
+
+    /**
+     * 导入文件相对路径
+     */
+    private String filePath;
+
+    /**
+     * 执行结果信息
+     */
+    private String message;
+}

+ 25 - 0
src/main/java/com/qmth/exam/reserve/entity/SystemPropertyEntity.java

@@ -0,0 +1,25 @@
+package com.qmth.exam.reserve.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.qmth.exam.reserve.entity.base.BaseEntity;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+@TableName("t_system_property")
+public class SystemPropertyEntity extends BaseEntity {
+
+    private static final long serialVersionUID = -2689422702620489674L;
+
+    /**
+     * 属性键
+     */
+    private String key;
+
+    /**
+     * 属性值
+     */
+    private String value;
+}

+ 30 - 0
src/main/java/com/qmth/exam/reserve/entity/TimePeriodEntity.java

@@ -0,0 +1,30 @@
+package com.qmth.exam.reserve.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.qmth.exam.reserve.entity.base.BaseEntity;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+@TableName("t_time_period")
+public class TimePeriodEntity extends BaseEntity {
+
+    private static final long serialVersionUID = -4080658865763412146L;
+
+    /**
+     * 所属预约任务ID
+     */
+    private String applyTaskId;
+
+    /**
+     * 预约起始时间
+     */
+    private Long startTime;
+
+    /**
+     * 预约截止时间
+     */
+    private Long endTime;
+}