From 8ef7153a44f16d6874bf38c6dca3b4a49d00becf Mon Sep 17 00:00:00 2001 From: swb <jpy123456> Date: Mon, 02 Sep 2024 14:49:50 +0800 Subject: [PATCH] fix:业务汇总时间修改提交 --- screen-job/src/main/resources/mapper/OrganizationMapper.xml | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/screen-job/src/main/resources/mapper/OrganizationMapper.xml b/screen-job/src/main/resources/mapper/OrganizationMapper.xml index 7dca616..39f2333 100644 --- a/screen-job/src/main/resources/mapper/OrganizationMapper.xml +++ b/screen-job/src/main/resources/mapper/OrganizationMapper.xml @@ -26,4 +26,23 @@ <result column="is_delete" property="isDelete" /> </resultMap> + <select id="orgIdSpecialDevList" resultType="java.lang.Integer"> + select organization_id from special_device where organization_id in ( + SELECT id FROM ( + SELECT id, parent_id, name FROM organization WHERE id = #{organizationId} + UNION ALL + SELECT i.id, i.parent_id, i.name + FROM organization i + INNER JOIN ( + SELECT * FROM ( + SELECT id, parent_id, name FROM organization WHERE id = #{organizationId} + UNION ALL + SELECT id, parent_id, name FROM organization WHERE parent_id = #{organizationId} + ) t1 + ) t2 ON i.parent_id = t2.id + where i.is_delete = 0 + ) t3 ) and mac = #{mac} and is_delete = 0 + + + </select> </mapper> \ No newline at end of file -- Gitblit v1.8.0