New file |
| | |
| | | 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.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; |
| | | private String examPaperName; |
| | | |
| | | /** 班级ID */ |
| | | private Integer classesId; |
| | | private String className; |
| | | |
| | | /** 试卷类型 */ |
| | | private Integer examPaperType; |
| | | |
| | | /** 考试地点 */ |
| | | private String examPlace; |
| | | |
| | | /** 考试状态 */ |
| | | private String status; |
| | | |
| | | /** 开始时间 */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date startTime; |
| | | |
| | | /** 结束时间 */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date endTime; |
| | | |
| | | /** 创建时间 */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | 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; |
| | | } |
| | | |
| | | } |