调研流程重复的部门对接人和部长 相同情况下需要合并为一条待办

This commit is contained in:
yuezhihang
2021-12-27 19:30:25 +08:00
parent e1139715a7
commit 3284dcd1a9
@@ -96,10 +96,16 @@ public class ResponUserSignAfter implements TaskListener {
count++;
delegateTask.setVariable("task2OKCount",count);
}
if(count>=delegateTask.getVariable("responUserLists",List.class).size()){
if(count>=responUserList.size()){
if(delegateTask.getVariable("actionFlag",Integer.class)==0){
if(nextUserList != null && !nextUserList.isEmpty()){
for(String nextUser : nextUserList){
List<String> res=new ArrayList<>();
nextUserList.forEach(s -> {
if (!res.contains(s)){
res.add(s);
}
});
for(String nextUser : res){
BusProcessNew busProcessNewNext = new BusProcessNew();
busProcessNewNext.setMsgType("clause");
busProcessNewNext.setPId(delegateTask.getProcessInstanceId());