package com.maintain.business.domain.bo;

import com.maintain.common.core.validate.AddGroup;
import com.maintain.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import com.maintain.common.core.domain.BaseEntity;

/**
 * 维修站点-站点-仓库业务对象 erp_warehouse
 *
 * @author liushuai
 * @date 2025-03-25
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpWarehouseBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 仓库编码
     */
    @NotBlank(message = "仓库编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 仓库名称
     */
    @NotBlank(message = "仓库名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 是否启用（0否 1是 默认1）
     */
    private Integer isEnable;

    /**
     * 是否盘点中（0否 1是 默认0）
     */
    private Integer isCheck;
    /**
     * 部门ID
     */
    @NotNull(message = "部门ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 部门名称
     */
    private String deptName;


}
