xiangpei
2024-06-03 ade2140f7950c36b401d434e025bf0b677f2673c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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 {
 
    /** 模板名称 */
    private String name;
 
    /** 试卷科目 */
    private Integer subjectId;
 
    /** 考试时长(分钟) */
    private Integer suggestTime;
 
    /** 单选题数量 */
    private Integer singleChoice;
 
    /** 多选题数量 */
    private Integer multipleChoice;
 
    /** 填空题数量 */
    private Integer gapFilling;
 
    /** 判断数量 */
    private Integer trueFalse;
 
    /** 简答题数量 */
    private Integer shortAnswer;
 
    /** 计算题数量 */
    private Integer calculation;
 
    /** 试卷总分 */
    private Integer score;
 
    /** 多选题扣分方式 */
    private String deductType;
 
    /** 创建人 */
    private Integer createUser;
 
    /** 创建时间 */
    private Date createTime;
 
    /**  */
    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;
    }
 
}