mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
package com.panzhihua.service_community.api;
 
import com.panzhihua.common.model.dtos.community.building.BuildingDto;
import com.panzhihua.common.model.dtos.community.large.AreaStreetDetail;
import com.panzhihua.common.model.dtos.community.large.AreaStreetDetailResp;
import com.panzhihua.common.model.dtos.community.large.SumAreaStreetResp;
import com.panzhihua.common.model.dtos.partybuilding.QryReportResp;
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.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.util.List;
 
@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);
    }
 
    /**
     * 根据 街道 查询 社区
     * @param streetId
     * @return
     */
    @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);
    }
 
    /**
     * 查询 一标三实 数据
     */
    @GetMapping("/sumAreaStreet")
    public R<SumAreaStreetResp> sumAreaStreet(){
        return R.ok(comStreetService.sumAreaStreet());
    }
 
    /**
     *  下拉 明细
     */
    @GetMapping(("/areaStreetDetail"))
    private R<AreaStreetDetail> areaStreetDetail(@RequestParam("code") String code,
                                                 @RequestParam("type") String type){
        return R.ok(comStreetService.areaStreetDetail(code, type));
    }
 
    /**
     *   双报到双服务
     */
    @GetMapping("/qryReport")
    public R<List<QryReportResp>> qryReport(@RequestParam(value = "yearTime",required = false) String yearTime){
        return R.ok(comStreetService.qryReport(yearTime));
    }
 
}