diff --git a/renren-admin/src/main/java/io/renren/modules/warningList/controller/WarningListController.java b/renren-admin/src/main/java/io/renren/modules/warningList/controller/WarningListController.java index 7edb9f1c..1bfcf78c 100644 --- a/renren-admin/src/main/java/io/renren/modules/warningList/controller/WarningListController.java +++ b/renren-admin/src/main/java/io/renren/modules/warningList/controller/WarningListController.java @@ -99,6 +99,7 @@ public class WarningListController { queryWrapper.between("capture_time",dateBegin,dateEnd); } } + queryWrapper.orderByDesc("capture_time"); warningListControllerDao.selectPage(page1,queryWrapper); List warningEntityList = page1.getRecords(); long num = page1.getTotal(); diff --git a/renren-admin/src/main/resources/mapper/taskList/TaskListControllerDao.xml b/renren-admin/src/main/resources/mapper/taskList/TaskListControllerDao.xml index a92f6580..4fd52873 100644 --- a/renren-admin/src/main/resources/mapper/taskList/TaskListControllerDao.xml +++ b/renren-admin/src/main/resources/mapper/taskList/TaskListControllerDao.xml @@ -13,6 +13,6 @@ - Delete from tb_task_list where 1=1 + TRUNCATE TABLE tb_task_list \ No newline at end of file