package com.nantian.cloud.jljc.entity;

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

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;



/**
 * <p>
 * 节能波动等参数设置
 * </p>
 *
 * @author stz
 * @since 2020-08-05
 */
@Data
@TableName("system_setting")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "节能波动等参数设置")
public class SystemSetting extends Model<SystemSetting>{

    private static final long serialVersionUID = 1L;

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

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

    /**
     * 设置内容
     */
    @ApiModelProperty(value = "设置内容")
    private String setName;

    /**
     * 设置值min
     */
    @ApiModelProperty(value = "设置值min")
    private String minValue;

    /**
     * 设置值max
     */
    @ApiModelProperty(value = "设置值max")
    private String maxValue;

    /**
     * 是否开启
     */
    @ApiModelProperty(value = "是否开启")
    private String flag;

    /**
     * 状态（1：企业异常波动设置，2：数据平衡性设置，3：能耗级别设置）
     */
    @ApiModelProperty(value = "状态，" +
            "1：企业异常波动设置，" +
            "2：数据平衡性设置，" +
            "3：能耗级别设置")
    private Byte status;


    @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 = "部门id")
    private Integer deptId;

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