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
0e00894f
Commit
0e00894f
authored
Sep 08, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pmd规范
parent
5b07cbcf
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
38 deletions
+38
-38
DataExplainService.java
...c/main/java/com/gic/cloud/service/DataExplainService.java
+4
-4
IndexService.java
...ice/src/main/java/com/gic/cloud/service/IndexService.java
+4
-4
DataExplainServiceImpl.java
...va/com/gic/cloud/service/impl/DataExplainServiceImpl.java
+5
-5
IndexServiceImpl.java
...ain/java/com/gic/cloud/service/impl/IndexServiceImpl.java
+15
-15
IndexApiServiceImpl.java
...com/gic/cloud/service/outer/impl/IndexApiServiceImpl.java
+10
-10
No files found.
gic-data-cloud-service/src/main/java/com/gic/cloud/service/DataExplainService.java
View file @
0e00894f
...
...
@@ -60,20 +60,20 @@ public interface DataExplainService {
* @Title: listDataExplain
* @Description:
* @author zhiwj
* @param dataExplainQ
O
* @param dataExplainQ
o
* @return com.github.pagehelper.Page<com.gic.cloud.entity.TabDataExplain>
*/
Page
<
TabDataExplain
>
listDataExplain
(
DataExplainQo
dataExplainQ
O
);
Page
<
TabDataExplain
>
listDataExplain
(
DataExplainQo
dataExplainQ
o
);
/**
* 查询数据解读列表数据
* @Title: listAllDataExplain
* @Description:
* @author zhiwj
* @param dataExplainQ
O
* @param dataExplainQ
o
* @return java.util.List<com.gic.cloud.entity.TabDataExplain>
*/
List
<
TabDataExplain
>
listAllDataExplain
(
DataExplainQo
dataExplainQ
O
);
List
<
TabDataExplain
>
listAllDataExplain
(
DataExplainQo
dataExplainQ
o
);
/**
* 删除数据解读
...
...
gic-data-cloud-service/src/main/java/com/gic/cloud/service/IndexService.java
View file @
0e00894f
...
...
@@ -71,20 +71,20 @@ public interface IndexService {
* @Title: listIndex
* @Description:
* @author zhiwj
* @param indexQ
O
* @param indexQ
o
* @return com.github.pagehelper.Page<com.gic.cloud.entity.TabIndex>
*/
Page
<
TabIndex
>
listIndex
(
IndexQo
indexQ
O
);
Page
<
TabIndex
>
listIndex
(
IndexQo
indexQ
o
);
/**
* 查询指标字典
* @Title: listAllIndex
* @Description:
* @author zhiwj
* @param indexQ
O
* @param indexQ
o
* @return java.util.List<com.gic.cloud.entity.TabIndex>
*/
List
<
TabIndex
>
listAllIndex
(
IndexQo
indexQ
O
);
List
<
TabIndex
>
listAllIndex
(
IndexQo
indexQ
o
);
/**
* 删除指标字典
...
...
gic-data-cloud-service/src/main/java/com/gic/cloud/service/impl/DataExplainServiceImpl.java
View file @
0e00894f
...
...
@@ -54,14 +54,14 @@ public class DataExplainServiceImpl implements DataExplainService {
}
@Override
public
Page
<
TabDataExplain
>
listDataExplain
(
DataExplainQo
dataExplainQ
O
)
{
PageHelper
.
startPage
(
dataExplainQ
O
.
getCurrentPage
(),
dataExplainQO
.
getPageSize
());
return
tabDataExplainMapper
.
listDataExplain
(
dataExplainQ
O
);
public
Page
<
TabDataExplain
>
listDataExplain
(
DataExplainQo
dataExplainQ
o
)
{
PageHelper
.
startPage
(
dataExplainQ
o
.
getCurrentPage
(),
dataExplainQo
.
getPageSize
());
return
tabDataExplainMapper
.
listDataExplain
(
dataExplainQ
o
);
}
@Override
public
List
<
TabDataExplain
>
listAllDataExplain
(
DataExplainQo
dataExplainQ
O
)
{
return
tabDataExplainMapper
.
listDataExplain
(
dataExplainQ
O
);
public
List
<
TabDataExplain
>
listAllDataExplain
(
DataExplainQo
dataExplainQ
o
)
{
return
tabDataExplainMapper
.
listDataExplain
(
dataExplainQ
o
);
}
@Override
...
...
gic-data-cloud-service/src/main/java/com/gic/cloud/service/impl/IndexServiceImpl.java
View file @
0e00894f
...
...
@@ -73,22 +73,22 @@ public class IndexServiceImpl implements IndexService {
}
@Override
public
Page
<
TabIndex
>
listIndex
(
IndexQo
indexQ
O
)
{
PageHelper
.
startPage
(
indexQ
O
.
getCurrentPage
(),
indexQO
.
getPageSize
());
if
(
StringUtils
.
isNotBlank
(
indexQ
O
.
getModuleId
()))
{
List
<
Integer
>
indexIdList
=
indexModuleRelService
.
listBusinessIdByModuleIds
(
Arrays
.
asList
(
indexQ
O
.
getModuleId
().
split
(
","
)));
indexQ
O
.
setIndexIdList
(
indexIdList
);
public
Page
<
TabIndex
>
listIndex
(
IndexQo
indexQ
o
)
{
PageHelper
.
startPage
(
indexQ
o
.
getCurrentPage
(),
indexQo
.
getPageSize
());
if
(
StringUtils
.
isNotBlank
(
indexQ
o
.
getModuleId
()))
{
List
<
Integer
>
indexIdList
=
indexModuleRelService
.
listBusinessIdByModuleIds
(
Arrays
.
asList
(
indexQ
o
.
getModuleId
().
split
(
","
)));
indexQ
o
.
setIndexIdList
(
indexIdList
);
}
if
(
indexQ
O
.
getIndexGroupId
()
!=
null
)
{
List
<
Integer
>
indexGroupIdList
=
indexGroupService
.
listChildIndexGroup
(
indexQ
O
.
getIndexGroupId
());
indexQ
O
.
setIndexGroupIdList
(
indexGroupIdList
);
if
(
indexQ
o
.
getIndexGroupId
()
!=
null
)
{
List
<
Integer
>
indexGroupIdList
=
indexGroupService
.
listChildIndexGroup
(
indexQ
o
.
getIndexGroupId
());
indexQ
o
.
setIndexGroupIdList
(
indexGroupIdList
);
}
return
tabIndexMapper
.
listIndex
(
indexQ
O
);
return
tabIndexMapper
.
listIndex
(
indexQ
o
);
}
@Override
public
List
<
TabIndex
>
listAllIndex
(
IndexQo
indexQ
O
)
{
return
tabIndexMapper
.
listIndex
(
indexQ
O
);
public
List
<
TabIndex
>
listAllIndex
(
IndexQo
indexQ
o
)
{
return
tabIndexMapper
.
listIndex
(
indexQ
o
);
}
@Override
...
...
@@ -101,15 +101,15 @@ public class IndexServiceImpl implements IndexService {
@Override
public
TabIndex
getByIndexCode
(
String
moduleId
,
String
indexCode
)
{
IndexQo
indexQ
O
=
new
IndexQo
();
IndexQo
indexQ
o
=
new
IndexQo
();
PageHelper
.
startPage
(
1
,
1
);
List
<
Integer
>
indexIdList
=
indexModuleRelService
.
listBusinessIdByModuleIds
(
Collections
.
singletonList
(
moduleId
));
if
(
CollectionUtils
.
isEmpty
(
indexIdList
))
{
return
null
;
}
indexQ
O
.
setIndexIdList
(
indexIdList
);
indexQ
O
.
setCode
(
indexCode
);
Page
<
TabIndex
>
page
=
tabIndexMapper
.
listIndex
(
indexQ
O
);
indexQ
o
.
setIndexIdList
(
indexIdList
);
indexQ
o
.
setCode
(
indexCode
);
Page
<
TabIndex
>
page
=
tabIndexMapper
.
listIndex
(
indexQ
o
);
if
(
CollectionUtils
.
isEmpty
(
page
))
{
return
null
;
}
else
{
...
...
gic-data-cloud-service/src/main/java/com/gic/cloud/service/outer/impl/IndexApiServiceImpl.java
View file @
0e00894f
...
...
@@ -104,9 +104,9 @@ public class IndexApiServiceImpl implements IndexApiService {
}
if
(
StringUtils
.
isNotBlank
(
indexDTO
.
getRelTopLevel
()))
{
List
<
Integer
>
idsList
=
Stream
.
of
(
indexDTO
.
getRelTopLevel
().
split
(
GlobalInfo
.
FLAG_COMMA
)).
map
(
Integer:
:
valueOf
).
collect
(
Collectors
.
toList
());
IndexQo
indexQ
O
=
new
IndexQo
();
indexQ
O
.
setIndexIdList
(
idsList
);
List
<
TabIndex
>
indexList
=
this
.
indexService
.
listAllIndex
(
indexQ
O
);
IndexQo
indexQ
o
=
new
IndexQo
();
indexQ
o
.
setIndexIdList
(
idsList
);
List
<
TabIndex
>
indexList
=
this
.
indexService
.
listAllIndex
(
indexQ
o
);
String
repTopLevelName
=
Optional
.
ofNullable
(
indexList
).
orElse
(
Collections
.
emptyList
())
.
stream
().
map
(
TabIndex:
:
getName
).
collect
(
Collectors
.
joining
(
","
));
indexDTO
.
setRelTopLevelName
(
repTopLevelName
);
...
...
@@ -115,8 +115,8 @@ public class IndexApiServiceImpl implements IndexApiService {
}
@Override
public
ServiceResponse
<
Page
<
IndexDTO
>>
listIndex
(
IndexQo
indexQ
O
)
{
com
.
github
.
pagehelper
.
Page
<
TabIndex
>
indexList
=
indexService
.
listIndex
(
indexQ
O
);
public
ServiceResponse
<
Page
<
IndexDTO
>>
listIndex
(
IndexQo
indexQ
o
)
{
com
.
github
.
pagehelper
.
Page
<
TabIndex
>
indexList
=
indexService
.
listIndex
(
indexQ
o
);
Page
<
IndexDTO
>
indexDTOPage
=
PageHelperUtils
.
changePageHelperToCurrentPage
(
indexList
,
IndexDTO
.
class
);
if
(
CollectionUtils
.
isNotEmpty
(
indexList
))
{
List
<
Integer
>
indexIdList
=
indexList
.
stream
().
map
(
TabIndex:
:
getIndexId
).
collect
(
Collectors
.
toList
());
...
...
@@ -147,8 +147,8 @@ public class IndexApiServiceImpl implements IndexApiService {
}
@Override
public
ServiceResponse
<
List
<
IndexDTO
>>
listAllIndex
(
IndexQo
indexQ
O
)
{
List
<
TabIndex
>
tabIndices
=
indexService
.
listAllIndex
(
indexQ
O
);
public
ServiceResponse
<
List
<
IndexDTO
>>
listAllIndex
(
IndexQo
indexQ
o
)
{
List
<
TabIndex
>
tabIndices
=
indexService
.
listAllIndex
(
indexQ
o
);
List
<
IndexDTO
>
dtoList
=
EntityUtil
.
changeEntityListByJSON
(
IndexDTO
.
class
,
tabIndices
);
return
EnterpriseServiceResponse
.
success
(
dtoList
);
}
...
...
@@ -183,9 +183,9 @@ public class IndexApiServiceImpl implements IndexApiService {
@Override
public
ServiceResponse
<
List
<
IndexDTO
>>
listByModule
(
String
moduleId
)
{
IndexQo
indexQ
O
=
new
IndexQo
();
indexQ
O
.
setModuleId
(
moduleId
);
List
<
TabIndex
>
indexList
=
indexService
.
listAllIndex
(
indexQ
O
);
IndexQo
indexQ
o
=
new
IndexQo
();
indexQ
o
.
setModuleId
(
moduleId
);
List
<
TabIndex
>
indexList
=
indexService
.
listAllIndex
(
indexQ
o
);
return
EnterpriseServiceResponse
.
success
(
EntityUtil
.
changeEntityListByJSON
(
IndexDTO
.
class
,
indexList
));
}
}
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