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}, '%')