| | |
| | | public class MachineAcceptedFileHandleController { |
| | | |
| | | private final MachineAcceptedFileService acceptedFileService; |
| | | private final MachineFileService machineFileService; |
| | | private final NcProgramExportInnerService ncProgramExportInnerService; |
| | | /** |
| | | * 分页 |
| | |
| | | @GetMapping("export-to-inner") |
| | | @ApiOperationSupport(order = 13) |
| | | @Operation(summary = "导出到涉密网", description = "导出到涉密网") |
| | | public void exportToInner(@Parameter(description = "审批表id数组") String ids, HttpServletResponse response) { |
| | | public void exportToInner(@Parameter(description = "机床接收文件id数组") String ids, HttpServletResponse response) { |
| | | |
| | | if(Func.isBlank(ids)) { |
| | | throw new ServiceException("未选择文件导出"); |
| | | } |
| | | try { |
| | | String prefix = UrlUtil.encode(AuthUtil.getNickName()+"-工控网导出"); |
| | | //String filename =AuthUtil.getNickName()+"-"+ DateUtil.format(DateUtil.now(), "yyyyMMddHHmm")+".zip"; |
| | | String filename = prefix+"-"+ DateUtil.format(DateUtil.now(), "yyyyMMddHHmm")+".zip"; |
| | | |
| | | response.setHeader("Content-Disposition", "attachment; filename="+filename); |