luohairen
2024-10-29 ea3bcc24543202a55b22623cad8dd8900d550242
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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.ClassesUser;
 
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 xp
 * @since 2024-06-04
 */
@Data
public class ClassesUserVO extends AbsVo {
 
    /**
     * 班级ID
     */
    private Integer classesId;
 
    /**
     * 用户ID
     */
    private Integer userId;
 
    /**
     * 真实姓名
     */
    private String realName;
 
    /**
     * 年龄
     */
    private Integer sex;
 
    /**
     * 电话
     */
    private String phone;
 
    /**
     * 加入时间
     */
    private Date createTime;
    /**
     * 电话
     */
    private String userName;
    /**
     * 电话
     */
    private String age;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birthDay;
    private Integer status;
 
    public static ClassesUserVO getVoByEntity(@NonNull ClassesUser entity, ClassesUserVO vo) {
        if (vo == null) {
            vo = new ClassesUserVO();
        }
        BeanUtils.copyProperties(entity, vo);
        return vo;
    }
 
}