Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
426330b7
Commit
426330b7
authored
Nov 23, 2023
by
guojx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据通用接口&指标
parent
f407fb7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
DataController.java
...gic/haoban/manage/web/controller/data/DataController.java
+6
-4
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/data/DataController.java
View file @
426330b7
...
...
@@ -11,13 +11,13 @@ import com.gic.haoban.manage.web.qo.data.DataIndexExplainVO;
import
com.gic.haoban.manage.web.qo.data.DataIndexQO
;
import
com.gic.haoban.manage.web.qo.data.HandleQO
;
import
com.gic.haoban.manage.web.utils.StoreAuthUtils
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.Res
tController
;
import
org.springframework.web.bind.annotation.Res
ponseBody
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
@@ -29,9 +29,8 @@ import java.util.stream.Collectors;
* @Author guojx
* @Date 2023/11/14 10:56
*/
@
Rest
Controller
@Controller
@RequestMapping
(
"data"
)
@Slf4j
public
class
DataController
{
@Autowired
private
StoreAuthUtils
storeAuthUtils
;
...
...
@@ -45,6 +44,7 @@ public class DataController {
* @return
*/
@RequestMapping
(
value
=
"handle"
)
@ResponseBody
public
RestResponse
handle
(
@RequestBody
HandleQO
qo
)
{
String
params
=
qo
.
getParams
();
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
params
);
...
...
@@ -75,6 +75,7 @@ public class DataController {
* @return
*/
@RequestMapping
(
"list-data-index-explain"
)
@ResponseBody
public
RestResponse
<
List
<
DataIndexExplainVO
>>
listDataIndexExplain
()
{
List
<
DataIndexExplainDTO
>
list
=
dataIndexApiService
.
listDataIndexExplain
();
return
RestResponse
.
successResult
(
EntityUtil
.
changeEntityListNew
(
DataIndexExplainVO
.
class
,
list
));
...
...
@@ -86,6 +87,7 @@ public class DataController {
* @return
*/
@RequestMapping
(
"evaluate-data-index"
)
@ResponseBody
public
RestResponse
saveDataIndexEvaluate
(
@RequestBody
DataIndexQO
qo
)
{
DataIndexEvaluateLogDTO
log
=
EntityUtil
.
changeEntityNew
(
DataIndexEvaluateLogDTO
.
class
,
qo
);
log
.
setAccountId
(
qo
.
getClerkId
());
...
...
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