| | |
| | | * 新增 |
| | | */ |
| | | @PostMapping("/save") |
| | | @Operation(summary = "新增", description = "机床组信息") |
| | | @Operation(summary = "新增", description = "机床信息") |
| | | public R<Boolean> save(@RequestBody MachineSaveVO vo) { |
| | | |
| | | service.saveMachine(vo); |
| | | try { |
| | | service.saveMachine(vo); |
| | | }catch (Exception e) { |
| | | log.error("新增机床失败", e);; |
| | | return R.fail(e.getMessage()); |
| | | } |
| | | return R.<Boolean>status(true); |
| | | } |
| | | |
| | |
| | | list.add(excelVO); |
| | | }); |
| | | |
| | | ExcelUtil.export(response, "机床数据" + DateUtil.time(), "用户数据表", list, MachineExcelVO.class); |
| | | ExcelUtil.export(response, "机床数据" + DateUtil.time(), "机床数据表", list, MachineExcelVO.class); |
| | | } |
| | | |
| | | @Operation(summary = "产生机床回传结构树", description = "产生机床回传结构树") |