package com.zksy.info.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
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 com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 企业基本信息表
 * @TableName e_enterprise_info
 */
@TableName(value ="e_enterprise_info")
@Data
@ApiModel(value="EEnterpriseInfo对象", description="企业基本信息")
public class EEnterpriseInfo implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "企业唯一标识", position = 1)
    @ExcelIgnore
    private String id;

    /**
     * 企业名称
     */
    @ExcelProperty(value = "企业名称",index = 0)
    @ApiModelProperty(value = "企业全称", position = 2)
    private String enterpriseName;

    /**
     * 地址
     */
    @ExcelProperty(value = "地址",index = 1)
    @ApiModelProperty(value = "企业注册地址", position = 3)
    private String address;

    /**
     * 联系方式
     */
    @ExcelProperty(value = "联系方式",index = 2)
    @ApiModelProperty(value = "企业联系电话", position = 4)
    private String contact;

    /**
     * 法人代表
     */
    @ExcelProperty(value = "法人代表",index = 3)
    @ApiModelProperty(value = "企业法定代表人姓名", position = 5)
    private String legalRepresentative;

    /**
     * 成立日期
     */
    @ExcelProperty(value = "成立日期",index = 4)
    @ApiModelProperty(value = "成立日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate establishmentDate;

    /**
     * 法人代表
     */
    @ExcelProperty(value = "是否规上企业",index = 5)
    @ApiModelProperty(value = "是否规上企业")
    private String isRules;

    /**
     * 法人代表
     */
    @ExcelProperty(value = "是否高新企业",index = 6)
    @ApiModelProperty(value = "是否高新企业")
    private String isHighTech;

    /**
     * 企业介绍
     */
    @ExcelProperty(value = "企业介绍",index = 7)
    @ApiModelProperty(value = "企业介绍")
    private String enterpriseIntroduce;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "记录创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelIgnore
    private LocalDateTime createTime;

    /**
     * 创建人
     */
    @ExcelIgnore
    @ApiModelProperty(value = "创建记录的用户", position = 8)
    private String createBy;

    /**
     * 修改时间
     */
    @ExcelIgnore
    @ApiModelProperty(value = "记录最后修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     * 修改人
     */
    @ExcelIgnore
    @ApiModelProperty(value = "最后修改记录的用户", position = 10)
    private String updateBy;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}