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 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;

    /**
     * 库房编号
     */
    @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;

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

    /**
     * 分配比率
     */
    private String extend1;
}
