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
3d8f54de
Commit
3d8f54de
authored
Oct 29, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询应用数据,原来的appId会不停变化,采用模块code
parent
626776aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
MenuApiServiceImpl.java
...a/com/gic/auth/service/outer/impl/MenuApiServiceImpl.java
+15
-3
No files found.
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/MenuApiServiceImpl.java
View file @
3d8f54de
...
...
@@ -543,18 +543,22 @@ public class MenuApiServiceImpl implements MenuApiService {
if
(
appListResponse
.
isSuccess
())
{
List
<
ApplicationDTO
>
appList
=
appListResponse
.
getResult
();
for
(
ApplicationDTO
app
:
appList
)
{
if
(
StringUtils
.
isBlank
(
app
.
getModuleCode
()))
{
//没有唯一code,则不存数据
continue
;
}
if
(
appMenu
.
containsKey
(
app
.
getApplicationId
().
toString
()))
{
//如果已存在,则更新版本信息
MenuDTO
menuDTO
=
new
MenuDTO
();
menuDTO
.
setMenuName
(
app
.
getName
());
menuDTO
.
setProject
(
app
.
get
ApplicationId
().
toString
());
menuDTO
.
setProject
(
app
.
get
ModuleCode
());
setMenuVersion
(
app
.
getPropDTOList
(),
menuDTO
);
menuDTO
.
setMenuId
(
appMenu
.
get
(
app
.
getApplicationId
().
toString
()).
getMenuId
());
menuService
.
updatePage
(
menuDTO
);
}
else
{
MenuDTO
menuDTO
=
new
MenuDTO
();
menuDTO
.
setMenuName
(
app
.
getName
());
menuDTO
.
setProject
(
app
.
get
ApplicationId
().
toString
());
menuDTO
.
setProject
(
app
.
get
ModuleCode
());
setMenuVersion
(
app
.
getPropDTOList
(),
menuDTO
);
setNormalFieldValue
(
menuDTO
);
menuService
.
savePage
(
menuDTO
);
...
...
@@ -563,6 +567,14 @@ public class MenuApiServiceImpl implements MenuApiService {
}
}
/**
* 商户已购买的应用,变成一级菜单
* @Title: saveHasBuyAppMenu
* @Description:
* @author guojuxing
* @param hasBuyAppList
* @return void
*/
private
void
saveHasBuyAppMenu
(
List
<
ApplicationDTO
>
hasBuyAppList
)
{
Map
<
String
,
TabSysMenu
>
appMenu
=
getFirstLevelAppMenu
();
for
(
ApplicationDTO
app
:
hasBuyAppList
)
{
...
...
@@ -653,7 +665,7 @@ public class MenuApiServiceImpl implements MenuApiService {
StringBuilder
menuVersion
=
new
StringBuilder
(
SignConstants
.
UNDERLINE
);
StringBuilder
menuVersionName
=
new
StringBuilder
();
for
(
ServePropDTO
propDTO
:
serviceList
)
{
menuVersion
.
append
(
propDTO
.
get
PropId
()).
append
(
SignConstants
.
UNDERLINE
);
menuVersion
.
append
(
propDTO
.
get
Code
()).
append
(
SignConstants
.
UNDERLINE
);
menuVersionName
.
append
(
propDTO
.
getName
()).
append
(
SignConstants
.
SLASH
);
}
menuDTO
.
setMenuVersion
(
menuVersion
.
toString
());
...
...
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