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_group
 *
 * @author liushuai
 * @date 2025-03-25
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpGroupBo 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;
    /**
     * 部门ID
     */
    @NotNull(message = "部门ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

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

}
