xiangpei
2024-06-26 44aaa355ecf9430f8b182654d03c2914287bcba6
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.fasterxml.jackson.annotation.JsonFormat;
import com.ycl.jxkg.domain.base.AbsVo;
import com.ycl.jxkg.domain.entity.ExamCheat;
import lombok.Data;
import org.springframework.beans.BeanUtils;
import org.springframework.lang.NonNull;
 
import java.util.Date;
 
/**
 * 考试作弊记录展示
 *
 * @author gonghl
 * @since 2024-06-26
 */
@Data
public class ExamCheatVO extends AbsVo {
 
    /**
     * 考试id
     */
    private Integer examId;
 
    /**
     * 考试名称
     */
    private String examName;
 
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
 
    /**
     * 作弊人
     */
    private Integer cheatUser;
 
    /**
     * 作弊人
     */
    private String cheatUserName;
 
    /**
     * 创建人
     */
    private Integer createUser;
 
    public static ExamCheatVO getVoByEntity(@NonNull ExamCheat entity, ExamCheatVO vo) {
        if (vo == null) {
            vo = new ExamCheatVO();
        }
        BeanUtils.copyProperties(entity, vo);
        return vo;
    }
 
}