package com.nantian.cloud.jljc.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("report_date")
@ApiModel(value = "企业类型报告截止日期")
@EqualsAndHashCode(callSuper = true)
public class ReportDate extends Model<ReportDate> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    @ApiModelProperty(value = "企业类型排序")
    private Long id;
    /*int

     */
    @TableField(value = "number")
    @ApiModelProperty(value = "序号")
    private Long  Number;

    /*

    企业类型
     */
    @TableField(value = "company_type")
    @ApiModelProperty(value = "企业类型")
    private  String companyType;


    @TableField(value = "year")
    @ApiModelProperty(value = "年度")
    private  Integer year;
    /*
    年报时长
     */
    @TableField(value = "annual_report_date")
    @ApiModelProperty(value = "年报时长")
    private  String annualReportDate;
    /*
    季报时长
     */
    @TableField(value = "quarterly_report_date")
    @ApiModelProperty(value = "季报时长")
    private String  quarterlyReportDate;
    /*
    月报时长
     */
    @TableField(value = "monthly_report_date")
    @ApiModelProperty(value = "月报时长")
    private String monthlyReportDate;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Integer userid;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 注销状态
     */
    @ApiModelProperty(value = "注销状态（1：未删除，4：已删除）")
    private String delFlag;

    /**
     * 注销状态
     */
    @ApiModelProperty(value = "状态(1：开启，0：关闭)")
    private String status;

    /**
     * 部门id
     */
    @ApiModelProperty(value = "部门id")
    private Integer deptId;

    /**
     * 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
