| | |
| | | * 新增 |
| | | */ |
| | | @PostMapping("/save") |
| | | @Operation(summary = "新增", description = "机床组信息") |
| | | @Operation(summary = "新增", description = "机床信息") |
| | | public R<Boolean> save(@RequestBody MachineSaveVO vo) { |
| | | |
| | | service.saveMachine(vo); |
| | |
| | | @GetMapping("export") |
| | | @ApiOperationSupport(order = 13) |
| | | @Operation(summary = "导出机床", description = "名称或编码") |
| | | public void exportUser(MachineQueryVO query, HttpServletResponse response) { |
| | | public void export(MachineQueryVO query, HttpServletResponse response) { |
| | | query.setCurrent(1); |
| | | query.setSize(Integer.MAX_VALUE); |
| | | IPage<MachineVO> pages = service.pageQuery(query); |
| | |
| | | list.add(excelVO); |
| | | }); |
| | | |
| | | ExcelUtil.export(response, "机床数据" + DateUtil.time(), "用户数据表", list, MachineExcelVO.class); |
| | | ExcelUtil.export(response, "机床数据" + DateUtil.time(), "机床数据表", list, MachineExcelVO.class); |
| | | } |
| | | |
| | | @Operation(summary = "产生机床回传结构树", description = "产生机床回传结构树") |