package com.shkj.wms.bo;

import com.shkj.common.core.domain.BaseEntity;
import com.shkj.wms.constants.DictConstants;
import com.shkj.wms.validator.Dict;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;


/**
 * 库别资料分页查询对象 base_storage
 *
 * @author lch
 * @date 2022-04-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BaseStorageQueryListBo extends BaseEntity {


    /**
     * 库房编号
     */
    @NotBlank(message = "库房编号不得为空")
    private String storageCode;

    /**
     * 库别类型
     */
    @Dict(type = DictConstants.DictKey.storage_type,message = "库别类型与数据字典值不匹配")
    private String storageType;

    /**
     * 库别名称
     */
    @NotBlank(message = "库别名称不得为空")
    private String storageName;

    /**
     * 库别状态
     */
    @Dict(type = DictConstants.DictKey.storage_status,message = "库别状态与数据字典值不匹配")
    private String storageStatus;
}
