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("engineering_main")
@ApiModel(value = "EngineeringMain实体类", description = "EngineeringMain")
public class EngineeringMain implements Serializable {
    private static final long serialVersionUID = 1L;

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

    @TableField(exist = false)
    @ApiModelProperty(value = "项目主体责任人")
    private List<EngineeringMainPerson> engineeringMainPersonList;

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