package com.bonus.material.warehouse.domain;

import com.bonus.common.biz.domain.TreeSelect;
import com.bonus.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import com.bonus.common.core.web.domain.BaseEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 仓库货架配置对象 wh_house_set
 * 
 * @author xsheng
 * @date 2024-09-27
 */


@Data
@ToString
public class WhHouseSet extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 仓库ID */
    @Excel(name = "仓库ID")
    @ApiModelProperty(value = "仓库ID")
    private Long houseId;

    @Excel(name = "仓库名称")
    @ApiModelProperty(value = "仓库名称")
    private String houseName;

    /** 机具类型ID */
    @Excel(name = "机具类型ID")
    @ApiModelProperty(value = "机具类型ID")
    private Long typeId;

    /** 机具ID */
    @Excel(name = "机具ID")
    @ApiModelProperty(value = "机具ID")
    private Long maId;

    /** 数量 */
    @Excel(name = "数量")
    @ApiModelProperty(value = "数量")
    private Long num;

    /** 帐号状态（0正常 1停用） */
    @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 所属上级 */
    @Excel(name = "所属上级")
    @ApiModelProperty(value = "所属上级")
    private Long deptId;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 数据所属组织 */
    @Excel(name = "数据所属组织")
    @ApiModelProperty(value = "数据所属组织")
    private Long companyId;

    /** 货架编号 */
    @Excel(name = "货架编号")
    @ApiModelProperty(value = "货架编号")
    private String shelfNum;

    /**
     * 仓库下物资树
     */
    private List<TreeSelect> treeSelectList = new ArrayList<>();

}
