| | |
| | | if (StringUtils.isNotBlank(taskName)) { |
| | | taskQuery.processDefinitionNameLike(taskName); |
| | | } |
| | | if (! SecurityUtils.getLoginUser().getUser().isAdmin()) { |
| | | taskQuery |
| | | .or() |
| | | .taskCandidateGroupIn(taskCommonService.getCurrentUserGroups()) |
| | | .taskCandidateUser(SecurityUtils.getUserId() + "") |
| | | .taskAssignee(SecurityUtils.getUserId() + "") |
| | | .endOr(); |
| | | } |
| | | result.total(taskQuery.count()); |
| | | List<Task> taskList = taskQuery.listPage(pageSize * (pageNum - 1), pageSize); |
| | | List<IndexCustomerTaskVO> vos = new ArrayList<>(); |
| | |
| | | |
| | | // 流程处理人信息 |
| | | List<IdentityLink> identityLinks = taskService.getIdentityLinksForTask(task.getId()); |
| | | // Boolean aboutMe = taskCommonService.taskAboutMe(identityLinks); |
| | | // if (! aboutMe) { |
| | | // continue; |
| | | // } |
| | | for (IdentityLinkInfo identityLink : identityLinks) { |
| | | // 绑定的是用户,查出用户姓名、部门 |
| | | if (StringUtils.isNotBlank(identityLink.getUserId())) { |