diff --git a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/event/ProcessEndAfterEvent.java b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/event/ProcessEndAfterEvent.java index 6895915c..b9d4af0d 100644 --- a/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/event/ProcessEndAfterEvent.java +++ b/com.awspaas.user.apps.app20221008163300/src/com/awspaas/user/apps/app/event/ProcessEndAfterEvent.java @@ -35,6 +35,8 @@ import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.awspaas.user.apps.app.util.UtilUrl; +import static java.util.Arrays.asList; + /** * 补充发送OA待阅 * @@ -217,6 +219,10 @@ public class ProcessEndAfterEvent extends ExecuteListener implements ExecuteList if (UtilString.isNotEmpty(orgIds)) { if (UtilString.isNotEmpty(newOrg)) { newOrg = newOrg + "," + orgIds; + String[] split = newOrg.split(","); + List list = asList(split); + list.stream().distinct(); + newOrg = list.toString(); } else { newOrg = orgIds; } @@ -237,6 +243,10 @@ public class ProcessEndAfterEvent extends ExecuteListener implements ExecuteList if (UtilString.isNotEmpty(reissuePostperm)) { if (UtilString.isNotEmpty(newPost)) { newPost = newPost + "," + reissuePostperm; + String[] split = newPost.split(","); + List list = asList(split); + list.stream().distinct(); + newPost = list.toString(); } else { newPost = reissuePostperm; }