From dfea866e55c725bd601ff84c92dff30f83057571 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期四, 30 三月 2023 19:56:59 +0800
Subject: [PATCH] Merge branch 'master' of http://42.193.1.25:9521/r/sccg_server

---
 ycl-platform/src/main/java/com/ycl/controller/cockpit/statisticsEvents/StatisticsEventsController.java |   21 +++++----------------
 1 files changed, 5 insertions(+), 16 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 4f247dc..1aea260 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
@@ -51,7 +51,7 @@
     private IApiDataService iApiDataService;
 
     @Autowired
-    public void setIApiDataService(IApiDataService apiDataService){
+    public void setIApiDataService(IApiDataService apiDataService) {
         this.iApiDataService = apiDataService;
     }
 
@@ -91,16 +91,8 @@
     @GetMapping("/lot")
     public CommonResult<List<StatisticsEventsVO.LotVO>> lot(@Validated CockpitVO params) {
         checkApiUtil.cockpit(params);
-        List<StatisticsEventsVO.LotVO> lotVOS = new ArrayList<>();
-        StatisticsEventsVO.LotVO a = null;
-        for (int i = 0; i < 4; i++) {
-            a = new StatisticsEventsVO.LotVO();
-            a.setName("鍥㈢粨灞�");
-            a.setType("鎽勫儚澶�");
-            a.setCount(10);
-            a.setRatio(new BigDecimal("-0.3").setScale(2, RoundingMode.HALF_UP));
-            lotVOS.add(a);
-        }
+        List<StatisticsEventsVO.LotVO> lotVOS = iApiDataService.listLot(params.getStreetId(), params.getBeginTime(), params.getEndTime());
+
         return CommonResult.success(lotVOS);
     }
 
@@ -174,11 +166,8 @@
     @GetMapping("/arithmetic_event")
     public CommonResult<List<StatisticsEventsVO.ArithmeticVO>> arithmeticEvent(@Validated CockpitVO params) {
         checkApiUtil.cockpit(params);
-        List<StatisticsEventsVO.ArithmeticVO> ls = new ArrayList<>();
-        ls.add(new StatisticsEventsVO.ArithmeticVO("xx涓槦", 10, 0.1));
-        ls.add(new StatisticsEventsVO.ArithmeticVO("xx涓槦", 20, 0.2));
-        ls.add(new StatisticsEventsVO.ArithmeticVO("xx涓槦", 30, 0.3));
-        ls.add(new StatisticsEventsVO.ArithmeticVO("xx涓槦", 40, 0.4));
+        List<StatisticsEventsVO.ArithmeticVO> ls = iApiDataService.arithmeticEvent(params.getStreetId(), params.getBeginTime(), params.getEndTime());
+
         return CommonResult.success(ls);
     }
 

--
Gitblit v1.8.0