package com.ruoyi.ehsMaterial.domain;

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 lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物资信息包含  通用应急救援装备”“防汛抗旱应急救援装备”“森林防灭火应急救援装备”“救灾物资”对象 ehs_material
 *
 * @author ruoyi
 * @date 2023-12-04
 */
@Data
@ToString
@NoArgsConstructor
@Accessors(chain = true)
@TableName("ehs_material")
public class EhsMaterial extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type= IdType.AUTO)
    private Long materialId;

    /** 性质 */
    @Excel(name = "性质", readConverterExp = "1=自储,2=社会代储")
    private Long materialType;

    /** 类别 */
    @Excel(name = "物资分类", dictType = "material_class_fast")
    private Long classFirst;

    /** 类别 */
    @Excel(name = "类别")
    private String classSecond;

    /** 物资名称 */
    @Excel(name = "物资名称")
    private String materialName;

    /** 规格/参数 */
    @Excel(name = "规格/参数")
    private String materialSpecs;

    /** 数量 */
    @Excel(name = "数量")
    private String materialQuantity;
    @Excel(name = "待处理出库")
    @TableField(exist = false)
    private String  sendQuantity;
    /** 储备地点 */
    @Excel(name = "储备地点")
    private String reserveLocation;

    /** 管理责任人 */
    @Excel(name = "管理责任人")
    private String managerPerson;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String tel;


    @TableField(exist = false)
    private Integer  isSendQuantity;
    @TableField(exist = false)
    private Long materialDetailId;

    @TableField(exist = false)
    private String classNameKey;

}
