From 433baeff27e736fe9ef575a85e8100e430049346 Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Fri, 8 Apr 2022 17:39:57 +0800 Subject: [PATCH] sql bug --- .../resources/mapper/epidemic/PersonTestingDao.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 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 4726300..92b8aa8 100644 --- a/epdc-cloud-custom/src/main/resources/mapper/epidemic/PersonTestingDao.xml +++ b/epdc-cloud-custom/src/main/resources/mapper/epidemic/PersonTestingDao.xml @@ -76,16 +76,16 @@ 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(#{streetId},t2.PARENT_DEPT_IDS) + OR find_in_set(#{streetId},t2.ALL_DEPT_IDS)) - AND (find_in_set(#{communityId},t.PARENT_DEPT_IDS) - OR find_in_set(#{communityId},t.ALL_DEPT_IDS)) + AND (find_in_set(#{communityId},t2.PARENT_DEPT_IDS) + OR find_in_set(#{communityId},t2.ALL_DEPT_IDS)) - and (t.grid_id = #{gridId} - OR find_in_set(#{gridId},t.ALL_DEPT_IDS)) + and (t2.grid_id = #{gridId} + OR find_in_set(#{gridId},t2.ALL_DEPT_IDS)) order by t.CREATED_TIME desc