From 70d2a5d0f9c6951b2d4cac954041ed73582ff7eb Mon Sep 17 00:00:00 2001 From: liujie <1793218484@qq.com> Date: 星期一, 09 六月 2025 11:54:00 +0800 Subject: [PATCH] 6.9新增登录失败冻结逻辑 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/LargeScreenApi.java | 108 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 106 insertions(+), 2 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/LargeScreenApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/LargeScreenApi.java index 5ee5792..70455fd 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/LargeScreenApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/LargeScreenApi.java @@ -1,14 +1,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.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +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)); + } } -- Gitblit v1.7.1