Mybatis if判断等于无效问题

错误示范:

<if test="sort == '0'">
	ORDER BY id  desc
</if>

正确写法:

<if test='sort == "0"'>
	ORDER BY a.id desc
</if>

猜你喜欢

转载自blog.csdn.net/qq_16409287/article/details/81232346