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
f2fdaf16
Commit
f2fdaf16
authored
Mar 10, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
平台规则新增/编辑修改
parent
2d74af79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ConfigRuleApiServiceImpl.java
...terprise/service/outer/impl/ConfigRuleApiServiceImpl.java
+4
-2
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/ConfigRuleApiServiceImpl.java
View file @
f2fdaf16
...
...
@@ -59,7 +59,8 @@ public class ConfigRuleApiServiceImpl implements ConfigRuleApiService {
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"应用code重复"
);
}
//填充
dto
.
setRuleName
(
getAppList
().
get
(
dto
.
getAppCode
()));
dto
.
setAppName
(
getAppList
().
get
(
dto
.
getAppCode
()));
dto
.
setRuleName
(
dto
.
getRuleName
());
dto
.
setParentRuleId
(
0
);
dto
.
setRuleLevel
(
1
);
Integer
ruleId
=
configRuleService
.
saveRule
(
dto
);
...
...
@@ -99,7 +100,8 @@ public class ConfigRuleApiServiceImpl implements ConfigRuleApiService {
if
(
configRuleService
.
isRepeatAppCode
(
dto
.
getRuleId
(),
dto
.
getAppCode
()))
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"应用code重复"
);
}
record
.
setRuleName
(
getAppList
().
get
(
dto
.
getAppCode
()));
record
.
setAppName
(
getAppList
().
get
(
dto
.
getAppCode
()));
record
.
setRuleName
(
dto
.
getRuleName
());
record
.
setAppCode
(
dto
.
getAppCode
());
record
.
setAppName
(
dto
.
getAppName
());
configRuleService
.
update
(
record
);
...
...
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