honorfire 8 ماه پیش
والد
کامیت
0561c12663

+ 3 - 3
snowy-plugin/snowy-plugin-disk/snowy-plugin-disk-func/src/main/java/vip/xiaonuo/disk/mapper/mapping/CourseAuditRecordMapper.xml

@@ -78,7 +78,7 @@
         <if test="param.suffix!=null and param.suffix != ''">
             and t2.EXTEND_NAME like CONCAT('%',#{param.suffix}, '%')
         </if>
-        order by t1.ID desc
+        order by t1.CREATE_TIME desc
     </select>
 
     <select id="queryResourceCentreList" resultType="java.util.Map">
@@ -145,7 +145,7 @@
         </if>
         <if test="param.sortflag !=null and param.sortflag != ''">
             <if test=" param.sortflag == 0">
-                order by t1.ID desc
+                order by t1.CREATE_TIME desc
             </if>
             <if test=" param.sortflag == 1">
                 ORDER BY t1.IS_HOT=1 DESC, t1.VIEW_COUNT DESC
@@ -240,7 +240,7 @@
         <if test="userId!=null and userId != ''">
             and t1.CREATE_USER =#{userId}
         </if>
-        ORDER BY t1.ID desc
+        ORDER BY t1.CREATE_TIME desc
         limit 1
     </select>
 </mapper>