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.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

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

/**
 * 节能监察单位产品任务列表
 * @since 2020-11-25
 */
@Data
@TableName("t_supervision_unit_energy_task")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "节能监察单位产品任务列表")
@NoArgsConstructor
@AllArgsConstructor
public class TSupervisionUnitEnergyTask extends  Model<TSupervisionUnitEnergyTask>{

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "pid")
    private Integer pid;

    @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;

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

    @ApiModelProperty(value = "产品编号t_supervision_unit_energy")
    private Integer unitEnergyId;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "完成状态（1是，0否）")
    private String status;

    @ApiModelProperty(value = "选择状态（1是，0否）")
    private String status2;

    @ApiModelProperty(value = "特征码")
    private String codes;

    @ApiModelProperty(value = "年份")
    private String year;

    @ApiModelProperty(value = "名称")
    private String processName;

    @ApiModelProperty(value = "工序/工艺")
    private String process;

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

    public TSupervisionUnitEnergyTask(Integer pid, String status, String status2, String codes, String name, String process, String processName, String monitorId, String year) {
        this.pid = pid;
        this.status = status;
        this.status2 = status2;
        this.codes = codes;
        this.name = name;
        this.process = process;
        this.processName = processName;
        this.monitorId = monitorId;
        this.year = year;
    }
}
