mybatis if else
不过有他的替代 choose,写法如下:
<choose>
<when test="params!=null">
right JOIN
</when>
<otherwise>
LEFT JOIN
</otherwise>
</choose>
以上即可实现 if else 逻辑