/** * */ package com.xcgl.dataview.entity; import java.util.Date; /** * @author xzx * */ public class NenghaoDto { /** * 能耗类型:日能耗;月能耗;季度能耗 */ private NenghaoType type; private int year; private int month; private int day; private Double value; private Date valueTime; public NenghaoType getType() { return type; } public void setType(NenghaoType type) { this.type = type; } public int getYear() { return year; } public void setYear(int year) { this.year = year; } public int getMonth() { return month; } public void setMonth(int month) { this.month = month; } public int getDay() { return day; } public void setDay(int day) { this.day = day; } public Double getValue() { return value; } public void setValue(Double value) { this.value = value; } public Date getValueTime() { return valueTime; } public void setValueTime(Date valueTime) { this.valueTime = valueTime; } public static NenghaoDto getDemoInstance(NenghaoType type, int year, int month, int day, Double value) { NenghaoDto dto = new NenghaoDto(); dto.setDay(day); dto.setMonth(month); dto.setYear(year); dto.setValue(value); dto.setType(type); return dto; } }