修复【流程管理】列表中,列表实际条数和总数不一致问题

This commit is contained in:
longxiaonan@163.com 2019-09-29 11:31:30 +08:00
parent 44e83f3c16
commit 40cd371142
1 changed files with 2 additions and 1 deletions

View File

@ -208,7 +208,8 @@ public class ActivitiController extends BaseController {
} }
} }
processDefinitionList = processDefinitionQuery.listPage(Integer.valueOf(limit) * (Integer.valueOf(page) - 1), Integer.valueOf(limit)); processDefinitionList = processDefinitionQuery.listPage(Integer.valueOf(limit) * (Integer.valueOf(page) - 1), Integer.valueOf(limit));
long count = repositoryService.createDeploymentQuery().count(); long count = repositoryService.createProcessDefinitionQuery().count();
// long count = repositoryService.createDeploymentQuery().count();
List<ProcessDefinition> list = new ArrayList<>(); List<ProcessDefinition> list = new ArrayList<>();
processDefinitionList processDefinitionList
.forEach(processDefinition -> list.add(new ProcessDefinition(processDefinition))); .forEach(processDefinition -> list.add(new ProcessDefinition(processDefinition)));