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;

/**
 * web-infrastructure
 *
 * @Author zhaokai
 * @Date 2025-12-02 11:13:33
 */
@Data
@TableName("user_corp")
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class UserCorpDO extends BaseDO {
    //业务主键id
    @ApiModelProperty(value = "业务主键id")
    private String userCorpId;
    //用户id
    @ApiModelProperty(value = "用户id")
    private Long userId;
    //企业id
    @ApiModelProperty(value = "企业id")
    private Long corpinfoId;
    //部门id
    @ApiModelProperty(value = "部门id")
    private Long departmentId;
    //岗位id
    @ApiModelProperty(value = "岗位id")
    private Long postId;
    //岗位名称
    @ApiModelProperty(value = "岗位名称")
    private String postName;
    //角色id
    @ApiModelProperty(value = "角色id")
    private Long roleId;
    //人员在部门中的排序
    @ApiModelProperty(value = "人员在部门中的排序")
    private Integer sort;
    //是否部门领导0否1是
    @ApiModelProperty(value = "是否部门领导0否1是")
    private Integer departmentLeaderFlag;
    //入职状态，1-在职 0-离职, 2-入职待审核, 3-离职待审核
    @ApiModelProperty(value = "入职状态，1-在职 0-离职, 2-入职待审核, 3-离职待审核")
    private Integer employmentFlag;

    @ApiModelProperty(value = "企业名称")
    @TableField(exist = false)
    private String corpinfoName;

    @ApiModelProperty(value = "部门名称")
    @TableField(exist = false)
    private String departmentName;

    public UserCorpDO(String userCorpId) {
        this.userCorpId = userCorpId;
    }

}

