| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.mdm.basesetting.machine.MachineService; |
| | | import org.springblade.mdm.basesetting.machine.service.MachineService; |
| | | import org.springblade.mdm.basesetting.machine.entity.Machine; |
| | | import org.springblade.mdm.basesetting.producedivision.entity.MdmDept; |
| | | import org.springblade.mdm.basesetting.producedivision.service.MdmDeptService; |
| | |
| | | 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); |