package com.ruoyi.ems.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.huashe.common.annotation.Excel;
import com.huashe.common.domain.BaseEntity;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 巡检报告对象 adm_op_inspection_report
 */
@Data
public class InspectionReport extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long id;

    @Excel(name = "报告代码")
    private String reportCode;

    @Excel(name = "计划代码")
    private String planCode;

    @Excel(name = "计划名称")
    private String planName;

    @Excel(name = "计划类型", readConverterExp = "1=手动巡检,2=自动巡检")
    private Integer planType;

    private String areaCode;

    @Excel(name = "归属区域")
    private String areaName;

    private Integer targetType;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "执行时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date executeTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date finishTime;

    @Excel(name = "执行人")
    private String executor;

    @Excel(name = "结果状态", readConverterExp = "0=正常,1=异常,2=部分异常")
    private Integer resultStatus;

    @Excel(name = "检查总数")
    private Integer totalCount;

    @Excel(name = "正常数量")
    private Integer normalCount;

    @Excel(name = "异常数量")
    private Integer abnormalCount;

    private String resultSummary;

    private String manualRemark;

    /** 报告明细列表 */
    private List<InspectionReportDetail> details;
}