| | |
| | | @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(); |
| | |
| | | } |
| | | 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") |
| | |
| | | public R detailCommunity(@RequestParam("id") Long id) { |
| | | return communityService.detailCommunity(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取问题清单,需求清单,报道服务活动数量",response = DataCount.class) |
| | | @GetMapping("/dataCount") |
| | | public R dataCount(){ |
| | | return communityService.dataCount(); |
| | | } |
| | | } |