package com.njcn.supervision.pojo.vo.device;

import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.njcn.db.bo.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author hongawen
 * @since 2024-05-21
 */
@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
public class SupervisionTempLineRunTestVO extends BaseEntity{

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 监测点编号，用于区分监测点唯一编号，和监测点主键需要区分，目前认为是pq_line表的监测点id
     */
    private String lineId;

    /**
     * 流程实例的编号
     */
    private String processInstanceId;

    @ApiModelProperty(value = "历史流程实例的编号")
    private String historyInstanceId;

    /**
     * 在线率
     */
    private Double onlineRate;

    /**
     * 数据完整性
     */
    private Double integrityRate;

    /**
     * 数据符合性
     */
    private Double suitRate;

    /**
     * 	1:审批中；2：审批通过；3：审批不通过；4：已取消
     */
    private Integer status;

    /**
     * 状态：0-删除 1-正常
     */
    private Integer state;

    /**
     * 0:未试运行 1：试运行中 2.试运行成功 3.试运行异常
     */
    private Integer testRunState;

    /**
     * 试运行时间范围
     */
    private String testRunTime;


    private String lineName;
    private String userName;
    /**
     * 母线
     */
    private String connectedBus;
    private String monitoringTerminalCode;
    /**
     * 终端名称
     */
    private String monitoringTerminalName;
    private String powerSubstationName;
    private String reason;

    @ApiModelProperty(value = "监测点填报单位")
    private String orgId;



    /**
     * 试运行成功报告地址
     */
    @ApiModelProperty(value = "试运行成功报告地址")
    private String testRunReport;

    public void setTestRunReport(String testRunReport) {
        if (StrUtil.isNotBlank(testRunReport)) {
            this.testRunReport = "/" + testRunReport;
        } else {
            this.testRunReport = testRunReport;

        }
    }
}
