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

import cn.hutool.core.util.StrUtil;
import com.njcn.db.bo.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Description:
 * Date: 2024/5/20  10:32【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */
@Data
public class SupervisionTempLineDebugVO extends BaseEntity {

    private String id;

    @ApiModelProperty(value = "监测点编号")
    private String lineId;

    @ApiModelProperty(value = "监测点名称")
    private String lineName;

    @ApiModelProperty(value = "关联干扰源用户id名称")
    private String userName;

    @ApiModelProperty(value = "接入母线")
    private String connectedBus;

    @ApiModelProperty(value = "监测终端编码")
    private String monitoringTerminalCode;

    @ApiModelProperty(value = "监测终端名称")
    private String monitoringTerminalName;

    @ApiModelProperty(value = "电网侧变电站")
    private String powerSubstationName;

    @ApiModelProperty(value = "调试原因")
    private String reason;

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

    @ApiModelProperty(value = "历史流程实列")
    private String historyInstanceId;

    @ApiModelProperty(value = "1:审批中；2：审批通过；3：审批不通过；4：已取消,5数据同步完成")
    private Integer status;

    @ApiModelProperty(value = "0:未试运行 1：试运行中 2.试运行成功 3.试运行异常")
    private Integer testRunState;

    @ApiModelProperty(value = "试运行时间范围")
    private String testRunTime;

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

    @ApiModelProperty(value = "审核不通过原因")
    private String problemReason;

    @ApiModelProperty(value = "1：技术监督管理；2：在线监测超标问题；3：用户投诉；4：试运行监测点问题")
    private Integer problemType;

    @ApiModelProperty(value = "预告警单问题Id")
    private String problemId;
    @ApiModelProperty(value = "状态：0-未解决 1-已解决")
    private Integer dealState;

    @ApiModelProperty(value = "采取措施")
    private String takeStep;

    @ApiModelProperty(value = "处理成效报告")
    private String reportPath;
    private String reformAdvice;
    public void setTestRunReport(String testRunReport) {
        if (StrUtil.isNotBlank(testRunReport)) {
            this.testRunReport = "/" + testRunReport;
        } else {
            this.testRunReport = testRunReport;

        }
    }
}
