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();