package com.zcloud.basic.info.persistence.dataobject;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jjb.saas.framework.repository.basedo.BaseDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * web-infrastructure
 *
 * @Author zhaokai
 * @Date 2025-12-03 10:21:59
 */
@Data
@TableName("user_corp_record")
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class UserCorpRecordDO extends BaseDO {
    //业务主键id
    @ApiModelProperty(value = "业务主键id")
    private String userCorpRecordId;
    //用户id
    @ApiModelProperty(value = "用户id")
    private Long userId;
    //企业id
    @ApiModelProperty(value = "企业id")
    private Long corpinfoId;
    //企业名称
    @ApiModelProperty(value = "企业名称")
    private String corpinfoName;
    //部门id
    @ApiModelProperty(value = "部门id")
    private Long departmentId;
    //部门名称
    @ApiModelProperty(value = "部门名称")
    private String departmentName;
    //岗位id
    @ApiModelProperty(value = "岗位id")
    private Long postId;
    //岗位名称
    @ApiModelProperty(value = "岗位名称")
    private String postName;
    //是否流动人员，1-流动，0-固定人员
    @ApiModelProperty(value = "是否流动人员，1-流动，0-固定人员")
    private Integer flowFlag;
    //审批状态，1-待审批, 2-通过,3-驳回
    @ApiModelProperty(value = "审批状态，1-待审批, 2-通过,3-驳回")
    private Integer status;
    //入职状态，1-在职 0-离职, 11-入职待审核, 10-离职待审核
    @ApiModelProperty(value = "入职状态，1-在职 0-离职, 11-入职待审核, 10-离职待审核")
    private Integer employmentFlag;
    //开始时间
    @ApiModelProperty(value = "开始时间")
    private LocalDateTime startTime;
    //结束时间
    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;

    //离职原因
    @ApiModelProperty(value = "离职原因")
    private String resignationReason;

    @ApiModelProperty(value = "用户id")
    @TableField(exist = false)
    private String userName;


    public UserCorpRecordDO(String userCorpRecordId) {
        this.userCorpRecordId = userCorpRecordId;
    }

}

