<if test="flag != null and flag!='' and flag=='1'.toString()">
sql语句
</if>
注意点:
mybatis中判断字符串为某一个值,必须+toString()或者flage==“xxx” (双引号),否则无法进入该判断
Mybatis中标签判断字符串等于某值
阅读 107
2022-04-21
<if test="flag != null and flag!='' and flag=='1'.toString()">
sql语句
</if>
注意点:
mybatis中判断字符串为某一个值,必须+toString()或者flage==“xxx” (双引号),否则无法进入该判断
相关推荐
精彩评论(0)