package com.nantian.cloud.jly.entity;

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 org.springframework.beans.factory.annotation.Value;

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

/**
 * <p>
 * 审查依据
 * </p>
 *
 * @author scott
 * @since 2020-08-10
 */
@Data
@TableName("check_basis_file")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = " 审查依据表")
public class CheckBasisFile extends Model<CheckBasisFile> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id")
    @ApiModelProperty(value = "id")
    @Value("")
    private Long id;

    /**
     * 审查计划ID
     */
    @ApiModelProperty(value = "审查计划ID")
    private BigInteger checkPlanId;

    /**
     * 审查计划编号
     */
    @ApiModelProperty(value = "审查计划编号")
    private String reportId;

    /**
     * 审查计划名称
     */
    @ApiModelProperty(value = "审查计划名称")
    private String name;

    /**
     * 部门
     */
    @ApiModelProperty(value = "部门")
    private String dept;

    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间")
    private Date beginTime;

    /**
     * 依据文件
     */
    @ApiModelProperty(value = "依据文件")
    private String basisFile;

    /**
     * 能源计量审查规范记录表文件
     */
    @ApiModelProperty(value = "能源计量审查规范记录表文件")
    private String tableFile;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String comments;


    /**
     * 用户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;

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

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