| | |
| | | @GetMapping("search-list") |
| | | @ApiOperationSupport(order = 3) |
| | | @Operation(summary = "流程查询", description = "查询进行中的所有流程") |
| | | public R<IPage<FlowVO>> overtimeList(@Parameter(description = "任务到达时间开始") LocalDate createTimeBegin, @Parameter(description = "任务到达时间截止")LocalDate createTimeEnd, @Parameter(description = "关键字") String keyword, Query query) { |
| | | public R<IPage<FlowVO>> searchList(@Parameter(description = "任务到达时间开始") LocalDate createTimeBegin, @Parameter(description = "任务到达时间截止")LocalDate createTimeEnd, @Parameter(description = "关键字") String keyword, Query query) { |
| | | IPage<FlowVO> pages = businessService.selectSearchPage(Condition.getPage(query), createTimeBegin,createTimeEnd,keyword); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | @GetMapping("finished-list") |
| | | @ApiOperationSupport(order = 3) |
| | | @Operation(summary = "历史流程查询", description = "查询已完结的所有流程") |
| | | public R<IPage<FlowVO>> finishedList(@Parameter(description = "流程类型")String processDefinitionKey,@Parameter(description = "任务到达时间开始") LocalDate createTimeBegin, @Parameter(description = "任务到达时间截止")LocalDate createTimeEnd, @Parameter(description = "关键字") String keyword, Query query) { |
| | | IPage<FlowVO> pages = businessService.selectFinishedPage(Condition.getPage(query), processDefinitionKey,createTimeBegin,createTimeEnd,keyword); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | @PostMapping("delete-instance") |
| | | @Operation(summary = "流程删除", description = "删除id指定的流程实例") |
| | | public R<Void> deleteInstance(@Parameter(description = "任务到达时间开始") String processInstancesId) { |
| | | public R<Void> deleteInstance(@Parameter(description = "任务到达时间开始") String processInstanceId) { |
| | | try { |
| | | businessService.deleteProcessInstance(processInstancesId); |
| | | businessService.deleteProcessInstance(processInstanceId); |
| | | |
| | | } catch (Exception e) { |
| | | log.error("删除流程失败",e); |
| | |
| | | response.setContentType("application/octet-stream"); |
| | | approveTableService.exportApproveTable(processInstanceId,response.getOutputStream()); |
| | | } catch (Exception e) { |
| | | log.error("导出DNC异常", e); |
| | | log.error("导出审批表异常", e); |
| | | throw new RuntimeException(e); |
| | | } |
| | | |