Browse Source

根据流程实例id查询待办列表

lamphua 1 year ago
parent
commit
37766fbbcd

+ 3
- 0
oa-back/ruoyi-flowable/src/main/java/com/ruoyi/flowable/domain/vo/FlowQueryVo.java View File

23
     @ApiModelProperty("流程类别")
23
     @ApiModelProperty("流程类别")
24
     private String category;
24
     private String category;
25
 
25
 
26
+    @ApiModelProperty("流程实例id")
27
+    private String processInsId;
28
+
26
     @ApiModelProperty("开始时间")
29
     @ApiModelProperty("开始时间")
27
     private String startTime;
30
     private String startTime;
28
 
31
 

+ 3
- 0
oa-back/ruoyi-flowable/src/main/java/com/ruoyi/flowable/service/impl/FlowTaskServiceImpl.java View File

770
         if (StringUtils.isNotBlank(queryVo.getCategory())){
770
         if (StringUtils.isNotBlank(queryVo.getCategory())){
771
             taskQuery.processCategoryIn(Collections.singleton(queryVo.getCategory()));
771
             taskQuery.processCategoryIn(Collections.singleton(queryVo.getCategory()));
772
         }
772
         }
773
+        if (StringUtils.isNotBlank(queryVo.getProcessInsId())){
774
+            taskQuery.processInstanceIdIn(Collections.singleton(queryVo.getProcessInsId()));
775
+        }
773
         page.setTotal(taskQuery.count());
776
         page.setTotal(taskQuery.count());
774
         List<Task> taskList = taskQuery.listPage(queryVo.getPageSize() * (queryVo.getPageNum() - 1), queryVo.getPageSize());
777
         List<Task> taskList = taskQuery.listPage(queryVo.getPageSize() * (queryVo.getPageNum() - 1), queryVo.getPageSize());
775
         List<FlowTaskDto> flowList = new ArrayList<>();
778
         List<FlowTaskDto> flowList = new ArrayList<>();

Loading…
Cancel
Save