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 selectWithMacByNotState(String state); int updateChangedStateById(@Param("id") int id, @Param("state") String state); int updateByPrimaryKeySelective(Device record); int updateByPrimaryKey(Device record); List> getChangshuMacs(); List> getMacAndSensorkeyByOrganizationid(@Param("organizationIdList") List organizationIdList); List getMacs(); List getMacByOrganizationid(@Param("organizationIdList") List organizationIdList); List> macAndOrganizationIdMap(@Param("macs") List macs); List getMacsByMonitorPointIds(List list); List> getAllByMacList(List list); List> getOfflineDevice(); List> getOfflineDeviceOfDiseaseCenter(String orgId); List> getAllDeviceByOrg(String orgId); }