From 5bcc169e0e1d9a97bcb4a229f7171a3ea261a420 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?niohe=C2=B7erbao?= Date: Mon, 3 Apr 2023 11:45:14 +0800 Subject: [PATCH] =?UTF-8?q?fix=E7=94=A8=E6=88=B7=20=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java | 1 + 1 file changed, 1 insertion(+) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java index 76b0ac4..badfff0 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java @@ -158,6 +158,7 @@ public class UserInfoManage { * @param userRoleList */ private List getRoleCompliantEmployeeCodeList(List userRoleList) { + userRoleList = userRoleList.stream().filter(r -> Objects.nonNull(r.getId())).collect(Collectors.toList()); if (CollUtil.isEmpty(userRoleList)) { return null; }