Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
elearn
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj
elearn
Commits
48a40242
Commit
48a40242
authored
Mar 27, 2025
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据隔离
parent
57a7bd07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
cloud-system/src/main/java/com/yizhi/system/application/service/impl/AuthServiceImpl.java
+10
-0
No files found.
cloud-system/src/main/java/com/yizhi/system/application/service/impl/AuthServiceImpl.java
View file @
48a40242
...
@@ -165,6 +165,16 @@ public class AuthServiceImpl implements AuthService {
...
@@ -165,6 +165,16 @@ public class AuthServiceImpl implements AuthService {
// 缓存未命中
// 缓存未命中
// 1. 默认站点,企业下所有人员都可以访问
// 1. 默认站点,企业下所有人员都可以访问
Account
account
=
accountMapper
.
selectById
(
accountId
);
Account
account
=
accountMapper
.
selectById
(
accountId
);
// 1. 查询角色
List
<
AuthzRole
>
roles
=
roleMapper
.
getByAccountId
(
accountId
);
if
(!
CollectionUtils
.
isEmpty
(
roles
))
{
List
<
Long
>
siteIdList
=
roles
.
stream
().
map
(
AuthzRole:
:
getSiteId
).
distinct
().
collect
(
Collectors
.
toList
());
siteIds
.
addAll
(
siteIdList
);
}
Site
site
=
new
Site
();
Site
site
=
new
Site
();
site
.
setCompanyId
(
account
.
getCompanyId
());
site
.
setCompanyId
(
account
.
getCompanyId
());
site
.
setEnabled
(
Boolean
.
valueOf
(
true
));
site
.
setEnabled
(
Boolean
.
valueOf
(
true
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment