Commit 437b6337 authored by zhengyi's avatar zhengyi

批量审批不通过操作bug修复

parent 869e1a6a
......@@ -25,6 +25,7 @@ import javax.annotation.Resource;
import javax.validation.Valid;
import java.util.Comparator;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
......@@ -148,7 +149,7 @@ public class BpmTaskController {
taskExtMapper.selectListByProcessInstanceId(reqVO.getId());
if (taskList1 == null || taskList1.size() == 0) continue;
List<BpmTaskExtDO> taskList = taskList1.stream().filter(t -> t.getAssigneeUserId() == l.getId()).
List<BpmTaskExtDO> taskList = taskList1.stream().filter(t -> Objects.equals(t.getAssigneeUserId(),l.getId())).
sorted(Comparator.comparingLong(BpmTaskExtDO::getId).reversed()).
collect(Collectors.toList());
if (taskList == null) continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment