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
01a1e20c
Commit
01a1e20c
authored
Feb 20, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应用策略编辑接口修改
parent
fb6abff7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
UnionEnterpriseAuthApiServiceImpl.java
...e/outer/impl/union/UnionEnterpriseAuthApiServiceImpl.java
+15
-2
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/union/UnionEnterpriseAuthApiServiceImpl.java
View file @
01a1e20c
...
...
@@ -245,6 +245,21 @@ public class UnionEnterpriseAuthApiServiceImpl implements UnionEnterpriseAuthApi
});
}
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
)
{
...
...
@@ -256,8 +271,6 @@ public class UnionEnterpriseAuthApiServiceImpl implements UnionEnterpriseAuthApi
}
}
Integer
unionEnterpriseAuthAppId
=
dto
.
getUnionEnterpriseAuthAppId
();
if
(
unionEnterpriseAuthAppService
.
isRepeatStrategyName
(
unionEnterpriseAuthAppId
,
dto
.
getUnionEnterpriseAuthId
(),
dto
.
getStrategyName
()))
{
throw
new
CommonException
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"策略名称重复"
);
}
...
...
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