From a9be2e0bfbd8e716207fc467e2699d9caec76a7c Mon Sep 17 00:00:00 2001
From: wl <173@qq.com>
Date: 星期三, 07 十二月 2022 17:44:38 +0800
Subject: [PATCH] feat: 实时视频Api fix: 事件Api 视频点位api 视频巡查api

---
 ycl-platform/src/main/java/com/ycl/controller/cockpit/enforcementEvents/EnforcementEventsController.java |   22 ++++++++++------------
 1 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/ycl-platform/src/main/java/com/ycl/controller/cockpit/enforcementEvents/EnforcementEventsController.java b/ycl-platform/src/main/java/com/ycl/controller/cockpit/enforcementEvents/EnforcementEventsController.java
index dd28236..4d17945 100644
--- a/ycl-platform/src/main/java/com/ycl/controller/cockpit/enforcementEvents/EnforcementEventsController.java
+++ b/ycl-platform/src/main/java/com/ycl/controller/cockpit/enforcementEvents/EnforcementEventsController.java
@@ -1,11 +1,13 @@
 package com.ycl.controller.cockpit.enforcementEvents;
 
 import com.ycl.api.CommonResult;
+import com.ycl.service.caseHandler.IBaseCaseService;
 import com.ycl.util.CheckApiUtil;
 import com.ycl.vo.cockpit.CockpitVO;
 import com.ycl.vo.cockpit.enforcementEvents.EnforcementEventsVO;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.validation.annotation.Validated;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
@@ -30,6 +32,9 @@
 public class EnforcementEventsController {
     @Resource
     private CheckApiUtil checkApiUtil;
+
+    @Autowired
+    IBaseCaseService iBaseCaseService;
 
     @ApiOperation(value = "鎵ф硶浜嬩欢缁熻")
     @GetMapping("/statistics")
@@ -137,18 +142,11 @@
     public CommonResult<EnforcementEventsVO.InfoVO> info(@Validated CockpitVO params) {
         checkApiUtil.cockpit(params);
         EnforcementEventsVO.InfoVO infoVO = new EnforcementEventsVO.InfoVO();
-        EnforcementEventsVO.EventVO eventVO = new EnforcementEventsVO.EventVO();
-        infoVO.setToday(5);
-        infoVO.setWeek(10);
-        infoVO.setDispatch(20);
-        infoVO.setIdentification(20);
-        eventVO.setDescription("浜嬩欢鎻忚堪");
-        eventVO.setAddress("浜嬪彂鍦板潃");
-        eventVO.setAlarmTime("2022-10-15 16:12:13");
-        eventVO.setPoint("1鍙风偣浣�");
-        eventVO.setPicture("http://12.2.23.4/xx.png");
-        eventVO.setSource("AI璇嗗埆");
-        infoVO.setEvent(eventVO);
+        infoVO.setToday(iBaseCaseService.dayCount());
+        infoVO.setWeek(iBaseCaseService.weekCount());
+        infoVO.setDispatch(iBaseCaseService.dispatchCount());
+        infoVO.setIdentification(iBaseCaseService.alCount());
+        infoVO.setEvent(iBaseCaseService.selectEventList(params.getBeginTime(),params.getEndTime()));
         return CommonResult.success(infoVO);
     }
 

--
Gitblit v1.8.0