| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- /**
- *
- */
- package com.xcgl.dataview.service;
- import java.util.Date;
- import java.util.HashMap;
- import java.util.List;
- import java.util.Map;
- import org.jeecgframework.core.common.exception.BusinessException;
- import com.xcgl.dataview.entity.DeviceStatusSumDto;
- import com.xcgl.dataview.entity.GonglvDto;
- import com.xcgl.dataview.entity.NenghaoDto;
- import com.xcgl.dataview.entity.SensorLiveTextDto;
- import com.xcgl.dataview.entity.WarningSumDto;
- /**
- * @author xzx
- *
- */
- public interface DataviewServiceI{
- /**
- * 获取最新的全部设备瞬时功率数据
- * @param valuetime 取值时间戳
- * @return
- * @throws Exception
- */
- List<GonglvDto> getGonglvData(Date valuetime) throws Exception;
- /**
- * 获取过去monthcount个月连续的月能耗数据,当前月份为7, 获取1-6月份的月能耗
- * @param monthcount
- * @return
- * @throws BusinessException
- */
- List<NenghaoDto> getLastContinuousNenghaoData(int monthcount) throws BusinessException;
- /**
- * @param startDate
- * @param endDate
- * @return
- * @throws BusinessException
- */
- List<DeviceStatusSumDto> getDeviceStatusSumData(String startDate, String endDate) throws BusinessException;
- /**
- * @param date
- * @return
- * @throws BusinessException
- */
- List<WarningSumDto> getWarningSumData(String date) throws BusinessException;
- /**
- * @return
- * @throws BusinessException
- */
- List<SensorLiveTextDto> getSensorLiveTextDto() throws BusinessException;
- /**
- * @return
- * @throws BusinessException
- */
- Map<String, Object> getDeviceCode2ValueMap() throws BusinessException;
- HashMap<String,String> getNenghaoSumData(boolean needUnit)throws BusinessException;
-
- HashMap<String,String> getNenghaoSumDataByProject(boolean needUnit,String projectid)throws BusinessException;
- }
|