How to write if else in mybatis

If there is no else in mybaits, use choose when otherwise instead

<choose>
    <when test="">
        //...
    </when>
    <otherwise>
        //...
    </otherwise>
</choose>

 

Guess you like

Origin blog.csdn.net/lw112190/article/details/108195358