From 6e4288c8bd94ab6012c3cc0bab8cf42fdbe8579d Mon Sep 17 00:00:00 2001 From: 戈灵虎 <50576256@qq.com> Date: Mon, 27 Jul 2026 16:53:45 +0800 Subject: [PATCH] fix(tree): 修复道路查询中缺少删除状态过滤条件 --- urbanops-module-garden/src/main/resources/mapper/tree/TreeMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/urbanops-module-garden/src/main/resources/mapper/tree/TreeMapper.xml b/urbanops-module-garden/src/main/resources/mapper/tree/TreeMapper.xml index 376edc9..c4ac311 100644 --- a/urbanops-module-garden/src/main/resources/mapper/tree/TreeMapper.xml +++ b/urbanops-module-garden/src/main/resources/mapper/tree/TreeMapper.xml @@ -40,7 +40,7 @@ LEFT JOIN garden_tree t ON t.road = r.id LEFT JOIN system_dept d ON r.dept_id = d.id AND d.status = 0 WHERE r.company_id = #{belongCompanyId} - and d.id is not null + and d.id is not null and r.deleted = 0 and t.deleted = 0 and d.deleted = 0 AND r.road_name LIKE CONCAT('%', #{roadName}, '%') -- libgit2 0.21.4