<if test="amounttype == '1'">
and AMOUNT >= 1000000 </if> <if test="amounttype == '10'"> and AMOUNT >= 10000000 </if>这样写法判断是10 的时候进入,1的时候不进入,最后百度搜索到
<if test='amounttype == "1" '>
and AMOUNT >= 1000000 </if> <if test='amounttype == "10" '> and AMOUNT >= 10000000 </if>
https://blog.csdn.net/jekxi/article/details/52050116