Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-data-cloud
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-data-cloud
Commits
465bffaf
Commit
465bffaf
authored
Sep 08, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pmd规范
parent
6f5f060c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
IndexApiServiceImpl.java
...com/gic/cloud/service/outer/impl/IndexApiServiceImpl.java
+3
-3
No files found.
gic-data-cloud-service/src/main/java/com/gic/cloud/service/outer/impl/IndexApiServiceImpl.java
View file @
465bffaf
...
@@ -117,11 +117,11 @@ public class IndexApiServiceImpl implements IndexApiService {
...
@@ -117,11 +117,11 @@ public class IndexApiServiceImpl implements IndexApiService {
@Override
@Override
public
ServiceResponse
<
Page
<
IndexDTO
>>
listIndex
(
IndexQo
indexQo
)
{
public
ServiceResponse
<
Page
<
IndexDTO
>>
listIndex
(
IndexQo
indexQo
)
{
com
.
github
.
pagehelper
.
Page
<
TabIndex
>
indexList
=
indexService
.
listIndex
(
indexQo
);
com
.
github
.
pagehelper
.
Page
<
TabIndex
>
indexList
=
indexService
.
listIndex
(
indexQo
);
Page
<
IndexDTO
>
indexD
TO
Page
=
PageHelperUtils
.
changePageHelperToCurrentPage
(
indexList
,
IndexDTO
.
class
);
Page
<
IndexDTO
>
indexD
to
Page
=
PageHelperUtils
.
changePageHelperToCurrentPage
(
indexList
,
IndexDTO
.
class
);
if
(
CollectionUtils
.
isNotEmpty
(
indexList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
indexList
))
{
List
<
Integer
>
indexIdList
=
indexList
.
stream
().
map
(
TabIndex:
:
getIndexId
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
indexIdList
=
indexList
.
stream
().
map
(
TabIndex:
:
getIndexId
).
collect
(
Collectors
.
toList
());
Map
<
Integer
,
List
<
String
>>
moduleIdByBusinessIdMap
=
indexModuleRelService
.
groupModuleIdByBusinessIds
(
indexIdList
,
LogAndUpdateTipsTypeEnum
.
INDEX
.
getCode
());
Map
<
Integer
,
List
<
String
>>
moduleIdByBusinessIdMap
=
indexModuleRelService
.
groupModuleIdByBusinessIds
(
indexIdList
,
LogAndUpdateTipsTypeEnum
.
INDEX
.
getCode
());
List
<
IndexDTO
>
indexDTOList
=
indexD
TO
Page
.
getResult
();
List
<
IndexDTO
>
indexDTOList
=
indexD
to
Page
.
getResult
();
HashMap
<
Integer
,
String
>
cache
=
new
HashMap
<>(
16
);
HashMap
<
Integer
,
String
>
cache
=
new
HashMap
<>(
16
);
for
(
IndexDTO
indexDTO
:
indexDTOList
)
{
for
(
IndexDTO
indexDTO
:
indexDTOList
)
{
indexDTO
.
setRelModuleIdList
(
moduleIdByBusinessIdMap
.
get
(
indexDTO
.
getIndexId
()));
indexDTO
.
setRelModuleIdList
(
moduleIdByBusinessIdMap
.
get
(
indexDTO
.
getIndexId
()));
...
@@ -131,7 +131,7 @@ public class IndexApiServiceImpl implements IndexApiService {
...
@@ -131,7 +131,7 @@ public class IndexApiServiceImpl implements IndexApiService {
}
}
}
}
}
}
return
EnterpriseServiceResponse
.
success
(
indexD
TO
Page
);
return
EnterpriseServiceResponse
.
success
(
indexD
to
Page
);
}
}
private
String
getIndexGroupName
(
HashMap
<
Integer
,
String
>
cache
,
Integer
indexGroupId
)
{
private
String
getIndexGroupName
(
HashMap
<
Integer
,
String
>
cache
,
Integer
indexGroupId
)
{
...
...
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