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
ff7f0036
Commit
ff7f0036
authored
Aug 10, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
指标说明
parent
5d26cad3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
IndexDTO.java
...a-cloud-api/src/main/java/com/gic/cloud/dto/IndexDTO.java
+9
-0
IndexApiServiceImpl.java
...com/gic/cloud/service/outer/impl/IndexApiServiceImpl.java
+12
-4
No files found.
gic-data-cloud-api/src/main/java/com/gic/cloud/dto/IndexDTO.java
View file @
ff7f0036
...
...
@@ -142,6 +142,7 @@ public class IndexDTO implements Serializable {
private
Integer
indexGroupId
;
private
String
indexGroupName
;
private
String
relTopLevelName
;
public
Integer
getIndexId
()
{
return
indexId
;
...
...
@@ -374,4 +375,12 @@ public class IndexDTO implements Serializable {
public
void
setIndexGroupName
(
String
indexGroupName
)
{
this
.
indexGroupName
=
indexGroupName
;
}
public
void
setRelTopLevelName
(
String
relTopLevelName
)
{
this
.
relTopLevelName
=
relTopLevelName
;
}
public
String
getRelTopLevelName
()
{
return
relTopLevelName
;
}
}
gic-data-cloud-service/src/main/java/com/gic/cloud/service/outer/impl/IndexApiServiceImpl.java
View file @
ff7f0036
...
...
@@ -10,17 +10,16 @@ import com.gic.cloud.entity.TabIndexGroup;
import
com.gic.cloud.qo.IndexQO
;
import
com.gic.cloud.service.*
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.GlobalInfo
;
import
com.gic.commons.util.PageHelperUtils
;
import
com.gic.enterprise.error.ErrorCode
;
import
com.gic.enterprise.response.EnterpriseServiceResponse
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang
3
.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
...
...
@@ -103,6 +102,15 @@ public class IndexApiServiceImpl implements IndexApiService {
indexDTO
.
setIndexGroupName
(
indexGroup
.
getIndexGroupName
());
}
}
if
(
StringUtils
.
isNotBlank
(
indexDTO
.
getRelTopLevel
()))
{
List
<
Integer
>
idsList
=
Stream
.
of
(
indexDTO
.
getRelTopLevel
().
split
(
GlobalInfo
.
FLAG_COMMA
)).
map
(
Integer:
:
valueOf
).
collect
(
Collectors
.
toList
());
IndexQO
indexQO
=
new
IndexQO
();
indexQO
.
setIndexIdList
(
idsList
);
List
<
TabIndex
>
indexList
=
this
.
indexService
.
listAllIndex
(
indexQO
);
String
repTopLevelName
=
Optional
.
ofNullable
(
indexList
).
orElse
(
Collections
.
emptyList
())
.
stream
().
map
(
TabIndex:
:
getName
).
collect
(
Collectors
.
joining
(
","
));
indexDTO
.
setRelTopLevelName
(
repTopLevelName
);
}
return
EnterpriseServiceResponse
.
success
(
indexDTO
);
}
...
...
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