<if test=‘Where_Pattern == "123"‘></if>
例如:
根据条件 order by:
<choose>
<when test=‘stateOptions == "1002"‘>
order by OK_TIME
</when>
<otherwise>
ORDER BY ADD_TIME DESC
</otherwise>
</choose>
Mybatis if test中字符串比较
原文:https://www.cnblogs.com/zibujinghan/p/9939851.html