| | |
| | | @ApiOperation(value = "办事指南_详情", response = ComActWorkGuideVO.class) |
| | | @GetMapping("detailworkguide") |
| | | public R detailWorkGuide(@RequestParam("workGuideId") Long workGuideId, |
| | | @RequestParam(value = "conmunityId", required = false) Long communityId) { |
| | | Long conmunityId = communityId; |
| | | @RequestParam(value = "communityId", required = false) Long communityId) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfoSureNoLogin(); |
| | | if (loginUserInfo != null) { |
| | | conmunityId = loginUserInfo.getCommunityId(); |
| | | communityId = loginUserInfo.getCommunityId(); |
| | | } |
| | | return communityService.detailWorkGuide(workGuideId, conmunityId); |
| | | return communityService.detailWorkGuide(workGuideId, communityId); |
| | | } |
| | | } |
| | |
| | | @ApiOperation(value = "办事指南_详情", response = ComActWorkGuideVO.class) |
| | | @GetMapping("detailworkguide") |
| | | public R detailWorkGuide(@RequestParam("workGuideId") Long workGuideId) { |
| | | Long conmunityId = this.getLoginUserInfo().getCommunityId(); |
| | | return communityService.detailWorkGuide(workGuideId, conmunityId); |
| | | Long communityId = this.getLoginUserInfo().getCommunityId(); |
| | | return communityService.detailWorkGuide(workGuideId, communityId); |
| | | } |
| | | |
| | | @ApiOperation(value = "办事指南_分页", response = ComActWorkGuideVO.class) |
| | |
| | | * @return 详情 |
| | | */ |
| | | @GetMapping("/detailworkguide") |
| | | R detailWorkGuide(@RequestParam("workGuideId") Long workGuideId, @RequestParam("conmunityId") Long conmunityId); |
| | | R detailWorkGuide(@RequestParam("workGuideId") Long workGuideId, @RequestParam("communityId") Long communityId); |
| | | |
| | | /** |
| | | * 办事指南_分页 |
| | |
| | | */ |
| | | @GetMapping("detailworkguide") |
| | | public R detailWorkGuide(@RequestParam("workGuideId") Long workGuideId, |
| | | @RequestParam("conmunityId") Long conmunityId) { |
| | | return workGuideService.detailWorkGuide(workGuideId, conmunityId); |
| | | @RequestParam("communityId") Long communityId) { |
| | | return workGuideService.detailWorkGuide(workGuideId, communityId); |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | @Override |
| | | public R detailWorkGuide(Long workGuideId, Long conmunityId) { |
| | | public R detailWorkGuide(Long workGuideId, Long communityId) { |
| | | ComActWorkGuideDO workGuideDO = this.baseMapper.selectById(workGuideId); |
| | | if (workGuideDO == null) { |
| | | return R.fail("Id有误!"); |
| | | } |
| | | ComActWorkGuideVO vo = new ComActWorkGuideVO(); |
| | | BeanUtils.copyProperties(workGuideDO, vo); |
| | | ComActDO comActDO = comActDAO.selectById(conmunityId); |
| | | ComActDO comActDO = comActDAO.selectById(communityId); |
| | | if (comActDO != null) { |
| | | vo.setAddress(comActDO.getAddress()); |
| | | vo.setPhone(comActDO.getContactsPhone()); |