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