mybatis 判断字符是否相等

mybatis 判断字符是否相等

1.外面单引号 里面双引号表示字符串

        <if test='showColumn == null or showColumn == "" '>
                srr.id
            </if>
            <if test='showColumn != null and showColumn != "" and showColumn != "*"'>
                srr.id,${showColumn}
            </if>
            <if test='showColumn != null and showColumn != "" and showColumn == "*"'>
                ${showColumn}
            </if>

 

posted @ 2022-10-25 11:49  java架构师1  阅读(174)  评论(0)    收藏  举报