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
15ff8926
Commit
15ff8926
authored
Sep 07, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pmd规范
parent
25d955dc
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
42 additions
and
12 deletions
+42
-12
DataExplainController.java
...cloud/operation/web/controller/DataExplainController.java
+5
-3
FunctionModuleController.java
...ud/operation/web/controller/FunctionModuleController.java
+7
-1
IndexController.java
...m/gic/cloud/operation/web/controller/IndexController.java
+8
-6
GlobalExceptionHandler.java
...cloud/operation/web/exception/GlobalExceptionHandler.java
+0
-1
FunctionModuleVO.java
...java/com/gic/cloud/operation/web/vo/FunctionModuleVO.java
+12
-1
IndexVO.java
...src/main/java/com/gic/cloud/operation/web/vo/IndexVO.java
+5
-0
ModuleVO.java
...rc/main/java/com/gic/cloud/operation/web/vo/ModuleVO.java
+5
-0
No files found.
gic-data-cloud-operation-web/src/main/java/com/gic/cloud/operation/web/controller/DataExplainController.java
View file @
15ff8926
...
...
@@ -6,7 +6,7 @@ import com.gic.api.base.commons.ServiceResponse;
import
com.gic.authcenter.security.core.util.UserUtils
;
import
com.gic.cloud.dto.DataExplainDTO
;
import
com.gic.cloud.dto.IndexLogDTO
;
import
com.gic.cloud.qo.DataExplainQ
O
;
import
com.gic.cloud.qo.DataExplainQ
o
;
import
com.gic.cloud.service.DataExplainApiService
;
import
com.gic.cloud.service.IndexLogApiService
;
import
com.gic.commons.webapi.reponse.RestResponse
;
...
...
@@ -65,7 +65,7 @@ public class DataExplainController {
}
@RequestMapping
(
"/list-data-explain"
)
public
RestResponse
listDataExplain
(
DataExplainQ
O
dataExplainQO
)
{
public
RestResponse
listDataExplain
(
DataExplainQ
o
dataExplainQO
)
{
ServiceResponse
<
Page
<
DataExplainDTO
>>
serviceResponse
=
dataExplainApiService
.
listDataExplain
(
dataExplainQO
);
return
ResultControllerUtils
.
commonResult
(
serviceResponse
);
}
...
...
@@ -88,7 +88,9 @@ public class DataExplainController {
return
RestResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
ErrorCode
.
PARAMETER_ERROR
.
getMsg
());
}
List
<
Integer
>
dataExplainIdList
;
if
(
"all"
.
equals
(
dataExplainIds
))
{
String
allCode
=
"all"
;
if
(
allCode
.
equals
(
dataExplainIds
))
{
List
<
DataExplainDTO
>
explainDTOList
=
this
.
dataExplainApiService
.
listAllDataExplain
().
getResult
();
dataExplainIdList
=
explainDTOList
.
stream
().
map
(
DataExplainDTO:
:
getDataExplainId
).
collect
(
Collectors
.
toList
());
}
else
{
...
...
gic-data-cloud-operation-web/src/main/java/com/gic/cloud/operation/web/controller/FunctionModuleController.java
View file @
15ff8926
...
...
@@ -12,7 +12,13 @@ import org.apache.logging.log4j.Logger;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* 功能模块
* @ClassName: FunctionModuleController
* @Description:
* @author guojuxing
* @date 2020/9/7 3:04 PM
*/
@RestController
@RequestMapping
(
"function-module"
)
public
class
FunctionModuleController
{
...
...
gic-data-cloud-operation-web/src/main/java/com/gic/cloud/operation/web/controller/IndexController.java
View file @
15ff8926
...
...
@@ -10,7 +10,7 @@ import com.gic.cloud.dto.IndexDescDTO;
import
com.gic.cloud.dto.IndexLogDTO
;
import
com.gic.cloud.operation.web.vo.IndexVO
;
import
com.gic.cloud.operation.web.vo.ModuleVO
;
import
com.gic.cloud.qo.IndexQ
O
;
import
com.gic.cloud.qo.IndexQ
o
;
import
com.gic.cloud.service.IndexApiService
;
import
com.gic.cloud.service.IndexDescApiService
;
import
com.gic.cloud.service.IndexLogApiService
;
...
...
@@ -46,7 +46,7 @@ public class IndexController {
@RequestMapping
(
"/save-index"
)
public
RestResponse
saveIndex
(
IndexQ
O
indexQO
,
String
relModuleIds
)
{
public
RestResponse
saveIndex
(
IndexQ
o
indexQO
,
String
relModuleIds
)
{
IndexDTO
indexDTO
=
EntityUtil
.
changeEntityByJSON
(
IndexDTO
.
class
,
indexQO
);
if
(
indexDTO
.
getClassifyType
()
==
null
||
StringUtils
.
isBlank
(
indexDTO
.
getCode
())
||
...
...
@@ -90,13 +90,13 @@ public class IndexController {
}
@RequestMapping
(
"/list-index"
)
public
RestResponse
listIndex
(
IndexQ
O
indexQO
)
{
public
RestResponse
listIndex
(
IndexQ
o
indexQO
)
{
ServiceResponse
<
Page
<
IndexDTO
>>
serviceResponse
=
indexApiService
.
listIndex
(
indexQO
);
return
ResultControllerUtils
.
commonResult
(
serviceResponse
);
}
@RequestMapping
(
"/list-all-index"
)
public
RestResponse
listAllIndex
(
IndexQ
O
indexQO
)
{
public
RestResponse
listAllIndex
(
IndexQ
o
indexQO
)
{
ServiceResponse
<
List
<
IndexDTO
>>
serviceResponse
=
indexApiService
.
listAllIndex
(
indexQO
);
return
ResultControllerUtils
.
commonResult
(
serviceResponse
);
}
...
...
@@ -121,8 +121,10 @@ public class IndexController {
Integer
id
=
UserUtils
.
getUser
().
getId
();
String
realName
=
UserUtils
.
getUser
().
getRealName
();
List
<
Integer
>
indexIdList
;
if
(
"all"
.
equals
(
indexIds
))
{
List
<
IndexDTO
>
list
=
indexApiService
.
listAllIndex
(
new
IndexQO
()).
getResult
();
String
allCode
=
"all"
;
if
(
allCode
.
equals
(
indexIds
))
{
List
<
IndexDTO
>
list
=
indexApiService
.
listAllIndex
(
new
IndexQo
()).
getResult
();
indexIdList
=
list
.
stream
().
map
(
IndexDTO:
:
getIndexId
).
collect
(
Collectors
.
toList
());
}
else
{
indexIdList
=
Stream
.
of
(
indexIds
.
split
(
","
)).
map
(
Integer:
:
valueOf
).
collect
(
Collectors
.
toList
());
...
...
gic-data-cloud-operation-web/src/main/java/com/gic/cloud/operation/web/exception/GlobalExceptionHandler.java
View file @
15ff8926
...
...
@@ -23,7 +23,6 @@ import java.util.Set;
*
* @author hua
*/
//@ControllerAdvice
public
class
GlobalExceptionHandler
{
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
GlobalExceptionHandler
.
class
);
...
...
gic-data-cloud-operation-web/src/main/java/com/gic/cloud/operation/web/vo/FunctionModuleVO.java
View file @
15ff8926
...
...
@@ -2,7 +2,13 @@ package com.gic.cloud.operation.web.vo;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 功能模块
* @ClassName: FunctionModuleVO
* @Description:
* @author guojuxing
* @date 2020/9/7 3:04 PM
*/
public
class
FunctionModuleVO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
6083023157590374256L
;
...
...
@@ -142,4 +148,9 @@ public class FunctionModuleVO implements Serializable{
this
.
logo
=
logo
;
return
this
;
}
@Override
public
String
toString
()
{
return
super
.
toString
();
}
}
gic-data-cloud-operation-web/src/main/java/com/gic/cloud/operation/web/vo/IndexVO.java
View file @
15ff8926
...
...
@@ -392,4 +392,9 @@ public class IndexVO implements Serializable {
public
void
setRelTopLevelName
(
String
relTopLevelName
)
{
this
.
relTopLevelName
=
relTopLevelName
;
}
@Override
public
String
toString
()
{
return
super
.
toString
();
}
}
gic-data-cloud-operation-web/src/main/java/com/gic/cloud/operation/web/vo/ModuleVO.java
View file @
15ff8926
...
...
@@ -28,4 +28,9 @@ public class ModuleVO implements Serializable {
public
void
setModuleId
(
String
moduleId
)
{
this
.
moduleId
=
moduleId
;
}
@Override
public
String
toString
()
{
return
super
.
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