Browse Source

# 日常维护月度查询排序逻辑更改

zhongwei
haungxing 8 months ago
parent
commit
3d146d6ea2
  1. 4
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/service/impl/MaintenanceTaskQueryServiceImpl.java

4
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<OperMaintenanceTaskEntity> wq = Wrappers.<OperMaintenanceTaskEntity>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<OperMaintenanceTaskEntity> wq = Wrappers.<OperMaintenanceTaskEntity>lambdaQuery()
.like(OperMaintenanceTaskEntity::getDisposeTime, month)
.like(Func.isNotEmpty(deptId),OperMaintenanceTaskEntity::getCreateDept,deptId)
.orderByAsc(OperMaintenanceTaskEntity::getDisposeTime);
.orderByDesc(OperMaintenanceTaskEntity::getDisposeTime);
List<OperMaintenanceTaskEntity> taskList = maintenanceTaskService.list(wq);
if(CollectionUtil.isEmpty(taskList)) {
return Lists.newArrayList();

Loading…
Cancel
Save