xiangpei
2024-09-01 99b53c056b309b935c8eb23a0ddf244bd4f4df96
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
package com.ycl.platform.domain.vo;
 
import annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ycl.platform.base.AbsVo;
import com.ycl.platform.domain.entity.Report;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.beans.BeanUtils;
import org.springframework.lang.NonNull;
 
import java.util.Date;
import java.util.List;
 
/**
 * 报备展示
 *
 * @author xp
 * @since 2024-03-19
 */
@Data
@Accessors(chain = true)
public class ReportVO extends AbsVo {
 
    /** 运维单位ID */
    private Integer unitId;
    @Excel(name = "运维单位")
    private String unitName;
 
    /** 运维人员ID */
    private Integer peopleId;
    @Excel(name = "报备人员")
    private String peopleName;
 
    /** 设备编码 */
    private String serialNumber;
 
    private String pointId;
 
    @Excel(name = "点位")
    private String pointName;
 
    /** 报备类型 */
    @Excel(name = "报备类型")
    private String reportType;
 
    /** 报备内容 */
    @Excel(name = "报备内容")
    private String reportContent;
 
    /** 上报材料 */
    @Excel(name = "上报材料")
    private String reportMaterials;
 
    /** 故障类型 */
    @Excel(name = "故障类型")
    private String errorType;
 
    private List<String> errorTypeList;
 
    /**
     * 审核结果
     */
    private Boolean result;
 
    /**
     * 审核意见
     */
    private String resultRemark;
 
    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditingTime;
 
    /**
     * 生效时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginCreateTime;
 
    /**
     * 失效时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endCreateTime;
 
    /**
     * 状态
     */
    private Integer status;
 
    public static ReportVO getVoByEntity(@NonNull Report entity, ReportVO vo) {
        if(vo == null) {
            vo = new ReportVO();
        }
        BeanUtils.copyProperties(entity, vo);
        return vo;
    }
 
}