anderx лет назад: 3
Родитель
Сommit
bdd79b9ad7
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      src/main/java/com/goafanti/common/mapper/AmbInvestMapper.xml

+ 5 - 1
src/main/java/com/goafanti/common/mapper/AmbInvestMapper.xml

@@ -156,7 +156,11 @@
     <if test="roleType==3">
       and a.accept_amb_id = #{ambId}
     </if>
-    order by a.create_time desc
+    order by
+    <if test="roleType==0 or roleType==1">
+    a.status ,
+    </if>
+    a.create_time desc
     <if test="page_sql !=null">
       ${page_sql}
     </if>