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));
|
}
|
|
}
|