| package com.panzhihua.service_community.api; | 
|   | 
| import javax.annotation.Resource; | 
|   | 
| 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 com.panzhihua.common.model.vos.R; | 
| import com.panzhihua.service_community.service.ComMngPopulationService; | 
|   | 
| /** | 
|  * @author xyh | 
|  * @date 2021/6/15 15:13 | 
|  */ | 
| @RestController | 
| @RequestMapping("/screen/population") | 
| public class ScreenPopulationApi { | 
|   | 
|     @Resource | 
|     private ComMngPopulationService comMngPopulationService; | 
|   | 
|     /** | 
|      * 大屏人口查询 | 
|      *  | 
|      * @param communityId | 
|      * @return | 
|      */ | 
|     @GetMapping("/statistic") | 
|     R statistic(@RequestParam("communityId") Long communityId) { | 
|   | 
|         return R.ok(comMngPopulationService.screenStatistic(communityId)); | 
|     } | 
|   | 
| } |