| | |
| | | public R<List<NcProgramVO>> send(@Parameter(description="所属节点ID")@RequestParam Long id) { |
| | | return null;//R.data(ncProcessProgRefService.listByProcess(processInstanceId)); |
| | | } |
| | | |
| | | @GetMapping("/send-to-machine-by-nodeid") |
| | | @Operation(summary = "下发", description = "下发给机床设定的目录") |
| | | public R<Void> sendToMachineByNodeId(@Parameter(description = "节点id") Long nodeId) { |
| | | try { |
| | | ncProgramService.sendByBindNodeId(nodeId); |
| | | return R.success(); |
| | | }catch(Exception e) { |
| | | log.error("删除文件失败",e); |
| | | return R.fail(e.getMessage()); |
| | | } |
| | | } |
| | | } |