我的收藏-表头排序

This commit is contained in:
zhn
2022-12-14 11:07:36 +08:00
parent b3e3738761
commit 0b0ee64818
3 changed files with 18 additions and 4 deletions
@@ -54,6 +54,20 @@
#{item}
</foreach>
</if>
order by occ.create_time desc
<if test="params.orderByField == 'serial_number' or params.orderByField == 'title'">
order by CONVERT( ${params.orderByField} USING gbk) COLLATE gbk_chinese_ci
<if test="params.orderBy != null and params.orderBy != ''">
${params.orderBy}
</if>
</if>
<if test="params.orderByField == 'create_time'">
order by occ.create_time
<if test="params.orderBy != null and params.orderBy != ''">
${params.orderBy}
</if>
</if>
<if test="params.orderByField == null or params.orderByField == ''">
order by occ.create_time desc
</if>
</select>
</mapper>
</mapper>
@@ -297,4 +297,4 @@ public class OnlCgformCollectionServiceImpl extends ServiceImpl<OnlCgformCollect
throw new JeroBootException("删除订阅信息失败!");
}
}
}
}
@@ -4225,7 +4225,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|| "region".equals(orderByField)
|| "technology_territory".equals(orderByField)){
conditionSb.append(" order by " + "CONVERT("+orderByField +"USING gbk) COLLATE gbk_chinese_ci");
conditionSb.append(" order by " + "CONVERT("+orderByField +" USING gbk) COLLATE gbk_chinese_ci");
}else if("issue_time".equals(orderByField)){
conditionSb.append(" order by " + (String) parameter.get("orderByField"));
}