码迷,mamicode.com
首页 > 其他好文 > 详细

Mybatis if test中字符串比较

时间:2018-11-10 17:52:26      阅读:183      评论:0      收藏:0      [点我收藏+]

标签:span   条件   where   when   order   根据   desc   family   esc   

<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中字符串比较

标签:span   条件   where   when   order   根据   desc   family   esc   

原文地址:https://www.cnblogs.com/zibujinghan/p/9939851.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!