package com.nantian.cloud.jljc.vo.dualControl;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.text.DecimalFormat;

/**
 * 能耗双控可视化
 */
@Data
@ApiModel(value = "能耗双控可视化")
public class DualcontrolVisualizationVo{

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

    @ApiModelProperty(value = "季度(0年度值,1第一季度,2第二季度,3第三季度,4第四季度)")
    private String quarter;

    @ApiModelProperty(value = "项目编码")
    private String itemCode;

    @ApiModelProperty(value = "项目名称")
    private String itemName;

    @ApiModelProperty(value = " GDP总量(亿元)")
    private Double gdpTotal;

    @ApiModelProperty(value = "能耗总量(万tce)")
    private Double energyTotal;

    @ApiModelProperty(value = "单位GDP能耗(tce/万元)")
    private Double energyUnitGdp;

    @ApiModelProperty(value = "单位GDP能耗降低率(%)")
    private Double energyUnitGdpReducerate;

    @ApiModelProperty(value = "上个五年计划最后一年的GDP总量(亿元)")
    private Double preGdpTotal;

    @ApiModelProperty(value = "上个五年计划最后一年的能耗总量(万tce)")
    private Double preEnergyTotal;

    @ApiModelProperty(value = "上个五年计划最后一年的单位GDP能耗(tce/万元)")
    private Double preEnergyUnitGdp;

    @ApiModelProperty(value = "能耗总量基本目标(万tce)")
    private Double energyTotalBasic;

    @ApiModelProperty(value = "能耗总量激励目标(万tce)")
    private Double energyTotalInspire;

    @ApiModelProperty(value = "能耗总量实际值与指标值占比")
    private Double basicLevel1;

    @ApiModelProperty(value = "能耗总量实际值与指标值占比")
    private Double inspireLevel1;

    @ApiModelProperty(value = "单位GDP能耗基本目标(tce/万元)")
    private Double energyUnitGdpBasic;

    @ApiModelProperty(value = "单位GDP能耗激励目标(tce/万元)")
    private Double energyUnitGdpInspire;

    @ApiModelProperty(value = "单位GDP能耗降低率基本目标(%)")
    private Double energyUnitGdpReducerateBasic;

    @ApiModelProperty(value = "单位GDP能耗降低率激励目标(%)")
    private Double energyUnitGdpReducerateInspire;

    /*public void setReducerate() {
        DecimalFormat df = new DecimalFormat(".00"); //保留2位小数
        Double tmp = 0d;
        if(this.gdpTotal!=null && this.gdpTotal!=0 && this.preGdpTotal!=null && this.preEnergyUnitGdp!=0){
            tmp = 100*(1 - (this.energyTotal/this.gdpTotal)/(this.preEnergyTotal/this.preGdpTotal));
        }
        this.energyUnitGdpReducerate = Double.parseDouble(df.format(tmp));
    }*/
}
