feat: There is no way the

This commit is contained in:
super_liu
2021-09-27 15:39:08 +08:00
parent 5080f65dfc
commit f583e7983b
@@ -48,18 +48,14 @@ public class TaskController {
@ApiOperation(value = "流程实例明细验证是否完成") @ApiOperation(value = "流程实例明细验证是否完成")
@GetMapping("/get_verify_by_instance") @GetMapping("/get_verify_by_instance")
public long get_verify_by_instance(String taskId,String pId) { public long get_verify_by_instance(String taskId,String pId) {
Map<String, Object> map = new TreeMap<>(); HistoricTaskInstanceQuery historicTaskInstanceQuery = historyService.createHistoricTaskInstanceQuery()
QueryWrapper queryWrapper = new QueryWrapper(); .processInstanceId(pId).taskId(taskId).finished();
queryWrapper.eq("TASK_ID",taskId); List<HistoricTaskInstance> list = historicTaskInstanceQuery.list();
queryWrapper.eq("P_ID",pId); long count = 0;
queryWrapper.eq("COMMIT_FLAG","0"); if(!list.isEmpty()){
long count1 = iBusProcessNewService.count(queryWrapper); count = list.size();
QueryWrapper queryWrapper1 = new QueryWrapper(); }
queryWrapper1.eq("TASK_ID",taskId); return count;
queryWrapper1.eq("P_ID",pId);
queryWrapper1.eq("FINISH_FLAG","0");
long count2 = iBusProcessNewService.count(queryWrapper1);
return count1 + count2;
} }