|
|
|
@ -1469,6 +1469,18 @@ |
|
|
|
<if test="appealType != null and appealType != ''"> |
|
|
|
and i.PEOPLE_FLAG = #{appealType} |
|
|
|
</if> |
|
|
|
<if test="gridId != null and gridId != ''"> |
|
|
|
AND (i.GRID_ID = #{gridId} |
|
|
|
OR find_in_set(#{gridId},i.ALL_DEPT_IDS)) |
|
|
|
</if> |
|
|
|
<if test="streetId != null and streetId != ''"> |
|
|
|
AND (i.GRID_ID = #{streetId} |
|
|
|
OR find_in_set(#{streetId},i.ALL_DEPT_IDS)) |
|
|
|
</if> |
|
|
|
<if test="communityId != null and communityId != ''"> |
|
|
|
AND (find_in_set(#{communityId},i.PARENT_DEPT_IDS) |
|
|
|
OR find_in_set(#{communityId},i.ALL_DEPT_IDS)) |
|
|
|
</if> |
|
|
|
<if test="userId != null and userId != ''"> |
|
|
|
and i.USER_ID = #{userId} |
|
|
|
</if> |
|
|
|
|