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;
|
}
|
|
}
|