| | |
| | | return R.success(); |
| | | } |
| | | |
| | | @PostMapping("/change-file-name") |
| | | @Operation(summary = "保存机床文件", description = "保存机床文件到磁盘") |
| | | public R<Void> changeFileName(Long id,String name) { |
| | | try { |
| | | machineFileService.changeName(id,name); |
| | | } catch (Exception e) { |
| | | log.error(e.getMessage()); |
| | | return R.fail(e.getMessage()); |
| | | } |
| | | return R.success(); |
| | | } |
| | | |
| | | @GetMapping("/file-his-page") |
| | | @Operation(summary = "修改留历史列表", description = "修改留历史列表") |
| | | public R<IPage<MachineFileChangeHisVO>> changeHisPage(MachineFileChangeHisQueryVO query) { |
| | |
| | | |
| | | @GetMapping("/his-compare") |
| | | @Operation(summary = "对比历史文件内容", description = "对比历史文件内容") |
| | | public R<CompareDataVO> machineFileSave(Long id) { |
| | | public R<CompareDataVO> historyCompare(Long id) { |
| | | try { |
| | | CompareDataVO vo =machineFileService.queryHisContentForCompare(id); |
| | | return R.data(vo); |