Commit db6192ad authored by ms-dev's avatar ms-dev

文章排序优化

parent 23692acd
...@@ -244,11 +244,16 @@ ...@@ -244,11 +244,16 @@
<if test="noFlag != null">and a.ARTICLE_TYPE not like CONCAT('%',#{noFlag},'%')</if> <if test="noFlag != null">and a.ARTICLE_TYPE not like CONCAT('%',#{noFlag},'%')</if>
<if test="orderBy != null"> <if test="orderBy != null">
order by order by
<if test='orderBy=="sort"'>basic_sort</if> <choose>
<if test='orderBy=="date"'>basic_datetime</if> <when test='orderBy=="sort"'>basic_sort</when>
<if test='orderBy=="hit"'>basic_hit</if> <when test='orderBy=="date"'>basic_datetime</when>
<if test='orderBy=="updatedate"'>basic_updatedate</if> <when test='orderBy=="hit"'>basic_hit</when>
<if test='orderBy=="id"'>basic_id</if> <when test='orderBy=="updatedate"'>basic_updatedate</when>
<when test='orderBy=="id"'>basic_id</when>
<otherwise>
${orderBy}
</otherwise>
</choose>
</if> </if>
<if test="orderBy==null"> <if test="orderBy==null">
......
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