Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
32b99882
authored
Oct 15, 2023
by
huangjy
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
dae63f20
9882bce2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
server-service/src/main/java/com/makeit/service/platform/auth/PlatOrgService.java
server-service/src/main/java/com/makeit/service/platform/auth/impl/PlatOrgServiceImpl.java
server-service/src/main/java/com/makeit/service/platform/auth/PlatOrgService.java
View file @
32b99882
...
...
@@ -108,4 +108,12 @@ public interface PlatOrgService extends IService<PlatOrg> {
PlatOrgSplitDTO
getOrgSplitVO
(
String
orgId
);
PageVO
<
PlatOrg
>
childPage
(
PageReqDTO
<
PlatOrgQueryDTO
>
pageReqDTO
);
/**
* 排除租户账号
*
* @param param
* @return
*/
List
<
PlatOrg
>
belongToScopeListIgnoreTenant
(
PlatOrg
param
);
}
server-service/src/main/java/com/makeit/service/platform/auth/impl/PlatOrgServiceImpl.java
View file @
32b99882
...
...
@@ -697,4 +697,18 @@ public class PlatOrgServiceImpl extends ServiceImpl<PlatOrgMapper, PlatOrg>
return
PageUtil
.
toPageVO
(
pageList
.
getRecords
(),
pageList
);
}
@Override
public
List
<
PlatOrg
>
belongToScopeListIgnoreTenant
(
PlatOrg
param
)
{
PlatUserVO
userVO
=
PlatUserUtil
.
getUserVOCanNull
();
//平台账号
Set
<
String
>
orgIdList
=
getOrgIdListByUserId
(
userVO
.
getId
());
List
<
PlatOrg
>
orgList
=
this
.
list
(
new
LambdaQueryWrapper
<
PlatOrg
>()
.
eq
(
StringUtils
.
isNotEmpty
(
param
.
getType
()),
PlatOrg:
:
getType
,
param
.
getType
())
.
in
(
BaseEntity:
:
getId
,
orgIdList
).
eq
(
PlatOrg:
:
getStatus
,
CommonEnum
.
YES
.
getValue
()));
if
(
CollectionUtils
.
isEmpty
(
orgList
))
{
return
new
ArrayList
<>();
}
return
orgList
;
}
}
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