package com.njcn.prepare.harmonic.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
import lombok.Data;

/**
 * 
 * Description:
 * Date: 2023/5/9  15:43【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */
@Data
@TableName(value = "r_mp_dev_solve_detail")
public class RMpDevSolveDetailPO {
    /**
     * 终端id
     */
    @MppMultiId(value = "device_id")
    private String deviceId;

    /**
     * 生成数据的时间,每天统计一次
     */
    @MppMultiId(value = "data_date")
    private Date dataDate;

    /**
     * 故障时间
     */
    @TableField(value = "break_down_date")
    private Date breakDownDate;

    /**
     * 故障类型
     */
    @TableField(value = "break_down_type")
    private String breakDownType;

    /**
     * 是否消缺(0：否 1：是)
     */
    @TableField(value = "is_solve")
    private String isSolve;

    /**
     * 消缺时间
     */
    @TableField(value = "solve_date")
    private Date solveDate;

    /**
     * 消缺措施
     */
    @TableField(value = "defect_treatment")
    private String defectTreatment;

    /**
     * 缺陷严重度(轻缺陷、较重缺陷和严重缺陷 三类缺陷对应分值为0.02,0.12和0.42，消缺为对应缺陷分值的1/3)
     */
    @TableField(value = "defect_severity")
    private String defectSeverity;

    public static final String COL_DEVICE_ID = "device_id";

    public static final String COL_DATA_DATE = "data_date";

    public static final String COL_BREAK_DOWN_DATE = "break_down_date";

    public static final String COL_BREAK_DOWN_TYPE = "break_down_type";

    public static final String COL_IS_SOLVE = "is_solve";

    public static final String COL_SOLVE_DATE = "solve_date";

    public static final String COL_DEFECT_TREATMENT = "defect_treatment";

    public static final String COL_DEFECT_SEVERITY = "defect_severity";
}