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

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

/**
 * 直接排放因子
 */
@Data
@TableName("t_cc_factor")
@EqualsAndHashCode(callSuper = true)
public class CcFactor extends Model<CcFactor> {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "id")
    @TableId(value = "id")
    private Long id;

    /**
     能源id
     */
    @ApiModelProperty(value = "能源id")
    private  Integer energyId;

    /**
     低位热值
     */
    @ApiModelProperty(value = "低位热值")
    private  Integer hotValue;

    /**
     低位热值单位
     */
    @ApiModelProperty(value = "低位热值单位")
    private String  hotValueUnit;

    /**
     单位热值含碳量
     */
    @ApiModelProperty(value = "单位热值含碳量")
    private BigDecimal ccValue;

    /**
     单位热值含碳量单位
     */
    @ApiModelProperty(value = "单位热值含碳量单位")
    private String ccValueUnit;

    /**
     碳氧化率
     */
    @ApiModelProperty(value = "碳氧化率")
    private BigDecimal ofs;


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

}
