package com.hotwj.platform.resourceManagement.companyChangeHistory.domain.bo;

import com.hotwj.platform.resourceManagement.companyChangeHistory.domain.HotCompanyChangeHistory;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.util.Date;

/**
 * 人员变更历史记录 BO
 *
 * @author shihongwei
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotCompanyChangeHistory.class, reverseConvertGenerate = false)
public class HotCompanyChangeHistoryBo extends BaseEntity {

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

    @NotNull(message = "公司ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long companyId;

    @NotNull(message = "员工ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long employeeId;

    /**
     * 用户名称
     */
    @NotNull(message = "用户名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String name;
    /**
     * 用户手机号
     */
    @NotNull(message = "用户手机号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String phone;

    private String beforeJobName;
    private String afterJobName;
    private Long beforeDeptId;
    private Long afterDeptId;
    private String changeType;
    private Date changeTime;
    private Long operatorId;
    private String operatorName;
    private String changeReason;
    private String beforeBusiness;
    private String beforeAppointmentUrl;
    private String afterAppointmentUrl;
    private Integer isDeleted;
}
