123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- package com.ruoyi.sim.domain;
- import java.util.Date;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import org.apache.commons.lang3.builder.ToStringBuilder;
- import org.apache.commons.lang3.builder.ToStringStyle;
- import com.ruoyi.common.annotation.Excel;
- import com.ruoyi.common.core.domain.BaseEntity;
- /**
- * 考试对象 sim_real_exam
- * <p>
- * <p>
- * 教员常量密码:JY2025@wwee
- *
- * @author tom
- * @date 2024-12-15
- */
- public class RealExam extends BaseEntity {
- private static final long serialVersionUID = 1L;
- /**
- * 考试ID
- */
- private Long examId;
- /**
- * 考试集合ID
- */
- @Excel(name = "考试集合ID")
- private Long examCollectionId;
- /**
- * 模拟器类型
- */
- @Excel(name = "模拟器类型")
- private String simType;
- /**
- * 学员ID/用户ID
- */
- @Excel(name = "学员ID/用户ID")
- private Long userId;
- /**
- * 座ID
- */
- @Excel(name = "座ID")
- private Long seatId;
- /**
- * 模拟器ID
- */
- @Excel(name = "模拟器ID")
- private Long simId;
- /**
- * 考试状态:[0]-未登录,[1]-已登录,[2]-模拟器检查并下发故障中,[3]:模拟器检查OK可开考,[4]-答题中,[5]-已交卷,[6]-计算成绩中,[7]-获取到成绩报告,[80]-教师标记缺考,[81]-登录未开始答题,[90]-模拟器异常结束
- */
- @Excel(name = "考试状态:[0]-未登录,[1]-已登录,[2]-模拟器检查并下发故障中,[3]:模拟器检查OK可开考,[4]-答题中,[5]-已交卷,[6]-计算成绩中,[7]-获取到成绩报告,[80]-教师标记缺考,[81]-登录未开始答题,[90]-模拟器异常结束")
- private String examStatus;
- /**
- * 总分:累加扣分和计算出总分
- */
- @Excel(name = "总分:累加扣分和计算出总分")
- private Long totalScore;
- /**
- * 扣分总计,不计超时扣分
- */
- @Excel(name = "扣分总计,不计超时扣分")
- private Long deductionTotalScore;
- /**
- * 考试实际开始时间(毫秒)
- */
- @JsonFormat(pattern = "yyyy-MM-dd")
- @Excel(name = "考试实际开始时间(毫秒)", width = 30, dateFormat = "yyyy-MM-dd")
- private Date startTime;
- /**
- * 考试实际结束时间(毫秒)
- */
- @JsonFormat(pattern = "yyyy-MM-dd")
- @Excel(name = "考试实际结束时间(毫秒)", width = 30, dateFormat = "yyyy-MM-dd")
- private Date endTime;
- /**
- * 登录时间
- */
- @JsonFormat(pattern = "yyyy-MM-dd")
- @Excel(name = "登录时间", width = 30, dateFormat = "yyyy-MM-dd")
- private Date loginTime;
- /**
- * 登出时间
- */
- @JsonFormat(pattern = "yyyy-MM-dd")
- @Excel(name = "登出时间", width = 30, dateFormat = "yyyy-MM-dd")
- private Date logoutTime;
- public void setExamId(Long examId) {
- this.examId = examId;
- }
- public Long getExamId() {
- return examId;
- }
- public void setExamCollectionId(Long examCollectionId) {
- this.examCollectionId = examCollectionId;
- }
- public Long getExamCollectionId() {
- return examCollectionId;
- }
- public void setSimType(String simType) {
- this.simType = simType;
- }
- public String getSimType() {
- return simType;
- }
- public void setUserId(Long userId) {
- this.userId = userId;
- }
- public Long getUserId() {
- return userId;
- }
- public void setSeatId(Long seatId) {
- this.seatId = seatId;
- }
- public Long getSeatId() {
- return seatId;
- }
- public void setSimId(Long simId) {
- this.simId = simId;
- }
- public Long getSimId() {
- return simId;
- }
- public void setExamStatus(String examStatus) {
- this.examStatus = examStatus;
- }
- public String getExamStatus() {
- return examStatus;
- }
- public void setTotalScore(Long totalScore) {
- this.totalScore = totalScore;
- }
- public Long getTotalScore() {
- return totalScore;
- }
- public void setDeductionTotalScore(Long deductionTotalScore) {
- this.deductionTotalScore = deductionTotalScore;
- }
- public Long getDeductionTotalScore() {
- return deductionTotalScore;
- }
- public void setStartTime(Date startTime) {
- this.startTime = startTime;
- }
- public Date getStartTime() {
- return startTime;
- }
- public void setEndTime(Date endTime) {
- this.endTime = endTime;
- }
- public Date getEndTime() {
- return endTime;
- }
- public void setLoginTime(Date loginTime) {
- this.loginTime = loginTime;
- }
- public Date getLoginTime() {
- return loginTime;
- }
- public void setLogoutTime(Date logoutTime) {
- this.logoutTime = logoutTime;
- }
- public Date getLogoutTime() {
- return logoutTime;
- }
- @Override
- public String toString() {
- return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
- .append("examId", getExamId())
- .append("examCollectionId", getExamCollectionId())
- .append("simType", getSimType())
- .append("userId", getUserId())
- .append("seatId", getSeatId())
- .append("simId", getSimId())
- .append("examStatus", getExamStatus())
- .append("totalScore", getTotalScore())
- .append("deductionTotalScore", getDeductionTotalScore())
- .append("startTime", getStartTime())
- .append("endTime", getEndTime())
- .append("loginTime", getLoginTime())
- .append("logoutTime", getLogoutTime())
- .append("createBy", getCreateBy())
- .append("createTime", getCreateTime())
- .append("updateBy", getUpdateBy())
- .append("updateTime", getUpdateTime())
- .append("remark", getRemark())
- .toString();
- }
- // -------------------------------- tom add --------------------------------
- public static long EXAM_TIMEOUT_LIMIT = 1000 * 60 * 5;
- public interface State {
- String NOT_LOGGED_IN = "0";
- String LOGGED_IN = "1";
- String SIM_WRITING = "2";
- String SIM_PREPARE_OK = "3";
- String ANSWERING = "4";
- String SUBMITTED = "5";
- String CALCULATING_SCORE = "6";
- String GOT_REPORT = "7";
- String ABSENCE_BY_TEACHER = "80";
- String LOGIN_NOT_STARTED_ANSWERING_QUESTIONS = "81";
- String SIMULATOR_ERROR = "90";
- }
- }
|