fengxiang
2018-05-04 4a41bd4e105385b5460e5a81c8b67e5f701a262b
src/main/java/com/moral/service/DeviceService.java
@@ -1,17 +1,39 @@
package com.moral.service;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.moral.common.bean.PageBean;
import com.moral.common.bean.PageResult;
import com.moral.common.bean.ResultBean;
import com.moral.entity.Device;
public interface DeviceService {
   Map<String, Object> getDeviceStatesByAccount(Map<String, Object> parameters);
   List<Map<String, Object>> getSensorsByDevice(String mac);
   void saveOrUpdateDevice(Device device);
   List<Device> getInstallDevicesByOperateUser(Integer uid, Integer pageIndex, Integer pageSize);
   Device getDeviceByMac(String mac);
   List<Device> query(Map<String,Object> map);
    PageResult query(Integer orgId, String deviceName,Integer pageSize,Integer pageNo);
    PageResult query(Integer orgId, Integer mpId, Integer pageSize, Integer pageNo);
   int countByExample(PageBean pageBean);
   PageBean queryByPageBean(PageBean pageBean);
   void deleteByIds(Integer[] ids);
    void addOrModify(Device device);
   List<Map> countByTimes(Date start, Date end, String format);
   List<Device> getDevicesByMonitorPointId(Integer monitorPointId);
   List<Map<String,String>> queryDevicesState(List<String> macList,Boolean withData);
}