tanzh преди 3 години
родител
ревизия
31dbb1c0b2
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      zhongzheng-system/src/main/resources/mapper/modules/user/UserCourseAnswerMapper.xml

+ 2 - 2
zhongzheng-system/src/main/resources/mapper/modules/user/UserCourseAnswerMapper.xml

@@ -116,10 +116,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             </if>
         </if>
         <if test="sort != null and sort == 0">
-            order by uca.create_time
+            order by uca.create_time desc
         </if>
         <if test="sort == null and sort == ''">
-            order by uca.create_time desc
+            order by uca.create_time
         </if>
     </select>