You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

145 lines
2.9 KiB
Java

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.ibeetl.jlw.entity;
import com.ibeetl.admin.core.annotation.Dict;
import com.ibeetl.admin.core.entity.BaseEntity;
import com.ibeetl.admin.core.util.ValidateConfig;
import com.ibeetl.jlw.enums.GeneralResourcesQuestionLogTypeEnum;
import com.ibeetl.jlw.enums.QuestionLogAddTypeEnum;
import lombok.*;
import lombok.experimental.Accessors;
import org.beetl.sql.annotation.entity.AssignID;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
/*
* 题库-通用做题日志
* gen by Spring Boot2 Admin 2022-11-24
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper=false)
public class GeneralQuestionLog extends BaseEntity{
//学生做题日志ID
@NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
// @SeqID(name = ORACLE_CORE_SEQ_NAME)
@AssignID(value = "maskAutoID",param = "com.ibeetl.jlw.entity.GeneralQuestionLog")
private Long generalQuestionLogId ;
//通用题目配置ID
private Long generalQuestionSettingId ;
//题目日志类型(枚举 GeneralResourcesQuestionLogTypeEnum
private GeneralResourcesQuestionLogTypeEnum generalResourcesQuestionLogType ;
//题目快照ID
private Long generalResourcesQuestionSnapshotId ;
//学生提交的答案
private String generalQuestionLogAnswer ;
//附件,学生端上传附件(单文件)
private String generalQuestionLogUploadFile ;
//创建时间
private Date generalQuestionLogAddTime ;
//状态1正常 2删除
@Dict(type="global_status")
private Integer generalQuestionLogStatus ;
// 题目提交类型
private QuestionLogAddTypeEnum questionLogAddType;
//学生ID
private Long studentId ;
//学生得分
private BigDecimal studentScore ;
//题型(1单选 2多选 3判断 4填空 5分析)
private Integer questionType ;
//分值(学生得分)
private BigDecimal questionScore ;
//题干
private String questionStem ;
//选项A
private String questionOptionA ;
//选项B
private String questionOptionB ;
//选项C
private String questionOptionC ;
//选项D
private String questionOptionD ;
//选项E
private String questionOptionE ;
//答案(单选是一个 多选是多个 判断是对错)
private String questionAnswer ;
//解析
private String questionAnalysis ;
//是否收藏夹
private Boolean isTuck ;
//是否错题库
private Boolean isErrorFavorite ;
//修改时间
private Date generalQuestionLogUpdateTime ;
//用时(分钟)
private Long generalQuestionLogFinishTime ;
// 评语
private String generalQuestionLogReply ;
//组织ID
private Long orgId ;
//用户ID
private Long userId ;
}