From 2096fcf9d948dbdcea2aae6f29d508086da9793b Mon Sep 17 00:00:00 2001 From: 于紫祥_1901 <email@yuzixiang_1910> Date: Thu, 22 Oct 2020 09:09:05 +0800 Subject: [PATCH] updata --- src/main/java/com/moral/mapper/MonitorPointMapper.java | 46 ++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 44 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/moral/mapper/MonitorPointMapper.java b/src/main/java/com/moral/mapper/MonitorPointMapper.java index d05e398..a39c5d6 100644 --- a/src/main/java/com/moral/mapper/MonitorPointMapper.java +++ b/src/main/java/com/moral/mapper/MonitorPointMapper.java @@ -1,11 +1,53 @@ 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; -public interface MonitorPointMapper extends BaseMapper<MonitorPoint>{ +import tk.mybatis.mapper.entity.Example; - List<MonitorPoint> getMonitorPointsByAreaName(String areaName); +public interface MonitorPointMapper extends BaseMapper<MonitorPoint> { + List<MonitorPoint> selectWithAreaNameByExample(Example example); + + List<MonitorPoint> getMonitorPointsByAreaName(Map<String, Object> parameters); + + List<MonitorPoint> selectByMap(Map<String, Object> params); + + List<Integer> selectOrganizationIds(int id); + + List<Integer> selectVersionsById(int id); + + Map<String, Object> selectAllById(int id); + + List<Map<String, Object>> getIdByOrganizationId(@Param("organizationIdList") List<Object> organizationIdList); + + //������monitorPointId������������������������������������ + List<Device> getDeviceList(@Param("id") int id); + + //���������������������������id + MonitorPoint getMonitorPointById(@Param("id") int id); + + List<MonitorPoint> 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<Integer> getMonitorPointIds(Map<String, Object> params); + + List<MonitorPoint> byCodeGetMonitor(Map<String, Object> params); + + String getOrgIdByMac(String mac); + + String getMonitorName(int mpId); } \ No newline at end of file -- Gitblit v1.8.0