1.mybatis的输出语句其实和执行的是有出入的,空格会自动去掉
2.mybatis如果在
3.当MyBatis 判断条件为等于的时候,常量需要加 .toString() 来转换,这种方法是稳定的,推荐使用,比如: 如果不这样的话,可能是有问题的1
2
3<if test="newsImage != null and newsImage == '0'.toString()">
<![CDATA[ and len(newsImage) > 0 ]]>
</if>
4.
Man can only rely on himself
1.mybatis的输出语句其实和执行的是有出入的,空格会自动去掉
2.mybatis如果在
3.当MyBatis 判断条件为等于的时候,常量需要加 .toString() 来转换,这种方法是稳定的,推荐使用,比如: 如果不这样的话,可能是有问题的1
2
3<if test="newsImage != null and newsImage == '0'.toString()">
<![CDATA[ and len(newsImage) > 0 ]]>
</if>
4.