package com.moral.service; import com.moral.common.bean.PageBean; import com.moral.common.bean.PageResult; import com.moral.entity.Device; import com.moral.entity.DeviceProperty; import java.util.Date; import java.util.List; import java.util.Map; public interface DeviceService { Map getDeviceStatesByAccount(Map parameters); void saveOrUpdateDevice(Device device); List getInstallDevicesByOperateUser(Integer uid, Integer pageIndex, Integer pageSize); Device getDeviceByMac(String mac, boolean fromCache); Device getDeviceByMac(String mac); List query(Map 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 countByTimes(Date start, Date end, String format); List getDevicesByMonitorPointId(Integer monitorPointId); List> queryDevicesState(List macList,Boolean withData); Device queryById(Integer id); List getDevicesByProfessionId(Map parameters); List getDevicesByOrganizationId(Map parameters); Map queryDeviceStateSummary(Integer orgId); void saveOrUpdate(Device device, DeviceProperty deviceProperty); PageBean getDeviceList(PageBean pageBean); void offLinToMaintenance(Map parameters); void saveOrUpdate4Mobile(Device device, DeviceProperty deviceProperty); String getLimitDataByDevice(Map parameters); Device getDeviceByLongitudeAsc(String mac); }