/** * */ 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 getGonglvData(Date valuetime) throws Exception; /** * 获取过去monthcount个月连续的月能耗数据,当前月份为7, 获取1-6月份的月能耗 * @param monthcount * @return * @throws BusinessException */ List getLastContinuousNenghaoData(int monthcount) throws BusinessException; /** * @param startDate * @param endDate * @return * @throws BusinessException */ List getDeviceStatusSumData(String startDate, String endDate) throws BusinessException; /** * @param date * @return * @throws BusinessException */ List getWarningSumData(String date) throws BusinessException; /** * @return * @throws BusinessException */ List getSensorLiveTextDto() throws BusinessException; /** * @return * @throws BusinessException */ Map getDeviceCode2ValueMap() throws BusinessException; HashMap getNenghaoSumData(boolean needUnit)throws BusinessException; HashMap getNenghaoSumDataByProject(boolean needUnit,String projectid)throws BusinessException; }