diff --git a/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/resources/mapper/PopulationInformationDao.xml b/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/resources/mapper/PopulationInformationDao.xml
index b83f43cd..3231563e 100644
--- a/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/resources/mapper/PopulationInformationDao.xml
+++ b/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/resources/mapper/PopulationInformationDao.xml
@@ -400,6 +400,9 @@
where t.DEL_FLAG = '0'
and ehr.DEL_FLAG = '0' and ehr.IS_HOUSE_HEAD = '1'
and epi.DEL_FLAG = '0'
+
+ and find_in_set(${communityId},t.ALL_DEPT_IDS)
+
and epi.RESIDENTS_NAME like concat('%', #{houseHeadName}, '%')
@@ -415,9 +418,12 @@
where t.DEL_FLAG = '0'
and ehr.DEL_FLAG = '0' and ehr.IS_HOUSE_HEAD = '1'
and epi.DEL_FLAG = '0'
-
- and epi.RESIDENTS_NAME like concat('%', #{houseHeadName}, '%')
-
+
+ and find_in_set(${communityId},t.ALL_DEPT_IDS)
+
+
+ and epi.RESIDENTS_NAME like concat('%', #{houseHeadName}, '%')
+