From 3d146d6ea23201e10a54cbacf0c284891965449e Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Wed, 20 Mar 2024 19:50:22 +0800 Subject: [PATCH] =?UTF-8?q?#=20=E6=97=A5=E5=B8=B8=E7=BB=B4=E6=8A=A4?= =?UTF-8?q?=E6=9C=88=E5=BA=A6=E6=9F=A5=E8=AF=A2=E6=8E=92=E5=BA=8F=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../maintenance/service/impl/MaintenanceTaskQueryServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/service/impl/MaintenanceTaskQueryServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/service/impl/MaintenanceTaskQueryServiceImpl.java index 11c2053..2892717 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/service/impl/MaintenanceTaskQueryServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/service/impl/MaintenanceTaskQueryServiceImpl.java @@ -67,7 +67,7 @@ public class MaintenanceTaskQueryServiceImpl implements IMaintenanceTaskQuerySer LambdaQueryWrapper wq = Wrappers.lambdaQuery() .like(OperMaintenanceTaskEntity::getDisposeTime, month) .like(Func.isNotEmpty(deptId),OperMaintenanceTaskEntity::getCreateDept,deptId) - .orderByAsc(OperMaintenanceTaskEntity::getDisposeTime); + .orderByDesc(OperMaintenanceTaskEntity::getDisposeTime); IPage page = maintenanceTaskService.page(Condition.getPage(query), wq); page.setRecords(this.fillTaskQuery(page.getRecords())); return page; @@ -78,7 +78,7 @@ public class MaintenanceTaskQueryServiceImpl implements IMaintenanceTaskQuerySer LambdaQueryWrapper wq = Wrappers.lambdaQuery() .like(OperMaintenanceTaskEntity::getDisposeTime, month) .like(Func.isNotEmpty(deptId),OperMaintenanceTaskEntity::getCreateDept,deptId) - .orderByAsc(OperMaintenanceTaskEntity::getDisposeTime); + .orderByDesc(OperMaintenanceTaskEntity::getDisposeTime); List taskList = maintenanceTaskService.list(wq); if(CollectionUtil.isEmpty(taskList)) { return Lists.newArrayList();