package com.nantian.cloud.dbcapp.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.baomidou.mybatisplus.annotation.IdType;
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 lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * 延期接入企业-产品指标表
 */
@Data
@TableName("access_product_quota")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "延期接入企业-产品指标表")
public class AccessProductQuota extends Model<AccessProductQuota>{

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Integer id;

    /**
     * 产品名称
     */
    private String productName;

    /**
     * 企业编码
     */
    private String enterpriseCode;

    /**
     * 统计周期
     */
    private String recordDate;

    /**
     * 数值
     */
    private Double dataValue;

    /**
     * 单位
     */
    private String unit;

    /**
     * 用户id
     */
    private Integer userid;

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

    /**
     * 注销状态
     */
    private String delFlag;

    /**
     * 部门id
     */
    private Integer deptId;

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