package com.shkj.wms.bo;

import com.shkj.wms.constants.DictConstants;
import com.shkj.wms.validator.Dict;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 库别资料对象
 *
 * @author lch
 * @date 2022-04-23
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class BaseStorageSaveOrUpdateBo implements Serializable {

private static final long serialVersionUID=1L;

    /**
     *  库别信息id (正常值为修改 反之新增)
     */
    private Long id;

    /**
     * 所属仓库
     */
    @NotNull(message = "仓库不得为空")
    private Long branchId;

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

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

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

    /**
     *状态是否启用 1启用 0不启用
     */
    private  String isActivity;

    /**
     * 备注
     */
    private String remark;

    /**
     * 库房状态
     */
    private String storageStatus;

}
