package com.aucma.dms.domain;

import com.aucma.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;



/**
 * 停机原因信息对象 dms_base_shut_reason
 *
 * @author Open Platform
 * @date 2024-01-12
 */
public class DmsBaseShutReason extends DmsBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键标识 */
    private Long shutReasonId;

    /** 原因编号 */
    @Excel(name = "原因编号")
    private String reasonCode;

    /** 设备ID，关联dms_base_device_ledger的device_id */
    @Excel(name = "设备ID，关联dms_base_device_ledger的device_id")
    private Long deviceId;

    /** 停机类型,关联dms_base_shut_type的shut_type_id */
    @Excel(name = "停机类型,关联dms_base_shut_type的shut_type_id")
    private Long shutTypeId;

    /** 停机原因 */
    @Excel(name = "停机原因")
    private String shutReason;

    /** 是否标识：1-是；0-否 */
    @Excel(name = "是否标识：1-是；0-否")
    private String isFlag;
    private String  deviceName;

    /** 近90天当前设备使用次数（非持久化字段） */
    private Long deviceFreq;

    /** 近90天当前产线使用次数（非持久化字段） */
    private Long lineFreq;

    /** 近180天全局使用次数（非持久化字段） */
    private Long globalFreq;

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public void setShutReasonId(Long shutReasonId)
    {
        this.shutReasonId = shutReasonId;
    }

    public Long getShutReasonId()
    {
        return shutReasonId;
    }
    public void setReasonCode(String reasonCode)
    {
        this.reasonCode = reasonCode;
    }

    public String getReasonCode()
    {
        return reasonCode;
    }
    public void setDeviceId(Long deviceId)
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId()
    {
        return deviceId;
    }
    public void setShutTypeId(Long shutTypeId)
    {
        this.shutTypeId = shutTypeId;
    }

    public Long getShutTypeId()
    {
        return shutTypeId;
    }
    public void setShutReason(String shutReason)
    {
        this.shutReason = shutReason;
    }

    public String getShutReason()
    {
        return shutReason;
    }
    public void setIsFlag(String isFlag)
    {
        this.isFlag = isFlag;
    }

    public String getIsFlag()
    {
        return isFlag;
    }

    public Long getDeviceFreq()
    {
        return deviceFreq;
    }

    public void setDeviceFreq(Long deviceFreq)
    {
        this.deviceFreq = deviceFreq;
    }

    public Long getLineFreq()
    {
        return lineFreq;
    }

    public void setLineFreq(Long lineFreq)
    {
        this.lineFreq = lineFreq;
    }

    public Long getGlobalFreq()
    {
        return globalFreq;
    }

    public void setGlobalFreq(Long globalFreq)
    {
        this.globalFreq = globalFreq;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("shutReasonId", getShutReasonId())
            .append("reasonCode", getReasonCode())
            .append("deviceId", getDeviceId())
            .append("shutTypeId", getShutTypeId())
            .append("shutReason", getShutReason())
            .append("isFlag", getIsFlag())
            .append("deviceFreq", getDeviceFreq())
            .append("lineFreq", getLineFreq())
            .append("globalFreq", getGlobalFreq())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
