Commit 6e4288c8bd94ab6012c3cc0bab8cf42fdbe8579d
1 parent
22488569
fix(tree): 修复道路查询中缺少删除状态过滤条件
Showing
1 changed file
with
1 additions
and
1 deletions
urbanops-module-garden/src/main/resources/mapper/tree/TreeMapper.xml
| ... | ... | @@ -40,7 +40,7 @@ |
| 40 | 40 | LEFT JOIN garden_tree t ON t.road = r.id |
| 41 | 41 | LEFT JOIN system_dept d ON r.dept_id = d.id AND d.status = 0 |
| 42 | 42 | WHERE r.company_id = #{belongCompanyId} |
| 43 | - and d.id is not null | |
| 43 | + and d.id is not null and r.deleted = 0 and t.deleted = 0 and d.deleted = 0 | |
| 44 | 44 | <if test="roadName != null and roadName != ''"> |
| 45 | 45 | AND r.road_name LIKE CONCAT('%', #{roadName}, '%') |
| 46 | 46 | </if> | ... | ... |