fix task definition page info total count (#9354)

dependabot/maven/org.springframework-spring-core-5.3.18
Tq 2022-04-06 09:57:20 +08:00 committed by GitHub
parent 40b73f7962
commit 4873ec8a45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -695,7 +695,6 @@ public class TaskDefinitionServiceImpl extends BaseServiceImpl implements TaskDe
});
}
taskMainInfoIPage.setRecords(Lists.newArrayList(taskMainInfoMap.values()));
taskMainInfoIPage.setTotal(taskMainInfoMap.values().size());
}
PageInfo<TaskMainInfo> pageInfo = new PageInfo<>(pageNo, pageSize);
pageInfo.setTotal((int) taskMainInfoIPage.getTotal());