这种写法是错误的:在OGNL的表达式中,'true'会被解析成字符,因为java是强类型的
<if test="flag=='true' ">
AND ho.id = #{id}
</if>
应该这样写:
<if test='flag == "true"'>
AND ho.id = #{id}
</if>
这种写法是错误的:在OGNL的表达式中,'true'会被解析成字符,因为java是强类型的
<if test="flag=='true' ">
AND ho.id = #{id}
</if>
应该这样写:
<if test='flag == "true"'>
AND ho.id = #{id}
</if>
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。