|
|
@ -76,16 +76,16 @@ |
|
|
|
AND t.mobile like '%${mobile}%' |
|
|
|
</if> |
|
|
|
<if test="streetId != '' and streetId != null"> |
|
|
|
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)) |
|
|
|
</if> |
|
|
|
<if test="communityId != '' and communityId != null"> |
|
|
|
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)) |
|
|
|
</if> |
|
|
|
<if test="gridId != '' and gridId != null"> |
|
|
|
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)) |
|
|
|
</if> |
|
|
|
order by t.CREATED_TIME desc |
|
|
|
</select> |
|
|
|