| | |
| | | */ |
| | | @PostMapping("patrol-complete-task") |
| | | @ApiOperation(value = "完成任务", notes = "传入流程信息") |
| | | public R completeTask(PatrolTask patrolTask, String currentUserId) { |
| | | return R.status(patrolTaskService.patrolCompleteTask(patrolTask,currentUserId)); |
| | | public R completeTask(PatrolTask patrolTask, String currentUserId,String taskUser) { |
| | | return R.status(patrolTaskService.patrolCompleteTask(patrolTask,currentUserId,taskUser)); |
| | | } |
| | | |
| | | /** |
| | |
| | | List<BladeFlow> data = res.getData(); |
| | | data.forEach(bladeFlow -> { |
| | | PatrolTask byId = patrolTaskService.customizeGetById(bladeFlow.getBusinessId()); |
| | | byId.setFlow(bladeFlow); |
| | | patrolTaskList.add(byId); |
| | | if (byId != null){ |
| | | byId.setFlow(bladeFlow); |
| | | patrolTaskList.add(byId); |
| | | } |
| | | }); |
| | | } |
| | | //设置数据集 |