From 14753bc669a106315717f0f4a70bf2bf5c3e8995 Mon Sep 17 00:00:00 2001 From: ZhuDongming <773644075@qq.com> Date: Mon, 13 Apr 2020 15:52:11 +0800 Subject: [PATCH] add大屏报表接口和走航车轨迹接口 --- src/main/resources/mapper/DeviceMapper.xml | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/DeviceMapper.xml b/src/main/resources/mapper/DeviceMapper.xml index 68910e8..c2c17b5 100644 --- a/src/main/resources/mapper/DeviceMapper.xml +++ b/src/main/resources/mapper/DeviceMapper.xml @@ -216,7 +216,7 @@ </where> </select> <select id="selectByOrgIdAndMpId" resultMap="BaseResultMap"> - SELECT dev.*,dve.version as device_version_value from device dev + SELECT dev.*,dve.version as device_version_value,mpt.* from device dev left join monitor_point mpt on dev.monitor_point_id = mpt.id left join device_version dve on dev.device_version_id = dve.id <where> @@ -418,4 +418,16 @@ <select id="getLimitDataByDevice" resultType="String"> SELECT limit_val FROM view_device_density WHERE mac = #{mac} </select> + + <select id="getMacsByOrganizationId" resultType="string"> + SELECT d.mac + FROM monitor_point mp, device d + WHERE mp.id = d.monitor_point_id + AND mp.organization_id IN + <foreach collection="organizationIdList" index="index" item="organizationId" open="(" separator="," close=")"> + #{organizationId} + </foreach> + AND d.is_delete = '0' + </select> + </mapper> \ No newline at end of file -- Gitblit v1.8.0