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
6bf28ff7
Commit
6bf28ff7
authored
Feb 26, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联合商户被授权的账号分组数据
parent
30f2e2f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
UnionEnterpriseAuthApiServiceImpl.java
...e/outer/impl/union/UnionEnterpriseAuthApiServiceImpl.java
+20
-0
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/union/UnionEnterpriseAuthApiServiceImpl.java
View file @
6bf28ff7
...
...
@@ -251,6 +251,26 @@ public class UnionEnterpriseAuthApiServiceImpl implements UnionEnterpriseAuthApi
}
@Override
public
ServiceResponse
<
List
<
UnionEnterpriseAuthDTO
>>
listOwnEnterpriseAuth
(
@NotNull
Integer
unionEnterpriseId
)
{
List
<
TabSysUnionEnterpriseAuth
>
list
=
unionEnterpriseAuthService
.
listOwnEnterpriseAuth
(
unionEnterpriseId
);
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityListNew
(
UnionEnterpriseAuthDTO
.
class
,
list
));
}
@Override
public
ServiceResponse
<
Map
<
Integer
,
List
<
Integer
>>>
getAccountGroupOfOwnEnterpriseAuth
(
@NotNull
Integer
unionEnterpriseId
)
{
List
<
TabSysUnionEnterpriseAuth
>
list
=
unionEnterpriseAuthService
.
listOwnEnterpriseAuth
(
unionEnterpriseId
);
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
return
ServiceResponse
.
success
(
list
.
stream
()
.
filter
(
e
->
StringUtils
.
isNotBlank
(
e
.
getAccountGroup
()))
.
collect
(
Collectors
.
toMap
(
e
->
e
.
getOwnEnterpriseId
(),
e
->
{
String
[]
accountGroupArr
=
e
.
getAccountGroup
().
split
(
","
);
return
Arrays
.
stream
(
accountGroupArr
).
mapToInt
(
accountGroup
->
Integer
.
parseInt
(
accountGroup
)).
boxed
().
collect
(
Collectors
.
toList
());
})));
}
return
ServiceResponse
.
success
(
new
HashMap
<>());
}
@Override
public
ServiceResponse
<
UnionEnterpriseAuthDTO
>
getUnionEnterpriseAuthByResourceGroupId
(
@NotNull
Integer
resourceGroupId
)
{
List
<
TabSysUnionEnterpriseAuth
>
listByResourceGroup
=
unionEnterpriseAuthService
.
listUnionEnterpriseAuthByResourceGroupId
(
resourceGroupId
);
if
(
CollectionUtils
.
isNotEmpty
(
listByResourceGroup
))
{
...
...
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