<select id="queryBigServerList" parameterType="map" resultType="BigServer">
SELECT * FROM (
SELECT ROWNUM rn,l.id,l.bigeyeIP, l.usage,
l.activity_label,l.location,l.capacity,l.capacity_threshold FROM (
select * from BIGEYE_CONF
where 1=1
<if test="bigeyeIP != null and bigeyeIP != ''">
and bigeyeIP=#{bigeyeIP}
</if>
<if test="usage != null and usage != ''">
and usage=#{usage}
</if>
<if test="activity_label != null and activity_label != ''">
and activity_label=#{activity_label}
</if>
) l WHERE #{page.endPos} >ROWNUM
) t2
WHERE T2.rn >=#{page.startPos}
</select>