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