| | |
| | | @Autowired |
| | | private ApproveTableService approveTableService; |
| | | @Autowired |
| | | private ProgramConfirmTableService programConfirmTableService; |
| | | @Autowired |
| | | private IUserClient userClient; |
| | | @Autowired |
| | | private WIthdrawService withdrawService; |
| | |
| | | } |
| | | |
| | | @PostMapping("/export-approve-table") |
| | | @Operation(summary = "导出审批表", description = "导出审批表excel") |
| | | @Operation(summary = "导出审批表", description = "导出审批表pdf") |
| | | public void exportApproveTable(String processInstanceId, HttpServletResponse response) { |
| | | |
| | | try { |
| | |
| | | |
| | | } |
| | | |
| | | @PostMapping("/export-confirm-table") |
| | | @Operation(summary = "导出确认表", description = "导出数控程序确认表pdf") |
| | | public void exportConfirmTable(String processInstanceId, HttpServletResponse response) { |
| | | |
| | | try { |
| | | FlowProgramProperties props = flowCommonService.getProgramPropertiesFromHis(processInstanceId); |
| | | String progName = props.getDrawingNo()+"-"+props.getProcessNo()+"-"+props.getProcessEdition(); |
| | | String filename = UrlUtil.encode("数控程序确认表"+progName)+".pdf"; |
| | | response.setHeader("Content-Disposition", "attachment; filename="+filename); |
| | | response.setContentType("application/octet-stream"); |
| | | programConfirmTableService.exportConfirmTable(props,response.getOutputStream()); |
| | | } catch (Exception e) { |
| | | log.error("导出数控程序确认表pdf异常", e); |
| | | throw new RuntimeException(e); |
| | | } |
| | | |
| | | } |
| | | |
| | | @GetMapping("/withdraw") |
| | | @Operation(summary = "撤回任务", description = "从其他任务节点直接撤回编程员节点") |
| | | public R<Void> withdraw(String processInstanceId) { |