NenghaoDto.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /**
  2. *
  3. */
  4. package com.xcgl.dataview.entity;
  5. import java.util.Date;
  6. /**
  7. * @author xzx
  8. *
  9. */
  10. public class NenghaoDto {
  11. /**
  12. * 能耗类型:日能耗;月能耗;季度能耗
  13. */
  14. private NenghaoType type;
  15. private int year;
  16. private int month;
  17. private int day;
  18. private Double value;
  19. private Date valueTime;
  20. public NenghaoType getType() {
  21. return type;
  22. }
  23. public void setType(NenghaoType type) {
  24. this.type = type;
  25. }
  26. public int getYear() {
  27. return year;
  28. }
  29. public void setYear(int year) {
  30. this.year = year;
  31. }
  32. public int getMonth() {
  33. return month;
  34. }
  35. public void setMonth(int month) {
  36. this.month = month;
  37. }
  38. public int getDay() {
  39. return day;
  40. }
  41. public void setDay(int day) {
  42. this.day = day;
  43. }
  44. public Double getValue() {
  45. return value;
  46. }
  47. public void setValue(Double value) {
  48. this.value = value;
  49. }
  50. public Date getValueTime() {
  51. return valueTime;
  52. }
  53. public void setValueTime(Date valueTime) {
  54. this.valueTime = valueTime;
  55. }
  56. public static NenghaoDto getDemoInstance(NenghaoType type, int year, int month, int day, Double value) {
  57. NenghaoDto dto = new NenghaoDto();
  58. dto.setDay(day);
  59. dto.setMonth(month);
  60. dto.setYear(year);
  61. dto.setValue(value);
  62. dto.setType(type);
  63. return dto;
  64. }
  65. }