Commit 89d3c7de by 杨林龙

优化通过组织机构回去用户ID的方法

1 parent ba9697e0
...@@ -108,7 +108,7 @@ public class RemoteUserApiService { ...@@ -108,7 +108,7 @@ public class RemoteUserApiService {
Long userId = null; Long userId = null;
List<User> userList = userR.getDataList(new TypeToken<List<User>>() { List<User> userList = userR.getDataList(new TypeToken<List<User>>() {
}.getType()); }.getType());
if (CollectionUtils.isNotEmpty(userList) && userList.size() == 1) { if (CollectionUtils.isNotEmpty(userList)) {
userId = userList.get(0).getId(); userId = userList.get(0).getId();
} }
return userId; return userId;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!