<select id="getComplaints" parameterClass="java.util.Map"
resultMap="MotoComplainDataResult" >
<![CDATA[
SELECT * FROM(SELECT A.*, rownum r FROM (SELECT * FROM MOTO_COMPLAIN_DATA
]]>
<dynamic prepend="">
<isPropertyAvailable property="status">
<isNotNull property="status" prepend=" where ">
STATUS=#status#
</isNotNull>
</isPropertyAvailable>
</dynamic>
<![CDATA[
) A WHERE rownum <= #end#) B WHERE r > #start#
]]>
</select>
繁华开满天机
陪伴而非守候