소스 검색

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>