| | |
| | | |
| | | } |
| | | |
| | | @Operation(summary = "批量派工", description = "组长批量派工") |
| | | @Operation(summary = "手动批量派工", description = "组长手动批量派工") |
| | | @PostMapping("batchDispatch") |
| | | public R<Void> batchDispatch(String[] taskIds, String[] processInstanceIds, @Parameter(name = "comment", description = "备注")String comment,@Parameter(name = "assignee", description = "处理人id") String assignee) { |
| | | try { |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | @Operation(summary = "自动批量派工", description = "组长批量派工,后端自动查找处理人") |
| | | @PostMapping("batchDispatchAuto") |
| | | public R<Void> batchDispatchAuto(String[] taskIds, String[] processInstanceIds, @Parameter(name = "comment", description = "备注")String comment) { |
| | | try { |
| | | dispatchService.batchAutoCompleteTask(taskIds, processInstanceIds, comment); |
| | | return R.success("流程提交成功"); |
| | | }catch(Exception e){ |
| | | return R.fail(e.getMessage()); |
| | | } |
| | | |
| | | } |
| | | /* |
| | | void addApproveRecord(String taskId,String comment,Map<String, Object> variables){ |
| | | String operateResult = variables.get("approve")+""; |