

package com.ruoyi.fire.domain;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * facilities对象 fire_facilities
 *
 * @author Junhua
 * @date 2025-07-15
 */
public class FireFacility extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private transient String statusName;

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }


    /** 设施ID，自增主键 */

    private Long id;

    /** 位置ID（字符串描述，如"A101"） */
    @Excel(name = "位置ID")
    private String locationId;

    /** 设施名称（如"干粉灭火器"） */
    @Excel(name = "设施名称")
    private String facilityName;

    /** 设施类型（如"灭火器/消防栓"） */
    @Excel(name = "设施类型")
    private String facilityType;

    /** 型号规格 */
    @Excel(name = "型号规格")
    private String modelNumber;

    /** 数量（通常≤10，用tinyint节省空间） */
    @Excel(name = "数量")
    private Integer quantity;

    /** 入库时间（默认当前日期） */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库时间",width = 30, dateFormat = "yyyy-MM-dd")
    private Date entryDate;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date productionDate;

    /** 过期日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expiryDate;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    /** 状态（0=正常，1=即将过期，2=已过期，3=维修中，4=已更换，5=已报废） */
    @Excel(name = "状态", dictType = "fire_facility_status")
    private Integer status;

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setLocationId(String locationId)
    {
        this.locationId = locationId;
    }

    public String getLocationId()
    {
        return locationId;
    }
    public void setFacilityName(String facilityName)
    {
        this.facilityName = facilityName;
    }

    public String getFacilityName()
    {
        return facilityName;
    }
    public void setFacilityType(String facilityType)
    {
        this.facilityType = facilityType;
    }

    public String getFacilityType()
    {
        return facilityType;
    }
    public void setModelNumber(String modelNumber)
    {
        this.modelNumber = modelNumber;
    }

    public String getModelNumber()
    {
        return modelNumber;
    }
    public void setQuantity(Integer quantity)
    {
        this.quantity = quantity;
    }

    public Integer getQuantity()
    {
        return quantity;
    }
    public void setEntryDate(Date entryDate)
    {
        this.entryDate = entryDate;
    }

    public Date getEntryDate()
    {
        return entryDate;
    }
    public void setProductionDate(Date productionDate)
    {
        this.productionDate = productionDate;
    }

    public Date getProductionDate()
    {
        return productionDate;
    }
    public void setExpiryDate(Date expiryDate)
    {
        this.expiryDate = expiryDate;
    }

    public Date getExpiryDate()
    {
        return expiryDate;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("locationId", getLocationId())
                .append("facilityName", getFacilityName())
                .append("facilityType", getFacilityType())
                .append("modelNumber", getModelNumber())
                .append("quantity", getQuantity())
                .append("entryDate", getEntryDate())
                .append("productionDate", getProductionDate())
                .append("expiryDate", getExpiryDate())
                .append("status", getStatus())
                .append("remark", getRemark())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }












}
