From 65c24955a122028dadd2b7d1b569cb830642ace2 Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Wed, 15 Sep 2021 15:49:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E7=9B=B8=E5=85=B3=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=A2=9E=E5=8A=A0=E6=9F=A5=E8=AF=A2=E7=BB=84=E7=BB=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/epidemic/PersonTestingDao.xml | 12 +++++++ .../mapper/epidemic/EpidemicUserInfoDao.xml | 12 +++++++ .../mapper/vim/VaccinationInfoDao.xml | 35 ++++++------------- 3 files changed, 34 insertions(+), 25 deletions(-) diff --git a/epdc-cloud-custom/src/main/resources/mapper/epidemic/PersonTestingDao.xml b/epdc-cloud-custom/src/main/resources/mapper/epidemic/PersonTestingDao.xml index 52bb6fa..a05f0c9 100644 --- a/epdc-cloud-custom/src/main/resources/mapper/epidemic/PersonTestingDao.xml +++ b/epdc-cloud-custom/src/main/resources/mapper/epidemic/PersonTestingDao.xml @@ -68,6 +68,18 @@ AND t.mobile like '%${mobile}%' + + AND (find_in_set(#{streetId},t.PARENT_DEPT_IDS) + OR find_in_set(#{streetId},t.ALL_DEPT_IDS)) + + + AND (find_in_set(#{communityId},t.PARENT_DEPT_IDS) + OR find_in_set(#{communityId},t.ALL_DEPT_IDS)) + + + and (t.grid_id = #{gridId} + OR find_in_set(#{gridId},t.ALL_DEPT_IDS)) + order by t.CREATED_TIME desc