浏览代码

fix 排序

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>