| | |
| | | package com.panzhihua.service_community.api; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.building.BuildingDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComActDynVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | import com.panzhihua.service_community.service.ComActDynService; |
| | | import com.panzhihua.service_community.service.ComStreetService; |
| | | import lombok.Data; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/largeScreen") |
| | | public class LargeScreenApi { |
| | | |
| | | @Autowired |
| | | private ComStreetService comStreetService; |
| | | @Autowired |
| | | private CommunityService communityService; |
| | | @Autowired |
| | | private ComActDynService comActDynService; |
| | | |
| | | /** |
| | | * 地图 |
| | | */ |
| | | @GetMapping("/panzhihuaMap") |
| | | public R panzhihuaMap(@RequestParam("areaCode")String areaCode){ |
| | | return comStreetService.panzhihuaMap(areaCode); |
| | | } |
| | | |
| | | @GetMapping("/oneTagThreeReal") |
| | | public R oneTagThreeReal(@RequestParam("streetId") Long streetId){ |
| | | return comStreetService.oneTagThreeReal(streetId); |
| | | } |
| | | |
| | | /** |
| | | * 根据行政区查询街道 |
| | | */ |
| | | @PostMapping("/searchStreet") |
| | | public R searchStreet(@RequestBody BuildingDto buildingDto){ |
| | | return comStreetService.searchStreet(buildingDto); |
| | | } |
| | | |
| | | /** |
| | | * 花城资讯 |
| | | */ |
| | | @PostMapping("/huachengDyn") |
| | | public R huachengDyn(@RequestBody ComActDynVO comActDynVO){ |
| | | return comActDynService.pageDynamicByAdmin(comActDynVO); |
| | | // return communityService.pageDynamicByAdmin(comActDynVO); |
| | | } |
| | | |
| | | /** |
| | | * 综合数据 |
| | | */ |
| | | @GetMapping("/getScreenStatics") |
| | | public R getScreenStatics(){ |
| | | return comStreetService.getScreenStatics(); |
| | | } |
| | | |
| | | /** |
| | | * 特殊人群统计 |
| | | */ |
| | | @GetMapping("/populationStatics") |
| | | public R populationStatics(@RequestParam("streetId") Long streetId){ |
| | | |
| | | return comStreetService.populationStatics(streetId); |
| | | } |
| | | |
| | | /** |
| | | * 花城党建大屏 |
| | | */ |
| | | @GetMapping("/probably") |
| | | public R probably(@RequestParam("year") Integer year,@RequestParam("belongTo") String belongTo){ |
| | | return comStreetService.probably(year, belongTo); |
| | | } |
| | | |
| | | |
| | | } |