Browse Source

排序修改

anderx 3 years ago
parent
commit
3c3c6d5ae4
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/main/java/com/goafanti/common/mapper/PublicReleaseMapper.xml

+ 3 - 1
src/main/java/com/goafanti/common/mapper/PublicReleaseMapper.xml

@@ -555,7 +555,9 @@ a.assist,a.assist_aid assistAid,a.assist_aid_name assistAidName,a.type,a.main_na
 	<if test="clockIn !=null">
 	and a.clock_in = #{clockIn}
 	</if>
-	ORDER BY (case when a.status=1 then 1 else 2 end),a.status ,a.create_time desc
+    ORDER BY (case when a.status=1 then 1 when a.status=2 then 2 when a.status=3 then 3
+    when a.status=0 then 4 when a.status=4 then 5 when a.status=3 then 6
+    else 0 end),a.status ,a.create_time desc
   	<if test="page_sql!=null">
 			${page_sql}
 	</if>