From d28d43e9ababfa4c2a91e405702c1fffe18c46cd Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期五, 01 九月 2023 18:04:15 +0800 Subject: [PATCH] 修改杨家坪社区问题 --- springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/CommunityApi.java | 27 +++++++++++++++++++++++---- 1 files changed, 23 insertions(+), 4 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/CommunityApi.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/CommunityApi.java index dd9b6cc..addf559 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/CommunityApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/CommunityApi.java @@ -75,10 +75,10 @@ @ApiOperation(value = "分页获取社区动态", response = ComActDynVO.class) @PostMapping("pagedynamic") public R pageDynamic(@RequestBody ComActDynVO comActDynVO) { - LoginUserInfoVO loginUserInfo = this.getLoginUserInfoSureNoLogin(); - if (loginUserInfo != null) { - comActDynVO.setCommunityId(loginUserInfo.getCommunityId()); - } +// LoginUserInfoVO loginUserInfo = this.getLoginUserInfoSureNoLogin(); +// if (loginUserInfo != null) { +// comActDynVO.setCommunityId(loginUserInfo.getCommunityId()+""); +// } comActDynVO.setIsTopping(null); comActDynVO.setStatus(1); Integer category = comActDynVO.getCategory(); @@ -87,6 +87,19 @@ } return communityService.pageDynamic(comActDynVO); } + + @ApiOperation(value = "分页查项目活动") + @PostMapping("projectPageActivity") + public R projectPageActivity(@RequestBody ComActActivityVO comActActivityVO) { + Long projectId = comActActivityVO.getProjectId(); + if (isNull(projectId)) { + Long communityId = this.getCommunityId(); + comActActivityVO.setCommunityId(communityId); + } + // return communityService.pageActivity(ComActActivityVO); + return communityService.pageActivityCommunityBack(comActActivityVO); + } + @ApiOperation(value = "社区动态详情", response = ComActDynVO.class) @GetMapping("detaildynamic") @@ -464,4 +477,10 @@ public R detailCommunity(@RequestParam("id") Long id) { return communityService.detailCommunity(id); } + + @ApiOperation(value = "获取问题清单,需求清单,报道服务活动数量",response = DataCount.class) + @GetMapping("/dataCount") + public R dataCount(){ + return communityService.dataCount(); + } } -- Gitblit v1.7.1