ifishSocket/src/main/java/com/ifish/service/DeviceService.java

44 lines
1.1 KiB
Java

package com.ifish.service;
import java.util.List;
import com.ifish.entity.*;
import com.ifish.socketNew.model.receive.BackFunctionCodeHeater;
import com.ifish.socketNew.model.send.OrderFunctionCode1;
/**
* @ClassName: DeviceService
* @Description: TODO
* @author ggw
*
*/
public interface DeviceService {
Device update(Device device);
Device update(OrderFunctionCode1 model);
DeviceHeater save(BackFunctionCodeHeater model);
DeviceHeater update(DeviceHeater deviceHeater);
void updateWarnOnoff(String macAddress,String onOff);
Device getUniqueByProperty(String property,Object value);
List<Device> getByProperty(String property,Object value);
List<DeviceHeater> getDeviceHeaterByProperty(String hour,String macAddress,String date);
DeviceUser getUniqueByProperty(String macAddress);
List<DeviceUser> getListByProperty(Integer deviceId);
LoginRecord save(LoginRecord loginRecord);
FactoryList getFactoryListById(String factoryCode);
HardwareType getHardwareTypeById(String typeCode);
void saveDeviceOffline(DeviceOffline deviceOffline);
}