| | |
| | | }catch(Exception e){ |
| | | return R.fail(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | @Operation(summary = "编程员现场编制批量处理", description = "编程员现场编制批量处理") |
| | | @PostMapping("batch-program-on-machine") |
| | | public R<Void> batchProgramOnMachine(@RequestBody BatchDispatchVO batchDispatchVO) { |
| | | try { |
| | | dispatchService.batchProgramOnMachine(batchDispatchVO); |
| | | 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")+""; |
| | | |
| | | Task task = taskService.createTaskQuery() |
| | | .taskId(taskId) |
| | | .singleResult(); |
| | | approveRecordService.saveApproveRecords(task,operateResult,comment); |
| | | |
| | | }*/ |
| | | } |