| | |
| | | import com.panzhihua.common.service.community.CommunityWestService; |
| | | import com.panzhihua.common.service.partybuilding.PartyBuildingService; |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import com.panzhihua.common.validated.AddGroup; |
| | | import com.panzhihua.common.validated.PageGroup; |
| | | import io.swagger.annotations.*; |
| | |
| | | @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") |
| | |
| | | |
| | | @ApiOperation(value = "分页查询社区活动", response = ComActActivityVO.class) |
| | | @PostMapping("pageactivity") |
| | | public R pageActivity(@RequestBody ComActActivityVO comActActivityVO) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfoSureNoLogin(); |
| | | if (loginUserInfo != null) { |
| | | comActActivityVO.setCommunityId(loginUserInfo.getCommunityId()); |
| | | public R pageActivity(@RequestBody ComActActivityVO comActActivityVO) |
| | | { |
| | | if(comActActivityVO.getCommunityId()<=0) |
| | | { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfoSureNoLogin(); |
| | | if (loginUserInfo != null) { |
| | | comActActivityVO.setCommunityId(loginUserInfo.getCommunityId()); |
| | | } |
| | | } |
| | | |
| | | comActActivityVO.setIsApplets(1); |
| | | Integer status = comActActivityVO.getStatus(); |
| | | if (null != status && status.intValue() == 4) { |
| | |
| | | @RequestParam(value = "page", required = false) Integer page, |
| | | @RequestParam(value = "size", required = false) Integer size, |
| | | @RequestParam(value = "belongTo", required = false) String belongTo, |
| | | @RequestParam(value = "unitId", required = false) Long unitId) { |
| | | return communityService.institutionalUnitServiceAnalysis(year, type, range, communityId, page, size, belongTo, unitId, this.getLoginUserInfo().getAccount()); |
| | | @RequestParam(value = "unitId", required = false) Long unitId, |
| | | @RequestParam(value = "searchContent",required = false) String searchContent) { |
| | | return communityService.institutionalUnitServiceAnalysis(year, type, range, communityId, page, |
| | | size, belongTo, unitId, this.getLoginUserInfo().getAccount(),searchContent); |
| | | } |
| | | |
| | | |
| | |
| | | public R detailCommunity(@RequestParam("id") Long id) { |
| | | return communityService.detailCommunity(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取问题清单,需求清单,报道服务活动数量",response = DataCount.class) |
| | | @GetMapping("/dataCount") |
| | | public R dataCount(){ |
| | | return communityService.dataCount(); |
| | | } |
| | | } |