package com.moral.mapper;
|
|
import java.util.List;
|
import java.util.Map;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import com.moral.entity.Device;
|
|
public interface DeviceMapper {
|
int deleteByPrimaryKey(Integer id);
|
|
int insert(Device record);
|
|
int insertSelective(Device record);
|
|
Device selectByPrimaryKey(Integer id);
|
|
Device selectWithOrgIdsByMac(String mac);
|
|
List<Device> selectWithMacByNotState(String state);
|
|
int updateChangedStateById(@Param("id") int id, @Param("state") String state);
|
|
int updateByPrimaryKeySelective(Device record);
|
|
int updateByPrimaryKey(Device record);
|
|
List<Map<String, Object>> getChangshuMacs();
|
|
List<Map<String, Object>> getMacAndSensorkeyByOrganizationid(@Param("organizationIdList") List<Object> organizationIdList);
|
|
List<String> getMacs();
|
|
List<String> getMacByOrganizationid(@Param("organizationIdList") List<Object> organizationIdList);
|
|
List<Map<String, Object>> macAndOrganizationIdMap(@Param("macs") List<String> macs);
|
|
List<String> getMacsByMonitorPointIds(List<Integer> list);
|
|
List<Map<String, Object>> getAllByMacList(List<String> list);
|
|
List<Map<String, Object>> getOfflineDevice();
|
|
}
|