From a78ded2912e9b3e1bc509d3021b2302cf5f77215 Mon Sep 17 00:00:00 2001 From: songyunpeng Date: Wed, 9 Jun 2021 15:59:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=BE=E4=BA=BA=E6=8E=A5=E5=8F=A3=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=A4=BE=E5=8C=BAID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/PopulationInformationDao.xml | 55 +++++++++++++++---- 1 file changed, 43 insertions(+), 12 deletions(-) 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}, '%') +