Browse Source

公出列表修改

anderx 1 year ago
parent
commit
497683f4ef
1 changed files with 2 additions and 8 deletions
  1. 2 8
      src/main/java/com/goafanti/common/mapper/PublicReleaseMapper.xml

+ 2 - 8
src/main/java/com/goafanti/common/mapper/PublicReleaseMapper.xml

@@ -384,14 +384,8 @@
         </if>
         where 1=1
         <include refid="listPublicReleaseSql"/>
-        <if test="type==2 or type==4">
-            ORDER BY a.create_time desc
-        </if>
-        <if test="type==0 or type==1 or type==3">
-            ORDER BY (case when a.status=1 then 1 when a.status=2 then 2 when a.status=3 then 5
-            when a.status=0 then 3 when a.status=4 then 4
-            else 0 end),a.create_time desc
-        </if>
+        ORDER BY (case when a.status=1 then 1 when a.status=2 then 2 when a.status=3 then 5
+            when a.status=0 then 3 when a.status=4 then 4 else 0 end),a.create_time desc
         <if test="page_sql!=null">
             ${page_sql}
         </if>