|
@@ -1275,8 +1275,12 @@ public class ProjectController {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- boolean equals = allParticipations.stream().map(al -> al.getUserId()).sorted().collect(Collectors.joining()).equals(participationList.stream().sorted().map(pl -> pl.getUserId()).sorted().collect(Collectors.joining()));
|
|
|
- if(!equals){
|
|
|
+ List<String> collect = allParticipations.stream().map(al -> al.getUserId()).distinct().collect(Collectors.toList());
|
|
|
+ List<String> collect1 = participationList.stream().map(pl -> pl.getUserId()).distinct().collect(Collectors.toList());
|
|
|
+
|
|
|
+ if(collect.size()!=collect1.size()){
|
|
|
+ sb.append("["+item.getProjectCode()+"/"+item.getProjectCode()+"]"+"\n");
|
|
|
+ }else if(!collect.containsAll(collect1)){
|
|
|
sb.append("["+item.getProjectCode()+"/"+item.getProjectCode()+"]"+"\n");
|
|
|
}
|
|
|
if(participationList.size()>0){
|