fuliqi
2024-03-20 b5ddee040392637abe891ad704249504a08d13b2
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.Report;
import java.util.List;
import java.time.LocalDateTime;
import org.springframework.lang.NonNull;
import org.springframework.beans.BeanUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
 
/**
 * 报备展示
 *
 * @author xp
 * @since 2024-03-19
 */
@Data
@Accessors(chain = true)
public class ReportVO extends AbsVo {
 
    /** 运维单位ID */
    private Integer unitId;
    private String unitName;
 
    /** 运维人员ID */
    private Integer peopleId;
    private String peopleName;
 
    /** 点位ID */
    private Integer pointId;
    private String pointName;
 
    /** 报备类型 */
    private String reportType;
 
    /** 审核时间 */
    private LocalDateTime auditingTime;
 
    /** 报备内容 */
    private String reportContent;
 
    /** 上报材料 */
    private String reportMaterials;
 
    /** 故障类型 */
    private String errorType;
 
    public static ReportVO getVoByEntity(@NonNull Report entity, ReportVO vo) {
        if(vo == null) {
            vo = new ReportVO();
        }
        BeanUtils.copyProperties(entity, vo);
        return vo;
    }
 
}