Просмотр исходного кода

用户上级评价新增创建时间倒序排序

anderx 1 год назад
Родитель
Сommit
9c272cf30e
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/main/java/com/goafanti/common/mapper/UserSuperEvaluateMapper.xml

+ 1 - 0
src/main/java/com/goafanti/common/mapper/UserSuperEvaluateMapper.xml

@@ -37,6 +37,7 @@ id, uid, aid, content, create_time
             <if test="aid != null and aid != ''">
             <if test="aid != null and aid != ''">
                 and a.aid = #{aid}
                 and a.aid = #{aid}
             </if>
             </if>
+            order by a.create_time desc
         </where>
         </where>
         <if test="page_sql != null">
         <if test="page_sql != null">
             ${page_sql}
             ${page_sql}