diff --git a/epdc-cloud-admin/src/main/resources/mapper/SysDeptDao.xml b/epdc-cloud-admin/src/main/resources/mapper/SysDeptDao.xml index 0e8722e..e658185 100644 --- a/epdc-cloud-admin/src/main/resources/mapper/SysDeptDao.xml +++ b/epdc-cloud-admin/src/main/resources/mapper/SysDeptDao.xml @@ -398,7 +398,8 @@ LEFT JOIN sys_dept comm ON comm.id = grid.pid LEFT JOIN sys_dept street ON street.id = comm.pid WHERE - grid.type_key LIKE '%grid_party%' + grid.del_flag = '0' + AND grid.type_key LIKE '%grid_party%' AND grid.name = #{gridName} @@ -417,7 +418,7 @@ sys_dept d LEFT JOIN sys_dept p ON d.pid = p.id - + AND d.del_flag = '0' AND d.type_key in ('street_party','community_party','grid_party') and d.type_key = #{tags} @@ -445,7 +446,8 @@ sys_dept d LEFT JOIN sys_dept p ON p.id = d.pid WHERE - d.id = #{agencyId} + d.del_flag = '0' + AND d.id = #{agencyId} AND p.pid != 0 AND d.type_key in ('street_party','community_party','grid_party')