From 486428358c6a2252a48630df300873cb4c71a93c Mon Sep 17 00:00:00 2001 From: 沈斌 <bluelazysb@hotmail.com> Date: Tue, 30 Jan 2018 22:37:45 +0800 Subject: [PATCH] updated --- src/main/java/com/moral/mapper/DeviceMapper.java | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/moral/mapper/DeviceMapper.java b/src/main/java/com/moral/mapper/DeviceMapper.java index f4ce1f4..04756d4 100644 --- a/src/main/java/com/moral/mapper/DeviceMapper.java +++ b/src/main/java/com/moral/mapper/DeviceMapper.java @@ -7,10 +7,17 @@ import com.moral.common.mapper.BaseMapper; import com.moral.entity.Device; +import tk.mybatis.mapper.entity.Example; public interface DeviceMapper extends BaseMapper<Device>{ List<Map<String, Object>> getDeviceStatesByAccount(Map<String, Object> parameters); - List<Map<String, Object>> getSensorsByDevice(@Param("mac")String mac); + List<Device> selectWithRelationData(Example example); + + List<String> getDeviceMacByMonitorPointAndDeviceVersion(@Param("monitorPointId")Integer monitorPointId,@Param("deviceVersionId")Integer deviceVersionId); + + List<Map<String, Object>> getDeviceVersionIdByMonitorPoint(Integer monitorPointId); + + } \ No newline at end of file -- Gitblit v1.8.0