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.Meet;
|
|
import java.util.Date;
|
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;
|
|
/**
|
* 会议表展示
|
*
|
* @author flq
|
* @since 2024-06-17
|
*/
|
@Data
|
public class MeetVO extends AbsVo {
|
|
/** 会议名 */
|
private String meetName;
|
|
/** 会议封面 */
|
private String meetCover;
|
|
/** 班级id */
|
private List<Integer> classesIds;
|
|
/** 老师列表 */
|
private List<Integer> teacherIds;
|
private List<String> teacherNames;
|
/** 老师姓名 */
|
private String teacherNamesStr;
|
/** 开始时间 */
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
private Date startTime;
|
|
/** 结束时间 */
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
private Date endTime;
|
|
/** 状态 0/1/2 未开始/进行中/已结束 */
|
private Integer status;
|
|
|
public static MeetVO getVoByEntity(@NonNull Meet entity, MeetVO vo) {
|
if(vo == null) {
|
vo = new MeetVO();
|
}
|
BeanUtils.copyProperties(entity, vo);
|
return vo;
|
}
|
|
}
|