Commit 6303b8c9 by wqc

修改大屏接口提交

parent c1e03a14
...@@ -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() {
......
...@@ -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;
} }
...@@ -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;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment