Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-platform-enterprise
Commits
8903649a
Commit
8903649a
authored
Feb 25, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联合商户,资源组授权列表标志是否已经授权
parent
9001dda3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
UnionEnterpriseAuthController.java
...e/web/controller/union/UnionEnterpriseAuthController.java
+11
-1
No files found.
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/union/UnionEnterpriseAuthController.java
View file @
8903649a
...
...
@@ -181,10 +181,11 @@ public class UnionEnterpriseAuthController {
/**
* 资源组
* @param enterpriseId 联合商户ID
* @return
*/
@RequestMapping
(
"list-resource-group"
)
public
RestResponse
listResourceGroup
()
{
public
RestResponse
listResourceGroup
(
Integer
enterpriseId
)
{
ServiceResponse
<
List
<
ResourceGroupDTO
>>
response
=
resourceGroupApiService
.
listResourceGroup
(
null
,
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
if
(
response
.
isSuccess
())
{
...
...
@@ -193,11 +194,20 @@ public class UnionEnterpriseAuthController {
ServiceResponse
<
List
<
UnionEnterpriseAuthDTO
>>
unionEnterpriseResponse
=
unionEnterpriseAuthApiService
.
listUnionEnterpriseAuth
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
Set
<
String
>
authResourceGroupSet
=
new
HashSet
<>();
if
(
unionEnterpriseResponse
.
isSuccess
())
{
List
<
UnionEnterpriseAuthDTO
>
unionEnterprise
=
unionEnterpriseResponse
.
getResult
();
if
(
CollectionUtils
.
isNotEmpty
(
unionEnterprise
))
{
authResourceGroupSet
=
unionEnterprise
.
stream
()
.
filter
(
e
->
e
.
getResourceGroupId
()
!=
null
)
.
filter
(
e
->
{
if
(
enterpriseId
!=
null
)
{
if
(
e
.
getUnionEnterpriseId
().
equals
(
enterpriseId
))
{
return
false
;
}
}
return
true
;
})
.
map
(
e
->
e
.
getResourceGroupId
().
toString
())
.
collect
(
Collectors
.
toSet
());
}
...
...
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