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
f3bfb352
Commit
f3bfb352
authored
Feb 20, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应用策略编辑接口修改
parent
c8c56867
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
22 deletions
+12
-22
UnionEnterpriseAuthApiServiceImpl.java
...e/outer/impl/union/UnionEnterpriseAuthApiServiceImpl.java
+12
-22
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/union/UnionEnterpriseAuthApiServiceImpl.java
View file @
f3bfb352
...
...
@@ -231,35 +231,25 @@ public class UnionEnterpriseAuthApiServiceImpl implements UnionEnterpriseAuthApi
@Override
public
ServiceResponse
<
Void
>
saveOrUpdateUnionEnterpriseAuthApp
(
@Valid
UnionEnterpriseAuthAppDTO
dto
)
{
Integer
unionEnterpriseAuthAppId
=
dto
.
getUnionEnterpriseAuthAppId
();
List
<
TabSysUnionEnterpriseAuthApp
>
appList
=
unionEnterpriseAuthAppService
.
listUnionEnterpriseAuthApp
(
dto
.
getUnionEnterpriseAuthId
());
Set
<
String
>
appIdSet
=
new
HashSet
<>();
if
(
CollectionUtils
.
isNotEmpty
(
appList
))
{
appList
.
forEach
(
e
->
{
String
[]
appIdArr
=
e
.
getAppId
().
split
(
","
);
for
(
String
appId
:
appIdArr
)
{
if
(
StringUtils
.
isBlank
(
appId
))
{
continue
;
}
appIdSet
.
add
(
appId
);
}
//编辑的时候去除本条数据的应用ID,避免校验错误
if
(!
e
.
getUnionEnterpriseAuthAppId
().
equals
(
unionEnterpriseAuthAppId
))
{
String
[]
appIdArr
=
e
.
getAppId
().
split
(
","
);
for
(
String
appId
:
appIdArr
)
{
if
(
StringUtils
.
isBlank
(
appId
))
{
continue
;
}
appIdSet
.
add
(
appId
);
}
}
});
}
Integer
unionEnterpriseAuthAppId
=
dto
.
getUnionEnterpriseAuthAppId
();
//编辑的时候去除本条数据的应用ID,避免校验错误
if
(
unionEnterpriseAuthAppId
!=
null
)
{
TabSysUnionEnterpriseAuthApp
old
=
unionEnterpriseAuthAppService
.
getUnionEnterpriseAuthApp
(
unionEnterpriseAuthAppId
);
if
(
old
!=
null
)
{
String
oldAppId
=
old
.
getAppId
();
String
[]
oldAppIdArr
=
oldAppId
.
split
(
","
);
for
(
String
temp
:
oldAppIdArr
)
{
if
(
StringUtils
.
isNotBlank
(
temp
))
{
appIdSet
.
remove
(
temp
);
}
}
}
}
String
appIdParam
=
dto
.
getAppId
();
String
[]
appIdParamArr
=
appIdParam
.
split
(
","
);
for
(
String
temp
:
appIdParamArr
)
{
...
...
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