xiangpei
2024-08-19 70dfa087a9f61ecc33f3b5bc618202c2023e38f3
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
package com.ycl.platform.domain.vo;
 
import com.ycl.platform.base.AbsVo;
import com.ycl.platform.domain.entity.Platform;
import org.springframework.lang.NonNull;
import org.springframework.beans.BeanUtils;
import lombok.Data;
import java.util.Date;
 
/**
 * 平台运行监控展示
 *
 * @author xp
 * @since 2024-08-15
 */
@Data
public class PlatformVO extends AbsVo {
 
    /** 平台名称 */
    private String platformName;
 
    /** 平台IP */
    private String platformIP;
 
    private Integer parentId;
 
    /** 平台联系人 */
    private String platformContact;
 
    /** 平台联系人电话 */
    private String platformContactPhone;
 
    /** 状态:1正常 2异常 */
    private Integer status;
 
    /** 行政区域 */
    private String area;
 
    /** 备注 */
    private String remark;
 
    /** 创建时间 */
    private Date createTime;
 
    /** 修改时间 */
    private Date updateTime;
 
    /** 子级数量 */
    private Integer childNum;
 
    public static PlatformVO getVoByEntity(@NonNull Platform entity, PlatformVO vo) {
        if(vo == null) {
            vo = new PlatformVO();
        }
        BeanUtils.copyProperties(entity, vo);
        return vo;
    }
 
}