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