Commit 39a747a6 authored by 赵啸非's avatar 赵啸非

动态字段调整排序逻辑

parent 739cc144
......@@ -376,8 +376,6 @@
<sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()">
order by
fieldType IN('top','date') DESC ,fieldValue DESC,
<trim suffixOverrides="," suffix="">
<foreach collection="orderColList" open="" close="" index="index" item="item" separator=",">
${item.colName} ${item.sortKind}
......@@ -386,8 +384,6 @@
</if>
<if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()">
order by
fieldType IN('top','date') DESC ,fieldValue DESC,
<trim suffixOverrides="," suffix="">
<if test="orderCol.containsKey('id')">
a.id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment