Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nnjcy-data-model
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
梁家彪
nnjcy-data-model
Commits
6303b8c9
Commit
6303b8c9
authored
May 15, 2024
by
wqc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改大屏接口提交
parent
c1e03a14
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
22 deletions
+41
-22
data-collect-server/src/main/java/com/zq/datacollect/controller/BigScreenController.java
+7
-0
data-collect-server/src/main/java/com/zq/datacollect/service/BigScreenService.java
+2
-0
data-collect-server/src/main/java/com/zq/datacollect/service/impl/BigScreenServiceImpl.java
+32
-22
No files found.
data-collect-server/src/main/java/com/zq/datacollect/controller/BigScreenController.java
View file @
6303b8c9
...
@@ -23,6 +23,13 @@ public class BigScreenController {
...
@@ -23,6 +23,13 @@ public class BigScreenController {
private
BigScreenService
bigScreenService
;
private
BigScreenService
bigScreenService
;
@ApiOperation
(
"总数据量"
)
@GetMapping
(
value
=
"/getDataAll"
)
public
ResultVo
getDataAll
()
throws
SQLException
{
return
ResultVo
.
success
(
bigScreenService
.
getDataAll
());
}
@ApiOperation
(
"根据汇聚数据列表"
)
@ApiOperation
(
"根据汇聚数据列表"
)
@GetMapping
(
value
=
"/getCollectList"
)
@GetMapping
(
value
=
"/getCollectList"
)
public
ResultVo
getCollectList
()
{
public
ResultVo
getCollectList
()
{
...
...
data-collect-server/src/main/java/com/zq/datacollect/service/BigScreenService.java
View file @
6303b8c9
...
@@ -52,4 +52,6 @@ public interface BigScreenService {
...
@@ -52,4 +52,6 @@ public interface BigScreenService {
Object
getJswpajlb
(
String
diqu
,
String
pcNo
)
throws
SQLException
;
Object
getJswpajlb
(
String
diqu
,
String
pcNo
)
throws
SQLException
;
Object
getGywtxajNum
(
String
diqu
,
String
pcNo
)
throws
SQLException
;
Object
getGywtxajNum
(
String
diqu
,
String
pcNo
)
throws
SQLException
;
Object
getDataAll
()
throws
SQLException
;
}
}
data-collect-server/src/main/java/com/zq/datacollect/service/impl/BigScreenServiceImpl.java
View file @
6303b8c9
...
@@ -188,28 +188,30 @@ public class BigScreenServiceImpl implements BigScreenService {
...
@@ -188,28 +188,30 @@ public class BigScreenServiceImpl implements BigScreenService {
@Override
@Override
public
Object
getAllCount
()
throws
SQLException
{
public
Object
getAllCount
()
throws
SQLException
{
List
<
Object
>
objects
=
new
ArrayList
<>();
// List<Object> objects = new ArrayList<>();
List
<
DataCollectSetting
>
collectList
=
getCollectList
();
// List<DataCollectSetting> collectList = getCollectList();
for
(
DataCollectSetting
list
:
collectList
)
{
// for (DataCollectSetting list : collectList) {
Map
<
String
,
Object
>
dataMap
=
new
HashMap
<>();
// Map<String, Object> dataMap = new HashMap<>();
String
toTable
=
list
.
getToTable
();
// String toTable = list.getToTable();
Map
<
String
,
Object
>
data
=
new
HashMap
<>();
// Map<String, Object> data = new HashMap<>();
data
.
put
(
"queryName"
,
"获取检察院数据统计"
);
// data.put("queryName", "获取检察院数据统计");
data
.
put
(
"toTable"
,
toTable
);
// data.put("toTable", toTable);
List
<
Map
<
String
,
Object
>>
mapList
=
CommonQuery
(
data
);
// List<Map<String, Object>> mapList = CommonQuery(data);
//
String
dataCount
=
null
;
// String dataCount = null;
for
(
Map
<
String
,
Object
>
map
:
mapList
)
{
// for (Map<String, Object> map : mapList) {
dataCount
=
map
.
get
(
"dataCount"
).
toString
();
// dataCount = map.get("dataCount").toString();
}
// }
dataMap
.
put
(
"dataId"
,
list
.
getId
());
// dataMap.put("dataId", list.getId());
dataMap
.
put
(
"dataType"
,
list
.
getDataType
());
// dataMap.put("dataType", list.getDataType());
dataMap
.
put
(
"TaskName"
,
list
.
getTaskName
());
// dataMap.put("TaskName", list.getTaskName());
dataMap
.
put
(
"dataCount"
,
dataCount
);
// dataMap.put("dataCount", dataCount);
objects
.
add
(
dataMap
);
// objects.add(dataMap);
}
// }
Map
<
String
,
Object
>
body
=
new
HashMap
<>();
return
objects
;
body
.
put
(
"queryName"
,
"数据来源"
);
List
<
Map
<
String
,
Object
>>
mapList1
=
CommonQuery
(
body
);
return
mapList1
;
}
}
...
@@ -582,4 +584,12 @@ public class BigScreenServiceImpl implements BigScreenService {
...
@@ -582,4 +584,12 @@ public class BigScreenServiceImpl implements BigScreenService {
return
mapList
;
return
mapList
;
}
}
@Override
public
Object
getDataAll
()
throws
SQLException
{
Map
<
String
,
Object
>
body
=
new
HashMap
<>();
body
.
put
(
"queryName"
,
"数据总量"
);
List
<
Map
<
String
,
Object
>>
mapList
=
CommonQuery
(
body
);
return
mapList
;
}
}
}
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