|
@ -22,16 +22,13 @@ |
|
|
and et.TOPIC_CONTENT like concat('%', #{topicContent}, '%') |
|
|
and et.TOPIC_CONTENT like concat('%', #{topicContent}, '%') |
|
|
</if> |
|
|
</if> |
|
|
<if test="streetId != null and streetId != ''"> |
|
|
<if test="streetId != null and streetId != ''"> |
|
|
AND (find_in_set(#{streetId},et.PARENT_DEPT_IDS) |
|
|
AND find_in_set(#{streetId},et.ALL_DEPT_IDS) |
|
|
OR find_in_set(#{streetId},et.ALL_DEPT_IDS)) |
|
|
|
|
|
</if> |
|
|
</if> |
|
|
<if test="communityId != null and communityId != ''"> |
|
|
<if test="communityId != null and communityId != ''"> |
|
|
AND (find_in_set(#{communityId},et.PARENT_DEPT_IDS) |
|
|
AND find_in_set(#{communityId},et.ALL_DEPT_IDS) |
|
|
OR find_in_set(#{communityId},et.ALL_DEPT_IDS)) |
|
|
|
|
|
</if> |
|
|
</if> |
|
|
<if test="gridId != null and gridId != ''"> |
|
|
<if test="gridId != null and gridId != ''"> |
|
|
AND (et.GRID_ID = #{gridId} |
|
|
AND et.GRID_ID = #{gridId} |
|
|
OR find_in_set(#{gridId},et.ALL_DEPT_IDS)) |
|
|
|
|
|
</if> |
|
|
</if> |
|
|
<if test="startTime != null and startTime != ''"> |
|
|
<if test="startTime != null and startTime != ''"> |
|
|
and DATE_FORMAT( et.CREATED_TIME, '%Y-%m-%d' ) >=#{startTime} |
|
|
and DATE_FORMAT( et.CREATED_TIME, '%Y-%m-%d' ) >=#{startTime} |
|
@ -68,16 +65,13 @@ |
|
|
and et.TOPIC_CONTENT like concat('%', #{topicContent}, '%') |
|
|
and et.TOPIC_CONTENT like concat('%', #{topicContent}, '%') |
|
|
</if> |
|
|
</if> |
|
|
<if test="streetId != null and streetId != ''"> |
|
|
<if test="streetId != null and streetId != ''"> |
|
|
AND (find_in_set(#{streetId},et.PARENT_DEPT_IDS) |
|
|
AND find_in_set(#{streetId},et.ALL_DEPT_IDS) |
|
|
OR find_in_set(#{streetId},et.ALL_DEPT_IDS)) |
|
|
|
|
|
</if> |
|
|
</if> |
|
|
<if test="communityId != null and communityId != ''"> |
|
|
<if test="communityId != null and communityId != ''"> |
|
|
AND (find_in_set(#{communityId},et.PARENT_DEPT_IDS) |
|
|
AND find_in_set(#{communityId},et.ALL_DEPT_IDS) |
|
|
OR find_in_set(#{communityId},et.ALL_DEPT_IDS)) |
|
|
|
|
|
</if> |
|
|
</if> |
|
|
<if test="gridId != null and gridId != ''"> |
|
|
<if test="gridId != null and gridId != ''"> |
|
|
AND (et.GRID_ID = #{gridId} |
|
|
AND et.GRID_ID = #{gridId} |
|
|
OR find_in_set(#{gridId},et.ALL_DEPT_IDS)) |
|
|
|
|
|
</if> |
|
|
</if> |
|
|
<if test="startTime != null and startTime != ''"> |
|
|
<if test="startTime != null and startTime != ''"> |
|
|
and DATE_FORMAT( et.CREATED_TIME, '%Y-%m-%d' ) >=#{startTime} |
|
|
and DATE_FORMAT( et.CREATED_TIME, '%Y-%m-%d' ) >=#{startTime} |
|
|