|
|
|
@ -40,34 +40,26 @@ public class DataGobalController { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 获取数据大屏概览 |
|
|
|
* 获取数据大屏概览 |
|
|
|
* 大屏中央数据和地图数据 |
|
|
|
* 大屏中央数据 |
|
|
|
* |
|
|
|
* |
|
|
|
* @param beginTime |
|
|
|
* @param beginTime |
|
|
|
* @param endTime |
|
|
|
* @param endTime |
|
|
|
* @return |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Operation(summary = "初始化大屏数据") |
|
|
|
@Operation(summary = "大屏中央数据") |
|
|
|
@GetMapping |
|
|
|
@GetMapping |
|
|
|
public Result<JSONObject> getAllGobalCount(@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
public Result<JSONObject> getAllGobalCount(@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) { |
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) { |
|
|
|
// 获取数据大屏中央总数概览
|
|
|
|
// 获取数据大屏中央总数概览
|
|
|
|
JSONObject overview = dataGobalService.getAllGobalCount(beginTime, endTime); |
|
|
|
JSONObject overview = dataGobalService.getAllGobalCount(beginTime, endTime); |
|
|
|
|
|
|
|
|
|
|
|
// 地图数据
|
|
|
|
|
|
|
|
List<GobalMapIconVo> gobalTempMapVoList = dataGobalService.getMapIconInfo(beginTime, endTime); |
|
|
|
|
|
|
|
if (gobalTempMapVoList == null || gobalTempMapVoList.size() == 0) { |
|
|
|
|
|
|
|
gobalTempMapVoList = new ArrayList<>(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JSONObject data = new JSONObject() |
|
|
|
JSONObject data = new JSONObject() |
|
|
|
.fluentPut("overview", overview) |
|
|
|
.fluentPut("overview", overview); |
|
|
|
.fluentPut("gobalTempMapVoList", gobalTempMapVoList); |
|
|
|
|
|
|
|
return Result.success(data); |
|
|
|
return Result.success(data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 数据大屏问题趋势统计(按月展示) |
|
|
|
* 数据大屏问题趋势统计(按月展示) |
|
|
|
* |
|
|
|
* |
|
|
|
@ -168,4 +160,21 @@ public class DataGobalController { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "地图数据") |
|
|
|
|
|
|
|
@GetMapping("/getMap") |
|
|
|
|
|
|
|
public Result<JSONObject> getMap( |
|
|
|
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
|
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 地图数据
|
|
|
|
|
|
|
|
List<GobalMapIconVo> gobalTempMapVoList = dataGobalService.getMapIconInfo(beginTime, endTime); |
|
|
|
|
|
|
|
if (gobalTempMapVoList == null || gobalTempMapVoList.size() == 0) { |
|
|
|
|
|
|
|
gobalTempMapVoList = new ArrayList<>(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
JSONObject data = new JSONObject() |
|
|
|
|
|
|
|
.fluentPut("gobalTempMapVoList", gobalTempMapVoList); |
|
|
|
|
|
|
|
return Result.success(data); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|