package com.moral.mapper; import java.util.List; import java.util.Map; import com.moral.entity.Device; import org.apache.ibatis.annotations.Param; import com.moral.common.mapper.BaseMapper; import com.moral.entity.MonitorPoint; import tk.mybatis.mapper.entity.Example; public interface MonitorPointMapper extends BaseMapper { List selectWithAreaNameByExample(Example example); List getMonitorPointsByAreaName(Map parameters); List selectByMap(Map params); List selectOrganizationIds(int id); List selectVersionsById(int id); Map selectAllById(int id); List> getIdByOrganizationId(@Param("organizationIdList") List organizationIdList); //通过monitorPointId获取该公司区域的所有设备 List getDeviceList(@Param("id") int id); //获取公司信息,通过id MonitorPoint getMonitorPointById(@Param("id") int id); List getMonitorPointListByAccountId(@Param("id") int id); MonitorPoint byIdGetMonitorPoint(@Param("id") int id); MonitorPoint getFirstMonitorPointByAreaCode(@Param("areaCode") int areaCode); MonitorPoint getFirstMonitorPointByCityCode(@Param("cityCode") int cityCode); MonitorPoint getFirstMonitorPointByProvinceCode(@Param("provinceCode") int provinceCode); List getMonitorPointIds(Map params); List byCodeGetMonitor(Map params); String getOrgIdByMac(String mac); String getMonitorName(int mpId); }