package com.ycl.jxkg.domain.vo.admin.exam;
|
|
import com.ycl.jxkg.domain.base.AbsVo;
|
import com.ycl.jxkg.domain.entity.ExamTemplate;
|
import lombok.Data;
|
import org.springframework.beans.BeanUtils;
|
import org.springframework.lang.NonNull;
|
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
/**
|
* 随机试卷模板展示
|
*
|
* @author 开发人员名字
|
* @since 2024-06-03
|
*/
|
@Data
|
public class ExamTemplateVO extends AbsVo {
|
|
/** 试卷id */
|
private Integer examPaperId;
|
|
/** 单选题数量 */
|
private Integer singleChoice;
|
|
/** 多选题数量 */
|
private Integer multipleChoice;
|
|
/** 填空题数量 */
|
private Integer gapFilling;
|
|
/** 判断数量 */
|
private Integer trueFalse;
|
|
/** 简答题数量 */
|
private Integer shortAnswer;
|
|
/** 计算题数量 */
|
private Integer calculation;
|
|
/** 单选每题分数 */
|
private BigDecimal singleScore;
|
|
/** 多选每题分数 */
|
private BigDecimal multipleScore;
|
|
/** 填空每题分数 */
|
private BigDecimal gapScore;
|
|
/** 判断每题分数 */
|
private BigDecimal trueFalseScore;
|
|
/** 简答每题分数 */
|
private BigDecimal shortAnswerScore;
|
|
/** 计算每题分数 */
|
private BigDecimal calculationScore;
|
|
public static ExamTemplateVO getVoByEntity(@NonNull ExamTemplate entity, ExamTemplateVO vo) {
|
if(vo == null) {
|
vo = new ExamTemplateVO();
|
}
|
BeanUtils.copyProperties(entity, vo);
|
return vo;
|
}
|
|
}
|