|
|
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.BusinessCourseInfoEnum;
|
|
|
import lombok.*;
|
|
|
import lombok.experimental.Accessors;
|
|
|
import org.beetl.sql.annotation.entity.AssignID;
|
|
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
|
/*
|
|
|
* 资源管理 - 题库管理-通用快照
|
|
|
* gen by Spring Boot2 Admin 2022-11-24
|
|
|
*/
|
|
|
@Data
|
|
|
@Builder
|
|
|
@NoArgsConstructor
|
|
|
@AllArgsConstructor
|
|
|
@Accessors(chain = true)
|
|
|
@EqualsAndHashCode(callSuper=false)
|
|
|
public class GeneralResourcesQuestionSnapshot extends BaseEntity{
|
|
|
|
|
|
//通用题目快照ID
|
|
|
@NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
|
|
|
// @SeqID(name = ORACLE_CORE_SEQ_NAME)
|
|
|
@AssignID(value = "maskAutoID",param = "com.ibeetl.jlw.entity.GeneralResourcesQuestionSnapshot")
|
|
|
|
|
|
private Long generalResourcesQuestionSnapshotId ;
|
|
|
|
|
|
//通用题目配置ID
|
|
|
|
|
|
private Long generalQuestionSettingId ;
|
|
|
|
|
|
//业务课程ID
|
|
|
|
|
|
private Long businessCourseInfoId ;
|
|
|
|
|
|
//业务课程类型
|
|
|
|
|
|
private BusinessCourseInfoEnum businessCourseInfoType ;
|
|
|
|
|
|
//题型(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 ;
|
|
|
|
|
|
//题目状态 (1上架, 2下架)
|
|
|
@Dict(type="up_status")
|
|
|
|
|
|
private Integer questionStatus ;
|
|
|
|
|
|
//后台用户ID
|
|
|
|
|
|
private Long userId ;
|
|
|
|
|
|
//组织机构ID
|
|
|
|
|
|
private Long orgId ;
|
|
|
|
|
|
/**
|
|
|
* 隐藏答案
|
|
|
*/
|
|
|
public void hideAnswer() {
|
|
|
setQuestionAnswer(null);
|
|
|
}
|
|
|
|
|
|
public Long getGeneralResourcesQuestionSnapshotId() {
|
|
|
return generalResourcesQuestionSnapshotId;
|
|
|
}
|
|
|
|
|
|
public void setGeneralResourcesQuestionSnapshotId(Long generalResourcesQuestionSnapshotId) {
|
|
|
this.generalResourcesQuestionSnapshotId = generalResourcesQuestionSnapshotId;
|
|
|
}
|
|
|
}
|