package com.zcloud.domain.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 2026-01-27 11:29:09
 */
@Data
@TableName("domain_department_user")
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class DomainDepartmentUserDO extends BaseDO {
    //业务主键id
    @ApiModelProperty(value = "业务主键id")
    private String domainDepartmentUserId;
    //领域部门id
    @ApiModelProperty(value = "领域部门id")
    private String domainDepartmentId;
    //部门id
    @ApiModelProperty(value = "部门id")
    private Long departmentId;
    //人员id
    @ApiModelProperty(value = "人员id")
    private Long userId;

    @ApiModelProperty(value = "部门名称")
    @TableField(exist = false)
    private String departmentName;
    @ApiModelProperty(value = "人员名称")
    @TableField(exist = false)
    private String userName;
    //企业id
    @ApiModelProperty(value = "企业id")
    @TableField(exist = false)
    private Long corpinfoId;
    //企业名称
    @ApiModelProperty(value = "企业名称")
    @TableField(exist = false)
    private String corpinfoName;

    public DomainDepartmentUserDO(String domainDepartmentUserId) {
        this.domainDepartmentUserId = domainDepartmentUserId;
    }

}

