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
7fb4da87
Commit
7fb4da87
authored
Sep 19, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新应用第一级页面接口修复
parent
83ac04ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
MenuApiServiceImpl.java
...a/com/gic/auth/service/outer/impl/MenuApiServiceImpl.java
+20
-2
No files found.
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/MenuApiServiceImpl.java
View file @
7fb4da87
...
...
@@ -117,7 +117,24 @@ public class MenuApiServiceImpl implements MenuApiService {
@Override
public
ServiceResponse
<
Void
>
updateAppPage
(
MenuDTO
menuDTO
)
{
return
updatePage
(
menuDTO
,
MenuTypeEnum
.
PAGE
,
MenuDTO
.
UpdateAppPageValid
.
class
);
//只修改页面code
TabSysMenu
record
=
menuService
.
getMenuById
(
menuDTO
.
getMenuId
());
if
(
record
==
null
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"主键参数有误,查无数据"
);
}
if
(
record
.
getLevel
().
intValue
()
!=
MenuLevelConstants
.
FIRST_LEVEL
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"主键参数有误,非第一级页面"
);
}
if
(
record
.
getMenuType
().
intValue
()
!=
MenuTypeEnum
.
PAGE
.
getCode
())
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"主键参数有误,非"
+
MenuTypeEnum
.
PAGE
.
getMessage
());
}
ServiceResponse
paramsValid
=
ValidParamsUtils
.
allCheckValidate
(
menuDTO
,
MenuDTO
.
UpdateAppPageValid
.
class
);
if
(!
paramsValid
.
isSuccess
())
{
return
paramsValid
;
}
menuService
.
updatePage
(
menuDTO
);
return
ServiceResponse
.
success
();
}
@Override
...
...
@@ -309,7 +326,8 @@ public class MenuApiServiceImpl implements MenuApiService {
return
updateNormalPage
(
menuDTO
,
menuTypeEnum
,
clazz
,
false
);
}
private
ServiceResponse
<
Void
>
updateNormalPage
(
MenuDTO
menuDTO
,
MenuTypeEnum
menuTypeEnum
,
Class
clazz
,
boolean
isFirstLevelPage
)
{
private
ServiceResponse
<
Void
>
updateNormalPage
(
MenuDTO
menuDTO
,
MenuTypeEnum
menuTypeEnum
,
Class
clazz
,
boolean
isFirstLevelPage
)
{
TabSysMenu
record
=
menuService
.
getMenuById
(
menuDTO
.
getMenuId
());
if
(
record
==
null
)
{
return
ServiceResponse
.
failure
(
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