在使用

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

动态拼接order by 语句是${}和#{}是无效的原因,#{}会将参数格式化为 'params',带单引号包括的状态。因此会无效。改为使用${},就OK了


posted on 2018-12-11 11:34  十七年蝉  阅读(1527)  评论(0编辑  收藏  举报