龚焕茏
2024-04-08 165541429aa52cb97b2cea18f7701bff2efed1f2
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
package com.ycl.platform.domain.vo;
 
import annotation.Excel;
import com.ycl.platform.base.AbsVo;
 
import com.ycl.platform.domain.entity.YwUnit;
import org.springframework.lang.NonNull;
import org.springframework.beans.BeanUtils;
import lombok.Data;
import lombok.experimental.Accessors;
 
/**
 * 运维单位展示
 *
 * @author xp
 * @since 2024-03-04
 */
@Data
@Accessors(chain = true)
public class YwUnitVO extends AbsVo {
 
    @Excel(name = "单位编码")
    private String unitCode;
 
    @Excel(name = "单位名称")
    private String unitName;
 
    @Excel(name = "单位联系人")
    private String unitContact;
 
    @Excel(name = "单位联系人电话")
    private String unitContactPhone;
 
    @Excel(name = "单位管理员账号")
    private String unitAdminAccount;
 
    @Excel(name = "备注")
    private String remark;
 
    public static YwUnitVO getVoByEntity(@NonNull YwUnit entity, YwUnitVO vo) {
        if(vo == null) {
            vo = new YwUnitVO();
        }
        BeanUtils.copyProperties(entity, vo);
        return vo;
    }
 
}