DataviewServiceI.java 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /**
  2. *
  3. */
  4. package com.xcgl.dataview.service;
  5. import java.util.Date;
  6. import java.util.HashMap;
  7. import java.util.List;
  8. import java.util.Map;
  9. import org.jeecgframework.core.common.exception.BusinessException;
  10. import com.xcgl.dataview.entity.DeviceStatusSumDto;
  11. import com.xcgl.dataview.entity.GonglvDto;
  12. import com.xcgl.dataview.entity.NenghaoDto;
  13. import com.xcgl.dataview.entity.SensorLiveTextDto;
  14. import com.xcgl.dataview.entity.WarningSumDto;
  15. /**
  16. * @author xzx
  17. *
  18. */
  19. public interface DataviewServiceI{
  20. /**
  21. * 获取最新的全部设备瞬时功率数据
  22. * @param valuetime 取值时间戳
  23. * @return
  24. * @throws Exception
  25. */
  26. List<GonglvDto> getGonglvData(Date valuetime) throws Exception;
  27. /**
  28. * 获取过去monthcount个月连续的月能耗数据,当前月份为7, 获取1-6月份的月能耗
  29. * @param monthcount
  30. * @return
  31. * @throws BusinessException
  32. */
  33. List<NenghaoDto> getLastContinuousNenghaoData(int monthcount) throws BusinessException;
  34. /**
  35. * @param startDate
  36. * @param endDate
  37. * @return
  38. * @throws BusinessException
  39. */
  40. List<DeviceStatusSumDto> getDeviceStatusSumData(String startDate, String endDate) throws BusinessException;
  41. /**
  42. * @param date
  43. * @return
  44. * @throws BusinessException
  45. */
  46. List<WarningSumDto> getWarningSumData(String date) throws BusinessException;
  47. /**
  48. * @return
  49. * @throws BusinessException
  50. */
  51. List<SensorLiveTextDto> getSensorLiveTextDto() throws BusinessException;
  52. /**
  53. * @return
  54. * @throws BusinessException
  55. */
  56. Map<String, Object> getDeviceCode2ValueMap() throws BusinessException;
  57. HashMap<String,String> getNenghaoSumData(boolean needUnit)throws BusinessException;
  58. HashMap<String,String> getNenghaoSumDataByProject(boolean needUnit,String projectid)throws BusinessException;
  59. }