xiangpei
2024-10-30 b7273d6fc94ae5e14f5a911d8b8b88cb7c848264
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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;
    }
 
}