diff --git a/epdc-cloud-user/src/main/resources/mapper/UserDao.xml b/epdc-cloud-user/src/main/resources/mapper/UserDao.xml index 5a96dc3..0f75445 100644 --- a/epdc-cloud-user/src/main/resources/mapper/UserDao.xml +++ b/epdc-cloud-user/src/main/resources/mapper/UserDao.xml @@ -86,18 +86,18 @@ and u.mobile like '%${mobile}%' and u.identity_no like '%${identityNo}%' and u.party_flag = #{partyFlag} - - AND (find_in_set(#{streetId},ug.PARENT_DEPT_IDS) - OR find_in_set(#{streetId},ug.ALL_DEPT_IDS)) - - - AND (find_in_set(#{communityId},ug.PARENT_DEPT_IDS) - OR find_in_set(#{communityId},ug.ALL_DEPT_IDS)) - - - and (ug.grid_id = #{gridId} - OR find_in_set(#{gridId},ug.ALL_DEPT_IDS)) - + + + + + + + + + + + + GROUP BY u.ID ORDER BY