问题:
test使用 test="pageFristItem != null and pageFristItem !=’ ’ " 只有字符串可以,如果test里面参数是数字,就不失效了,
处理办法:
使用 ‘数字’.toString()就可以解决。
代码:
<if test="pageFristItem != null and pageFristItem !='' and pageLastItem != null and pageLastItem !='' and pageLastItem != '0'.toString()">
LIMIT #{pageFristItem},#{pageLastItem}
</if>