龚焕茏
2024-06-26 541e77765ef787c48c4b0f694b499a4fc5196d6e
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
package com.ycl.jxkg.domain.vo;
 
import com.ycl.jxkg.domain.base.AbsVo;
import com.ycl.jxkg.domain.entity.ExamSubmitTemp;
import lombok.Data;
import org.springframework.beans.BeanUtils;
import org.springframework.lang.NonNull;
 
import java.util.Date;
 
/**
 * 提交试卷临时保存展示
 *
 * @author xp
 * @since 2024-06-13
 */
@Data
public class ExamSubmitTempVO extends AbsVo {
 
    private Integer examId;
 
    private String examName;
 
    private Integer userId;
 
    private String userName;
 
    /** 做题耗时   秒 */
    private Integer doTime;
 
    /** 提交的试卷内容 */
    private String examSubmit;
 
    private Date createTime;
 
    /** 状态:临时、保存 */
    private String status;
 
    /** 状态:临时、完成 */
    private String markPaperStatus;
 
    public static ExamSubmitTempVO getVoByEntity(@NonNull ExamSubmitTemp entity, ExamSubmitTempVO vo) {
        if(vo == null) {
            vo = new ExamSubmitTempVO();
        }
        BeanUtils.copyProperties(entity, vo);
        return vo;
    }
 
}