From 378c3936c402732a6c8dd84d018e48fe69ba7a03 Mon Sep 17 00:00:00 2001 From: kaiyu <404897439@qq.com> Date: Fri, 24 Sep 2021 11:50:00 +0800 Subject: [PATCH] screen-api 修改获取五分钟数据代码 --- screen-manage/src/main/resources/mapper/SpecialDeviceMapper.xml | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/screen-manage/src/main/resources/mapper/SpecialDeviceMapper.xml b/screen-manage/src/main/resources/mapper/SpecialDeviceMapper.xml index 82d3e45..a422955 100644 --- a/screen-manage/src/main/resources/mapper/SpecialDeviceMapper.xml +++ b/screen-manage/src/main/resources/mapper/SpecialDeviceMapper.xml @@ -63,4 +63,11 @@ where d.`is_delete` = 0; </select> + + <select id="selectOrgByMac" resultType="com.moral.api.entity.Organization"> + SELECT area_code, city_code + FROM organization + WHERE id = (SELECT organization_id FROM special_device WHERE mac = #{mac}) + </select> + </mapper> \ No newline at end of file -- Gitblit v1.8.0