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;
|
}
|
|
}
|