From 8030905be406c979c3bea37cc79f282af4c6ba17 Mon Sep 17 00:00:00 2001
From: baizonghao <1719256278@qq.com>
Date: 星期五, 17 三月 2023 18:29:44 +0800
Subject: [PATCH] 驾驶舱指数体征排行榜

---
 ycl-platform/src/main/java/com/ycl/controller/cockpit/statisticsEvents/StatisticsEventsController.java |   27 ++++++++++++++++++++-------
 1 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/ycl-platform/src/main/java/com/ycl/controller/cockpit/statisticsEvents/StatisticsEventsController.java b/ycl-platform/src/main/java/com/ycl/controller/cockpit/statisticsEvents/StatisticsEventsController.java
index e8bf477..4f247dc 100644
--- a/ycl-platform/src/main/java/com/ycl/controller/cockpit/statisticsEvents/StatisticsEventsController.java
+++ b/ycl-platform/src/main/java/com/ycl/controller/cockpit/statisticsEvents/StatisticsEventsController.java
@@ -6,6 +6,7 @@
 import com.ycl.api.CommonResult;
 import com.ycl.entity.cockpitManage.TeamConstruction;
 import com.ycl.entity.cockpitManage.TeamIndex;
+import com.ycl.service.apidata.IApiDataService;
 import com.ycl.service.cockpitManage.ITeamConstructionService;
 import com.ycl.service.equipment.IOrgGridService;
 import com.ycl.service.video.impl.IVideoPointService;
@@ -45,6 +46,14 @@
     private ITeamConstructionService teamConstructionService;
 
     private IOrgGridService orgGridService;
+
+
+    private IApiDataService iApiDataService;
+
+    @Autowired
+    public void setIApiDataService(IApiDataService apiDataService){
+        this.iApiDataService = apiDataService;
+    }
 
     @Autowired
     public void setTeamConstructionService(ITeamConstructionService teamConstructionService) {
@@ -147,13 +156,17 @@
     @ApiOperation(value = "top10")
     @GetMapping("/top10")
     public CommonResult<List<StatisticsEventsVO.Top10VO>> top10(@Validated CockpitVO params) {
-        checkApiUtil.cockpit(params);
-        List<StatisticsEventsVO.Top10VO> ls = new ArrayList<>();
-        ls.add(new StatisticsEventsVO.Top10VO("xx涓槦", 100.0));
-        ls.add(new StatisticsEventsVO.Top10VO("xx涓槦", 90.0));
-        ls.add(new StatisticsEventsVO.Top10VO("xx涓槦", 80.0));
-        ls.add(new StatisticsEventsVO.Top10VO("xx涓槦", 70.0));
-        return CommonResult.success(ls);
+//        checkApiUtil.cockpit(params);
+//        List<StatisticsEventsVO.Top10VO> ls = new ArrayList<>();
+//        ls.add(new StatisticsEventsVO.Top10VO("xx涓槦", 100.0));
+//        ls.add(new StatisticsEventsVO.Top10VO("xx涓槦", 90.0));
+//        ls.add(new StatisticsEventsVO.Top10VO("xx涓槦", 80.0));
+//        ls.add(new StatisticsEventsVO.Top10VO("xx涓槦", 70.0));
+//        return CommonResult.success(ls);
+        String beginTime = params.getBeginTime();
+        String endTime = params.getEndTime();
+        List<StatisticsEventsVO.Top10VO> res = iApiDataService.listTop10(beginTime, endTime);
+        return CommonResult.success(res);
     }
 
 

--
Gitblit v1.8.0