|
@ -178,6 +178,9 @@ |
|
|
<if test="gridId != null and gridId != '' "> |
|
|
<if test="gridId != null and gridId != '' "> |
|
|
AND ie.grid_id = #{gridId} |
|
|
AND ie.grid_id = #{gridId} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="agencyId != null and agencyId != '' "> |
|
|
|
|
|
AND ie.agency_id = #{agencyId} |
|
|
|
|
|
</if> |
|
|
<if test="sourceType != null and sourceType != '' "> |
|
|
<if test="sourceType != null and sourceType != '' "> |
|
|
AND ie.source_type = #{sourceType} |
|
|
AND ie.source_type = #{sourceType} |
|
|
</if> |
|
|
</if> |
|
@ -199,7 +202,7 @@ |
|
|
<if test="status != null and status != '' "> |
|
|
<if test="status != null and status != '' "> |
|
|
AND ie.`status` = #{status} |
|
|
AND ie.`status` = #{status} |
|
|
</if> |
|
|
</if> |
|
|
order by ie.latest_operated_time desc |
|
|
order by ie.created_time desc, ie.latest_operated_time desc |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="listEventsByPCategoryInOrg" resultType="com.epmet.dto.result.IcEventResultDTO"> |
|
|
<select id="listEventsByPCategoryInOrg" resultType="com.epmet.dto.result.IcEventResultDTO"> |
|
|