<select id="queryInjuredCase" resultMap="BaseResultMap"> SELECT aa.* FROM (SELECT a.*,rownum rn FROM (SELECT * FROM INJURED_CASE where 1 = 1 AND status = 1 <if test="qicp != null"> <if test="qicp.vinNum != null and qicp.vinNum != ‘‘"> and VIN like ‘%${qicp.vinNum}%‘ </if> <if test="qicp.plateNum != null and qicp.plateNum != ‘‘"> and PLATE_NUM like ‘%${qicp.plateNum}%‘ </if> </if> order by create_date desc)a)aa WHERE aa.rn <= #{endRow} and aa.rn > #{startRow}</select>
原文地址:https://www.cnblogs.com/lazyli/p/12160733.html
时间: 2024-11-03 18:18:57