Mybatis if 标签比较字符串

315 阅读1分钟

mybatis 使用if 判断字符串
使用字符串的toString方法,再进行比较即可

<if test="accompanyStatus == '1'.toString()">