package com.moral.mapper; import java.util.Date; import java.util.List; import java.util.Map; import org.apache.ibatis.annotations.Param; import com.moral.common.mapper.BaseMapper; import com.moral.entity.Device; import tk.mybatis.mapper.entity.Example; public interface DeviceMapper extends BaseMapper{ List> getDeviceStatesByAccount(Map parameters); List selectWithRelationData(Example example); List> getSensorsByDevice(@Param("mac")String mac); List getDeviceMacByMonitorPointAndDeviceVersion(@Param("monitorPointId")Integer monitorPointId,@Param("deviceVersionId")Integer deviceVersionId); List> getDeviceVersionIdByMonitorPoint(Integer monitorPointId); List selectByOrgIdAndDevName(@Param("orgId")Integer orgId,@Param("devName")String devName); List selectByOrgIdAndMpId(@Param("orgId")Integer orgId,@Param("mpId")Integer mpId); List selectByMap(Map params); Device selectWithOrgIdsByMac(String mac); List getDeviceVersionIdByAreaCode(Map parameters); Integer getDeviceCountByRegion(Map parameters); List countByTimes(@Param("start")Date start,@Param("end")Date end,@Param("format")String format); }