告警信息查询信息按时间倒序展示

This commit is contained in:
JunheZhang 2022-05-27 14:08:43 +08:00
parent 03db648aee
commit 9eeab30dcf
2 changed files with 2 additions and 1 deletions

View File

@ -99,6 +99,7 @@ public class WarningListController {
queryWrapper.between("capture_time",dateBegin,dateEnd);
}
}
queryWrapper.orderByDesc("capture_time");
warningListControllerDao.selectPage(page1,queryWrapper);
List<WarningListControllerEntity> warningEntityList = page1.getRecords();
long num = page1.getTotal();

View File

@ -13,6 +13,6 @@
</resultMap>
<delete id="deleteAll">
Delete from tb_task_list where 1=1
TRUNCATE TABLE tb_task_list
</delete>
</mapper>