|
@@ -87,7 +87,27 @@ public class asTaskController {
|
|
return success(classNameMap);
|
|
return success(classNameMap);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @GetMapping("/done-page-aiding")
|
|
|
|
+ @Operation(summary = "获取 Done 家庭经济困难认定审批已办任务分页")
|
|
|
|
+ @PreAuthorize("@ss.hasPermission('eve:task:query')")
|
|
|
|
+ public CommonResult<Map<String,List<AidingStudentPersonManageInfoPageReqVO>>> getTaskDonePageComprehensive(@Valid BpmTaskPageReqVO pageVO) {
|
|
|
|
+ List<HistoricTaskInstance> pageResult = taskService.getTaskDonePageComprehensive(getLoginUserId(), pageVO);
|
|
|
|
+ if (CollUtil.isEmpty(pageResult)) {
|
|
|
|
+ return success(null);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //根据当前任务的idList获取 ,返回关于项目与班级分组的学生材料
|
|
|
|
+ List<AidingStudentsPersonManageDO> aidingStudentsPersonList =
|
|
|
|
+ aidingStudentsPersonManageService.getAidingStudentsPersonManageClassPage(
|
|
|
|
+ convertList(pageResult,HistoricTaskInstance::getProcessInstanceId),pageVO
|
|
|
|
+ );
|
|
|
|
|
|
|
|
+ Map<String, List<AidingStudentPersonManageInfoPageReqVO>> classNameMap =
|
|
|
|
+ BeanUtils.toBean(aidingStudentsPersonList, AidingStudentPersonManageInfoPageReqVO.class).stream()
|
|
|
|
+ .collect(Collectors.groupingBy(AidingStudentPersonManageInfoPageReqVO::getClassName));
|
|
|
|
+
|
|
|
|
+ return success(classNameMap);
|
|
|
|
+ }
|
|
@GetMapping("/list-by-process-instance-id")
|
|
@GetMapping("/list-by-process-instance-id")
|
|
@Operation(summary = "获得指定流程实例的任务列表", description = "包括完成的、未完成的")
|
|
@Operation(summary = "获得指定流程实例的任务列表", description = "包括完成的、未完成的")
|
|
@Parameter(name = "processInstanceId", description = "流程实例的编号", required = true)
|
|
@Parameter(name = "processInstanceId", description = "流程实例的编号", required = true)
|
|
@@ -114,67 +134,6 @@ public class asTaskController {
|
|
formMap, userMap, deptMap));
|
|
formMap, userMap, deptMap));
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
- @GetMapping("/done-page-aiding")
|
|
|
|
- @Operation(summary = "获取 Done 家庭经济困难认定审批已办任务分页")
|
|
|
|
- @PreAuthorize("@ss.hasPermission('eve:task:query')")
|
|
|
|
- public CommonResult<Map<String,List<AidingStudentPersonManageInfoPageReqVO>>> getTaskDonePageComprehensive(@Valid BpmTaskPageReqVO pageVO) {
|
|
|
|
- List<HistoricTaskInstance> pageResult = taskService.getTaskDonePageComprehensive(getLoginUserId(), pageVO);
|
|
|
|
- if (CollUtil.isEmpty(pageResult)) {
|
|
|
|
- return success(null);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- //根据当前任务的idList获取 ,返回关于项目与班级分组的学生材料
|
|
|
|
- List<AidingStudentsPersonManageDO> aidingStudentsPersonList =
|
|
|
|
- aidingStudentsPersonManageService.getAidingStudentsPersonManageClassPage(
|
|
|
|
- convertList(pageResult,HistoricTaskInstance::getProcessInstanceId),pageVO
|
|
|
|
- );
|
|
|
|
-
|
|
|
|
- Map<String, List<AidingStudentPersonManageInfoPageReqVO>> classNameMap =
|
|
|
|
- BeanUtils.toBean(aidingStudentsPersonList, AidingStudentPersonManageInfoPageReqVO.class).stream()
|
|
|
|
- .collect(Collectors.groupingBy(AidingStudentPersonManageInfoPageReqVO::getClassName));
|
|
|
|
-
|
|
|
|
- return success(classNameMap);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-// @GetMapping("done-user-list")
|
|
|
|
-// @Operation(summary = "获取 Done 综测审批已办任务个人")
|
|
|
|
-// @PreAuthorize("@ss.hasPermission('eve:task:query')")
|
|
|
|
-// public CommonResult<List<asTaskRespVO>> getTaskDoneByPeople(@Valid BpmTaskPageReqVO pageVO) {
|
|
|
|
-//
|
|
|
|
-// Long startUserId = pageVO.getUserId();
|
|
|
|
-// List<AidingStudentsPersonManageDO> achievementList
|
|
|
|
-// = aidingStudentsPersonManageService.getAchievementByPeopleAndManageId(startUserId,pageVO.getManageId());
|
|
|
|
-//
|
|
|
|
-// Map<String, AchievementDO> achievementDOMap = convertMap(achievementList,AidingStudentsPersonManageDO::getProcessInstanceId);
|
|
|
|
-// Collection<String> processInstanceIds = convertSet(achievementList,AidingStudentsPersonManageDO::getProcessInstanceId);
|
|
|
|
-//
|
|
|
|
-// List<HistoricTaskInstance> pageResult
|
|
|
|
-// = taskService.getTaskDoneByPeopleAndProcessInstanceIds(getLoginUserId(), pageVO , processInstanceIds);
|
|
|
|
-//
|
|
|
|
-// // 使用 Stream API 来处理
|
|
|
|
-// Map<String, HistoricTaskInstance> latestTasks = pageResult.stream()
|
|
|
|
-// .collect(Collectors.toMap(
|
|
|
|
-// HistoricTaskInstance::getProcessInstanceId,
|
|
|
|
-// task -> task,
|
|
|
|
-// (existingTask, newTask) -> newTask.getEndTime().after(existingTask.getEndTime()) ? newTask : existingTask
|
|
|
|
-// ));
|
|
|
|
-//
|
|
|
|
-// pageResult.removeIf(task -> !latestTasks.get(task.getProcessInstanceId()).equals(task));
|
|
|
|
-//
|
|
|
|
-//
|
|
|
|
-// if (CollUtil.isEmpty(pageResult)) {
|
|
|
|
-// return success(null);
|
|
|
|
-// }
|
|
|
|
-//
|
|
|
|
-// Map<String, HistoricProcessInstance> processInstanceMap = processInstanceService.getHistoricProcessInstanceMap(
|
|
|
|
-// convertSet(pageResult, HistoricTaskInstance::getProcessInstanceId));
|
|
|
|
-// Map<Long, AdminUserRespDTO> userMap = adminUserApi.getUserMap(
|
|
|
|
-// convertSet(processInstanceMap.values(), instance -> Long.valueOf(instance.getStartUserId())));
|
|
|
|
-//
|
|
|
|
-// return success(eveTaskConvert.INSTANCE.buildTaskDoneByPeople(pageResult, processInstanceMap, userMap,achievementDOMap));
|
|
|
|
-// }
|
|
|
|
-//
|
|
|
|
@PutMapping("/approve")
|
|
@PutMapping("/approve")
|
|
@Operation(summary = "通过单项家庭经济困难认定审批")
|
|
@Operation(summary = "通过单项家庭经济困难认定审批")
|
|
@PreAuthorize("@ss.hasPermission('eve:task:update')")
|
|
@PreAuthorize("@ss.hasPermission('eve:task:update')")
|