0
点赞
收藏
分享

微信扫一扫

Mybatis中标签判断字符串等于某值

星巢文化 2022-04-21 阅读 107
java后端
<if test="flag != null and flag!='' and flag=='1'.toString()">
      sql语句
 </if>

注意点:

mybatis中判断字符串为某一个值,必须+toString()或者flage==“xxx” (双引号),否则无法进入该判断

举报

相关推荐

0 条评论