From a1a6321c059740de69836bb10fa9459e5b916ab1 Mon Sep 17 00:00:00 2001
From: 罗元桥 <2376770955@qq.com>
Date: 星期三, 16 六月 2021 17:59:49 +0800
Subject: [PATCH] Merge branch 'test_screen' into 'master'

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/BigScreenStatisticsApi.java |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 52 insertions(+), 0 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/BigScreenStatisticsApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/BigScreenStatisticsApi.java
new file mode 100644
index 0000000..c81b788
--- /dev/null
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/BigScreenStatisticsApi.java
@@ -0,0 +1,52 @@
+package com.panzhihua.service_community.api;
+
+import com.panzhihua.common.model.vos.R;
+import com.panzhihua.service_community.service.ComMngPopulationService;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+
+@Slf4j
+@RestController
+@RequestMapping("/screen/")
+public class BigScreenStatisticsApi {
+
+    @Resource
+    private ComMngPopulationService comMngPopulationService;
+
+    /**
+     * 首页大屏统计接口
+     * @param communityId   社区id
+     * @return  统计结果
+     */
+    @GetMapping("/getScreenIndex")
+    public R index(@RequestParam("communityId") Long communityId) {
+        return R.ok(comMngPopulationService.getScreenIndex(communityId));
+    }
+
+    /**
+     * 事件大屏统计接口
+     * @param communityId   社区id
+     * @return  统计结果
+     */
+    @GetMapping("/getScreenEvent")
+    public R event(@RequestParam("communityId") Long communityId) {
+        return R.ok(comMngPopulationService.getScreenEvent(communityId));
+    }
+
+    /**
+     * 民生大屏统计接口
+     * @param communityId   社区id
+     * @return  统计结果
+     */
+    @GetMapping("/getScreenCivil")
+    public R civil(@RequestParam("communityId") Long communityId) {
+        return R.ok(comMngPopulationService.getScreenCivil(communityId));
+    }
+
+
+}

--
Gitblit v1.7.1