| | |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.mdm.commons.vo.IdsVO; |
| | | import org.springblade.mdm.program.service.NcProgramApprovedService; |
| | | import org.springblade.mdm.program.service.NcProgramExportDNCService; |
| | | import org.springblade.mdm.program.service.NcProgramService; |
| | | import org.springblade.mdm.program.vo.NcNodeProgramQueryVO; |
| | | import org.springblade.mdm.program.vo.NcProgramExportDncPageVO; |
| | |
| | | |
| | | private final NcProgramService ncProgramService; |
| | | private final NcProgramApprovedService ncProgramApprovedService; |
| | | private final NcProgramExportDNCService ncProgramExportDNCService; |
| | | @Operation(summary = "程序导出DNC分页查询", description = "分页查询,供用户选择数据") |
| | | @GetMapping("/export-dnc-page") |
| | | public R<IPage<NcProgramExportDncPageVO>> page(NcProgramExportDncQueryVO query) { |
| | |
| | | throw new ServiceException("未选择文件导出"); |
| | | } |
| | | try { |
| | | ncProgramApprovedService.exportDnc(vo.getIds(),response.getOutputStream()); |
| | | ncProgramExportDNCService.exportDnc(vo.getIds(),response.getOutputStream()); |
| | | } catch (IOException e) { |
| | | log.error("导出DNC异常", e); |
| | | throw new RuntimeException(e); |