From db92570b75243bd23c5a7412f4b951ca12c382a9 Mon Sep 17 00:00:00 2001 From: fengxiang <110431245@qq.com> Date: Thu, 01 Feb 2018 17:11:01 +0800 Subject: [PATCH] 设备模块代码恢复 --- src/main/java/com/moral/mapper/DeviceMapper.java | 7 ++++++- 1 files changed, 6 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..44650c0 100644 --- a/src/main/java/com/moral/mapper/DeviceMapper.java +++ b/src/main/java/com/moral/mapper/DeviceMapper.java @@ -7,10 +7,15 @@ 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<Device> selectWithRelationData(Example example); List<Map<String, Object>> getSensorsByDevice(@Param("mac")String mac); + List<String> getDeviceMacByMonitorPointAndDeviceVersion(@Param("monitorPointId")Integer monitorPointId,@Param("deviceVersionId")Integer deviceVersionId); + + List<Map<String, Object>> getDeviceVersionIdByMonitorPoint(Integer monitorPointId); + List<Device> selectByOrgIdAndDevName(@Param("orgId")Integer orgId,@Param("devName")String devName); } \ No newline at end of file -- Gitblit v1.8.0