| | |
| | | |
| | | 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.*; |
| | | |
| | |
| | | private ComMngPopulationService comMngPopulationService; |
| | | @Resource |
| | | private BigScreenService bigScreenService; |
| | | @Resource |
| | | private BigScreenStatisticsService bigScreenStatisticsService; |
| | | |
| | | /** |
| | | * 首页大屏统计接口 |
| | |
| | | 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); |
| | | } |
| | | |
| | | } |