Ver Fonte

feat(message): 倒序

huey há 1 ano atrás
pai
commit
1903bdb2f5

+ 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>