package org.dromara.zhishu.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.zhishu.domain.TDepot;

import java.io.Serial;
import java.io.Serializable;


/**
 * 仓库信息设置视图对象 t_depot
 *
 * @author Lion Li
 * @date 2025-03-26
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TDepot.class)
public class TDepotVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 仓库id
     */
    @ExcelProperty(value = "一级货区id")
    private Long id;

    /**
     * 仓库编号
     */
    @ExcelProperty(value = "货区编号")
    private String code;

    /**
     * 仓库名称
     */
    @ExcelProperty(value = "一级货区名称")
    private String name;

    /**
     *单位
     */
//    @ExcelProperty(value = "货区单位")
    private String unit;

    /**
     * 仓库地址
     */
    @ExcelProperty(value = "货区地址")
    private String address;

    /**
     * 仓库管理员
     */
    @ExcelProperty(value = "货区管理员")
    private String manager;


    /**
     * 仓库状态（0正常 1停用）
     */
    @ExcelProperty(value = "货区状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 货架数量
     */
    @ExcelProperty(value = "二级货区数量")
    private Long sheQuantityMax;


    /**
     * 已用数量
     */
    @ExcelProperty(value = "已用数量")
    private Long sheNumber;

    /**
     * 用户姓名
     */
    @ExcelProperty(value = "用户姓名")
    private String userName;

    /**
     * 用户id
     */
//    @ExcelProperty(value = "用户id")
    private Long userId;

    /**
     * 是否有下一级
     */
    private Boolean hasChildren;

    private Integer level;


    /**
     * 物流模版Id
     */
    private Long templateId;

    /**
     * 物流模版名称
     */
    private String templateName;

    /**
     * 书品库存
     */
    private Long inventory;

    /**
     * 书品类型数量
     */
    private  Long categoryNumber;
    /**
     * userId
     */
    private Long createBy;



}
