浏览代码

feat(message): 倒序

huey 1 年之前
父节点
当前提交
1903bdb2f5
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      src/main/resources/mapper/MessageInfoMapper.xml
  2. 1 0
      src/main/resources/mapper/NoticeInfoMapper.xml

+ 1 - 1
src/main/resources/mapper/MessageInfoMapper.xml

@@ -44,7 +44,7 @@
         <if test="req.publishTimeStart != null and req.publishTimeEnd != null ">
             and b.create_time >= #{req.publishTimeStart} and b.create_time &lt;= #{req.publishTimeEnd}
         </if>
-
+        order by b.create_time desc
     </select>
 
 </mapper>

+ 1 - 0
src/main/resources/mapper/NoticeInfoMapper.xml

@@ -25,5 +25,6 @@
         <if test="req.publishTimeStart != null and req.publishTimeEnd != null ">
             and b.create_time >= #{req.publishTimeStart} and b.create_time &lt;= #{req.publishTimeEnd}
         </if>
+        order by b.create_time desc
     </select>
 </mapper>