|
@@ -54,6 +54,20 @@ public class CenterEventReportController extends BaseController {
|
|
return R.ok(centerEventReportService.getEventTotal(visuForestCloudMapVO));
|
|
return R.ok(centerEventReportService.getEventTotal(visuForestCloudMapVO));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation("查询事件总数")
|
|
|
|
+ @PostMapping("/getTotalMore")
|
|
|
|
+ public R getTotalMore(@RequestBody VisuForestCloudMapVO visuForestCloudMapVO) {
|
|
|
|
+ Map<String, Object> resultMap = new HashMap<>();
|
|
|
|
+ resultMap.put("total", centerEventReportService.getEventTotal(visuForestCloudMapVO));
|
|
|
|
+ visuForestCloudMapVO.setDiff(0L);// 当日
|
|
|
|
+ resultMap.put("day", centerEventReportService.getEventTotal(visuForestCloudMapVO));
|
|
|
|
+ LocalDate currentDate = LocalDate.now();
|
|
|
|
+ int dayOfMonth = currentDate.getDayOfMonth() - 1;
|
|
|
|
+ visuForestCloudMapVO.setDiff(Long.valueOf(dayOfMonth));// 当月
|
|
|
|
+ resultMap.put("month", centerEventReportService.getEventTotal(visuForestCloudMapVO));
|
|
|
|
+ return R.ok(resultMap);
|
|
|
|
+ }
|
|
|
|
+
|
|
@ApiOperation("事件来源、类型统计")
|
|
@ApiOperation("事件来源、类型统计")
|
|
@PostMapping("/getEventSourceAndTypeStatistics")
|
|
@PostMapping("/getEventSourceAndTypeStatistics")
|
|
public R getEventSourceAndTypeStatistics(@RequestBody VisuForestCloudMapVO visuForestCloudMapVO) {
|
|
public R getEventSourceAndTypeStatistics(@RequestBody VisuForestCloudMapVO visuForestCloudMapVO) {
|