package com.nantian.cloud.jljc.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;

/**
 * <p>
 * 节能机电设备信息
 * </p>
 *
 * @author scott
 * @since 2020-08-04
 */

@Data
@TableName("conservation_dev_info")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "节能机电设备信息")
public class ConservationDevInfo extends Model<ConservationDevInfo> {

    private static final long serialVersionUID = 1L;

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

    /**
     * 序号
     */
    @ApiModelProperty(value = "序号")
    private Long num;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String devName;

    /**
     * 型号
     */
    @ApiModelProperty(value = "型号")
    private String devType;

    /**
     * 主要技术参数
     */
    @ApiModelProperty(value = "主要技术参数")
    private String devVar;

    /**
     * 类别
     */
    @ApiModelProperty(value = "类别")
    private String types;

    /**
     * 参考文件
     */
    @ApiModelProperty(value = "参考文件")
    private String refFile;

    /**
     * 适用范围
     */
    @ApiModelProperty(value = "适用范围")
    private String energyClass;

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

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