<choose>
<when test="status != null and status .size() == 1 and status .contains('1'.toString())">
order by time asc
</when>
<otherwise>
order by sort asc
</otherwise>
</choose>
注意:xml中的字符串的判断必须加toString()方法才能生效
<choose>
<when test="status != null and status .size() == 1 and status .contains('1'.toString())">
order by time asc
</when>
<otherwise>
order by sort asc
</otherwise>
</choose>
注意:xml中的字符串的判断必须加toString()方法才能生效