|
@ -69,6 +69,12 @@ |
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
|
AND DATE_FORMAT( temp.CREATED_TIME, '%Y-%m-%d' ) BETWEEN #{startTime} AND #{endTime} |
|
|
AND DATE_FORMAT( temp.CREATED_TIME, '%Y-%m-%d' ) BETWEEN #{startTime} AND #{endTime} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="eventContent != null and eventContent != ''"> |
|
|
|
|
|
AND temp.event_content like '%${eventContent}%' |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="nickName != null and nickName != '' "> |
|
|
|
|
|
AND temp.nick_Name like '%${nickName}%' |
|
|
|
|
|
</if> |
|
|
<if test="gridId != null and gridId != ''"> |
|
|
<if test="gridId != null and gridId != ''"> |
|
|
AND (temp.GRID_ID = #{gridId} |
|
|
AND (temp.GRID_ID = #{gridId} |
|
|
OR find_in_set(#{gridId},temp.ALL_DEPT_IDS)) |
|
|
OR find_in_set(#{gridId},temp.ALL_DEPT_IDS)) |
|
@ -103,6 +109,12 @@ |
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
|
AND DATE_FORMAT( temp.CREATED_TIME, '%Y-%m-%d' ) BETWEEN #{startTime} AND #{endTime} |
|
|
AND DATE_FORMAT( temp.CREATED_TIME, '%Y-%m-%d' ) BETWEEN #{startTime} AND #{endTime} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="eventContent !=null and eventContent!=''"> |
|
|
|
|
|
and temp.EVENT_CONTENT like '%${eventContent}%' |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="nickName !=null and nickName!=''"> |
|
|
|
|
|
and temp.NICK_NAME like '%${nickName}%' |
|
|
|
|
|
</if> |
|
|
<if test="gridId != null and gridId != ''"> |
|
|
<if test="gridId != null and gridId != ''"> |
|
|
AND (temp.GRID_ID = #{gridId} |
|
|
AND (temp.GRID_ID = #{gridId} |
|
|
OR find_in_set(#{gridId},temp.ALL_DEPT_IDS)) |
|
|
OR find_in_set(#{gridId},temp.ALL_DEPT_IDS)) |
|
|