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
e8d0f8a6
Commit
e8d0f8a6
authored
Aug 31, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据解读返回修改
parent
d4fc2cb6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
DataExplainApiService.java
...ain/java/com/gic/cloud/service/DataExplainApiService.java
+1
-1
DataExplainApiServiceImpl.java
...c/cloud/service/outer/impl/DataExplainApiServiceImpl.java
+7
-2
IndexDescController.java
...ava/com/gic/cloud/web/controller/IndexDescController.java
+2
-1
No files found.
gic-data-cloud-api/src/main/java/com/gic/cloud/service/DataExplainApiService.java
View file @
e8d0f8a6
...
...
@@ -95,5 +95,5 @@ public interface DataExplainApiService {
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.cloud.dto.IndexDTO>>
* @throws
*/
ServiceResponse
<
List
<
DataExplainDTO
>
>
listByModule
(
String
moduleId
);
ServiceResponse
<
DataExplainDTO
>
listByModule
(
String
moduleId
);
}
gic-data-cloud-service/src/main/java/com/gic/cloud/service/outer/impl/DataExplainApiServiceImpl.java
View file @
e8d0f8a6
...
...
@@ -15,6 +15,7 @@ import com.gic.commons.util.EntityUtil;
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.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -119,10 +120,14 @@ public class DataExplainApiServiceImpl implements DataExplainApiService {
}
@Override
public
ServiceResponse
<
List
<
DataExplainDTO
>
>
listByModule
(
String
moduleId
)
{
public
ServiceResponse
<
DataExplainDTO
>
listByModule
(
String
moduleId
)
{
DataExplainQO
dataExplainQO
=
new
DataExplainQO
();
dataExplainQO
.
setModuleId
(
moduleId
);
List
<
TabDataExplain
>
dataExplainList
=
dataExplainService
.
listAllDataExplain
(
dataExplainQO
);
return
EnterpriseServiceResponse
.
success
(
EntityUtil
.
changeEntityListByJSON
(
DataExplainDTO
.
class
,
dataExplainList
));
if
(
CollectionUtils
.
isNotEmpty
(
dataExplainList
))
{
return
EnterpriseServiceResponse
.
success
(
EntityUtil
.
changeEntityByJSON
(
DataExplainDTO
.
class
,
dataExplainList
.
get
(
0
)));
}
else
{
return
EnterpriseServiceResponse
.
success
();
}
}
}
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/IndexDescController.java
View file @
e8d0f8a6
...
...
@@ -75,7 +75,7 @@ public class IndexDescController {
@RequestMapping
(
"/get-data-explain"
)
public
RestResponse
getDataExplain
(
String
moduleId
)
{
ServiceResponse
<
List
<
DataExplainDTO
>
>
serviceResponse
=
dataExplainApiService
.
listByModule
(
moduleId
);
ServiceResponse
<
DataExplainDTO
>
serviceResponse
=
dataExplainApiService
.
listByModule
(
moduleId
);
return
ResultControllerUtils
.
commonResult
(
serviceResponse
);
}
}
\ No newline at end of file
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