diff --git a/epdc-cloud-property/src/main/resources/mapper/police/PoliceDao.xml b/epdc-cloud-property/src/main/resources/mapper/police/PoliceDao.xml index 943ec93..059debf 100644 --- a/epdc-cloud-property/src/main/resources/mapper/police/PoliceDao.xml +++ b/epdc-cloud-property/src/main/resources/mapper/police/PoliceDao.xml @@ -65,7 +65,7 @@ AND eg.GROUP_CATEGORY = '3' AND ( eg.STATE = '10' OR eg.STATE = '15' ) - AND (eg.GRID_ID = #{gridId} + AND (eg.DEPT_ID = #{gridId} OR find_in_set(#{gridId},eg.ALL_DEPT_IDS)) GROUP BY eg.ID