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