From 6ede55d8b2c40d132167b60eedffb49030012620 Mon Sep 17 00:00:00 2001
From: puhanshu <a9236326>
Date: 星期五, 10 十二月 2021 14:06:00 +0800
Subject: [PATCH] 大屏相关代码提交

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/BigScreenStatisticsApi.java |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 44 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
index 7ec86af..b8e386f 100644
--- 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
@@ -2,6 +2,8 @@
 
 import javax.annotation.Resource;
 
+import com.panzhihua.common.model.dtos.community.convenient.PagePopularMerchantDTO;
+import com.panzhihua.service_community.service.BigScreenStatisticsService;
 import com.panzhihua.service_community.service.BigScreenService;
 import org.springframework.web.bind.annotation.*;
 
@@ -21,6 +23,8 @@
     private ComMngPopulationService comMngPopulationService;
     @Resource
     private BigScreenService bigScreenService;
+    @Resource
+    private BigScreenStatisticsService bigScreenStatisticsService;
 
     /**
      * 首页大屏统计接口
@@ -106,4 +110,44 @@
         return this.bigScreenService.serviceUser(communityId);
     }
 
+    /**
+     * 大数据分析平台-居民自治
+     * @param communityId
+     * @return
+     */
+    @GetMapping("/resident/autonomy")
+    public R getResidentAutonomy(@RequestParam("communityId") Long communityId) {
+        return bigScreenStatisticsService.getResidentAutonomy(communityId);
+    }
+
+    /**
+     * 大数据分析平台-清网治格
+     * @param communityId
+     * @return
+     */
+    @GetMapping("/grids/governance")
+    public R getGridsGovernance(@RequestParam("communityId") Long communityId) {
+        return bigScreenStatisticsService.getGridsGovernance(communityId);
+    }
+
+    /**
+     * 大数据分析平台-社区服务
+     * @param communityId
+     * @return
+     */
+    @GetMapping("/community/service")
+    public R getCommunityServiceStatistics(@RequestParam("communityId") Long communityId) {
+        return bigScreenStatisticsService.getCommunityServiceStatistics(communityId);
+    }
+
+    /**
+     * 分页获取热度排行商家
+     * @param pagePopularMerchantDTO
+     * @return
+     */
+    @PostMapping("/merchant/popular")
+    public R getScreenPopularMerchants(@RequestBody PagePopularMerchantDTO pagePopularMerchantDTO) {
+        return bigScreenStatisticsService.getScreenPopularMerchants(pagePopularMerchantDTO);
+    }
+
 }

--
Gitblit v1.7.1