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 java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.maintain.common.core.domain.BaseEntity;

/**
 * 维修人员-人员业务对象 erp_user
 *
 * @author liushuai
 * @date 2025-03-25
 */

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

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

    /**
     * 人员工号
     */
    @NotBlank(message = "人员工号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String jobNumber;

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

    /**
     * 岗位ID
     */
    @NotNull(message = "岗位ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long postId;

    /**
     * 岗位名称
     */
    private String postName;

    /**
     * 部门ID
     */
    private Long deptId;

    /**
     * 单位名称
     */
    private String deptName;

    /**
     * 站点班组ID
     */
    @NotNull(message = "班组ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long siteGroupId;

    /**
     * 站点班组名称
     */
    private String siteGroupName;

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

    /**
     * 状态（0在岗 1离岗）
     */
    @NotNull(message = "状态（0在岗 1离岗）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer state;

    /**
     * 类型（1维修 2管理 默认1）
     */
    private Integer type;

    /**
     * 创建时间
     */
    private Date  createTime;


}
