|
@@ -15,6 +15,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -110,5 +111,17 @@ public class BaseAlarmController {
|
|
|
public ApiResult<List<Object>> alarmStatistic(@RequestParam(value = "deptId", required = false) Integer deptId){
|
|
|
return ApiResult.success(baseAlarmService.alarmStatistic(deptId));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 实时报警-报警统计
|
|
|
+ * @param startTime 开始时间
|
|
|
+ * @param endTime 开始时间
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/alarmStatisticDay")
|
|
|
+ public ApiResult<List<Map<String,Object>>> alarmStatisticDay(@RequestParam(value = "startTime", required = false) String startTime,
|
|
|
+ @RequestParam(value = "endTime", required = false) String endTime){
|
|
|
+ return ApiResult.success(baseAlarmService.alarmStatisticDay(startTime,endTime));
|
|
|
+ }
|
|
|
}
|
|
|
|