From 9eeab30dcfbf86ebba4e4b56532ed4c88bdbf3e9 Mon Sep 17 00:00:00 2001 From: JunheZhang <1551368011@qq.com> Date: Fri, 27 May 2022 14:08:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6=E4=BF=A1=E6=81=AF=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E4=BF=A1=E6=81=AF=E6=8C=89=E6=97=B6=E9=97=B4=E5=80=92?= =?UTF-8?q?=E5=BA=8F=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/warningList/controller/WarningListController.java | 1 + .../main/resources/mapper/taskList/TaskListControllerDao.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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