<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百度