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