package com.nantian.cloud.jly.entity;

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 io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * 用能单位能源计量器具准确度等级
 *
 * @author scott
 * @since 2020-08-13
 */
@Data
@TableName("dict_level_request")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "用能单位能源计量器具准确度等级")
public class DictLevelRequest extends Model<DictLevelRequest>  {

    private static final long serialVersionUID = 1L;

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

    /**
     * 计量器具类别
     */
    @ApiModelProperty(value = "计量器具类别")
    private String gaugeClass;

    /**
     * 计量目的1
     */
    @ApiModelProperty(value = "计量目的1")
    private String purpose1;

    /**
     * 计量目的2
     */
    @ApiModelProperty(value = "计量目的2")
    private String purpose2;

    /**
     * 准确度等级要求
     */
    @ApiModelProperty(value = "准确度等级要求")
    private String levelRequest;

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