package com.nantian.cloud.jljc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
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;

/**
 * 监察处理建议/复查情况汇总
 * @since 2021-01-14
 */
@Data
@TableName("t_supervision_suggest")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "节能监察对标信息")
public class TSupervisionSuggest extends Model<TSupervisionSuggest> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

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

    /**
     * 监察编号
     */
    @ApiModelProperty(value = "监察编号")
    private String monitorId;

    /**
     * 被监察单位
     */
    @ApiModelProperty(value = "被监察单位")
    private String componentName;

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

    /**
     * 产品或工艺名称
     */
    @ApiModelProperty(value = "产品或工艺名称")
    private String name;

    /**
     * 地区
     */
    @ApiModelProperty(value = "地区")
    private String area;

    /**
     * 违法用能行为
     */
    @ApiModelProperty(value = "违法用能行为")
    private String illegalAct;

    /**
     * 处理建议
     */
    @ApiModelProperty(value = "处理建议")
    private String suggestion;

    /**
     * 处罚依据
     */
    @ApiModelProperty(value = "处罚依据")
    private String basis;

    /**
     * 是否复查(0:否，1：是)
     */
    @ApiModelProperty(value = "是否复查(0:否，1：是)")
    private Integer reviewType;

    /**
     * 复查情况
     */
    @ApiModelProperty(value = "复查情况")
    private String reviewSituation;

    @TableField(exist = false)
    private String region;

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