Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
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-auth
Commits
665dd5b7
Commit
665dd5b7
authored
Sep 20, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增、编辑应用页面的时候:判断版本名称是否为空
parent
60798d07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
MenuApiServiceImpl.java
...a/com/gic/auth/service/outer/impl/MenuApiServiceImpl.java
+12
-0
No files found.
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/MenuApiServiceImpl.java
View file @
665dd5b7
...
...
@@ -332,6 +332,12 @@ public class MenuApiServiceImpl implements MenuApiService {
return
paramsValid
;
}
setNormalFieldValue
(
menuDTO
,
record
);
if
(!
MenuProjectConstants
.
DEFAULT_PROJECT
.
equals
(
menuDTO
.
getProject
()))
{
//如果是应用子页面、操作项
if
(
StringUtils
.
isBlank
(
menuDTO
.
getMenuVersionName
()))
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"应用版本名称不能改为空"
);
}
}
setMenuVersion
(
menuDTO
);
Integer
menuId
=
menuService
.
savePage
(
menuDTO
);
...
...
@@ -369,6 +375,12 @@ public class MenuApiServiceImpl implements MenuApiService {
return
paramsValid
;
}
menuDTO
.
setProject
(
record
.
getProject
());
if
(!
MenuProjectConstants
.
DEFAULT_PROJECT
.
equals
(
menuDTO
.
getProject
()))
{
//如果是应用子页面、操作项
if
(
StringUtils
.
isBlank
(
menuDTO
.
getMenuVersionName
()))
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"应用版本名称不能改为空"
);
}
}
setMenuVersion
(
menuDTO
);
menuService
.
updatePage
(
menuDTO
);
return
ServiceResponse
.
success
();
...
...
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