xiangpei
2024-06-11 74b520065c267999e6a4cd61c8f7b0d516931f07
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
package com.ycl.jxkg.domain.vo;
 
import com.ycl.jxkg.domain.base.AbsVo;
import com.ycl.jxkg.domain.entity.Exam;
import java.util.List;
import org.springframework.lang.NonNull;
import org.springframework.beans.BeanUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
 
/**
 * 考试展示
 *
 * @author xp
 * @since 2024-06-11
 */
@Data
public class ExamVO extends AbsVo {
 
    /** 考试名称 */
    private String examName;
 
    /** 试卷ID */
    private Integer examPaperId;
 
    /** 班级ID */
    private Integer classesId;
 
    /** 试卷类型 */
    private String examPaperType;
 
    /** 考试地点 */
    private String examPlace;
 
    /** 考试状态 */
    private String status;
 
    /** 开始时间 */
    private Date startTime;
 
    /** 结束时间 */
    private Date endTime;
 
    /** 创建时间 */
    private Date createTime;
 
    /** 创建老师 */
    private Integer teacherId;
 
    public static ExamVO getVoByEntity(@NonNull Exam entity, ExamVO vo) {
        if(vo == null) {
            vo = new ExamVO();
        }
        BeanUtils.copyProperties(entity, vo);
        return vo;
    }
 
}