package com.zhgd.xmgl.modules.basicdata.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;
import java.util.List;

/**
 * @Description: 企业主体
 * @author： pds
 * @date： 2023-02-22
 * @version： V1.0
 */
@Data
@TableName("enterprise_main")
@ApiModel(value = "EnterpriseMain实体类", description = "EnterpriseMain")
public class EnterpriseMain implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 企业主体id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "企业主体id(主键ID)")
    private Long id;
    /**
     * 企业主体负责人
     */
    @Excel(name = "企业主体负责人", width = 15)
    @ApiModelProperty(value = "企业主体负责人")
    private String leadName;
    /**
     * 企业主体负责人电话
     */
    @Excel(name = "企业主体负责人电话", width = 15)
    @ApiModelProperty(value = "企业主体负责人电话")
    private String leadTel;
    /**
     * 企业主体类型(1:建设;2:监理;3:施工;4:勘察;5:设计;)
     */
    @Excel(name = "企业主体类型(1:建设;2:监理;3:施工;4:勘察;5:设计;)", width = 15)
    @ApiModelProperty(value = "企业主体类型(1:建设;2:监理;3:施工;4:勘察;5:设计;)")
    private Integer mainType;
    /**
     * 企业sn
     */
    @Excel(name = "企业sn", width = 15)
    @ApiModelProperty(value = "企业sn")
    private String enterpriseSn;

    @TableField(exist = false)
    @ApiModelProperty(value = "企业主体资质信息")
    private List<EnterpriseMainLicense> licenses;
}
