| | |
| | | |
| | | @ApiOperation(value = "办事指南_详情", response = ComActWorkGuideVO.class) |
| | | @GetMapping("detailworkguide") |
| | | public R detailWorkGuide(@RequestParam("workGuideId") Long workGuideId) { |
| | | public R detailWorkGuide(@RequestParam("workGuideId") String workGuideId) { |
| | | Long communityId = this.getLoginUserInfo().getCommunityId(); |
| | | if(communityId==null|| communityId<0) |
| | | { |
| | | return communityService.detailWorkGuide(workGuideId, null); |
| | | return communityService.detailWorkGuide(workGuideId, ""); |
| | | } |
| | | return communityService.detailWorkGuide(workGuideId, communityId); |
| | | return communityService.detailWorkGuide(workGuideId, communityId+""); |
| | | } |
| | | |
| | | @ApiOperation(value = "办事指南_分页", response = ComActWorkGuideVO.class) |
| | |
| | | * @return 详情 |
| | | */ |
| | | @GetMapping("/detailworkguide") |
| | | R detailWorkGuide(@RequestParam("workGuideId") Long workGuideId, @RequestParam("communityId") Long communityId); |
| | | R detailWorkGuide(@RequestParam("workGuideId") String workGuideId, @RequestParam("communityId") String communityId); |
| | | |
| | | /** |
| | | * 办事指南_分页 |
| | |
| | | * @return 详情 |
| | | */ |
| | | @GetMapping("detailworkguide") |
| | | public R detailWorkGuide(@RequestParam("workGuideId") Long workGuideId, |
| | | @RequestParam("communityId") Long communityId) { |
| | | public R detailWorkGuide(@RequestParam("workGuideId") String workGuideId, |
| | | @RequestParam("communityId") String communityId) { |
| | | return workGuideService.detailWorkGuide(workGuideId, communityId); |
| | | } |
| | | |
| | |
| | | * 办事指南id |
| | | * @return 社区详情 |
| | | */ |
| | | R detailWorkGuide(Long workGuideId, Long conmunityId); |
| | | R detailWorkGuide(String workGuideId, String conmunityId); |
| | | |
| | | /** |
| | | * 办事指南_分页 |
| | |
| | | } |
| | | |
| | | @Override |
| | | public R detailWorkGuide(Long workGuideId, Long communityId) { |
| | | public R detailWorkGuide(String workGuideId, String communityId) { |
| | | ComActWorkGuideDO workGuideDO = this.baseMapper.selectById(workGuideId); |
| | | if (workGuideDO == null) { |
| | | return R.fail("Id有误!"); |
| | | } |
| | | ComActWorkGuideVO vo = new ComActWorkGuideVO(); |
| | | BeanUtils.copyProperties(workGuideDO, vo); |
| | | |
| | | if(!StringUtils.isEmpty(communityId)) |
| | | { |
| | | ComActDO comActDO = comActDAO.selectById(communityId); |
| | | if (comActDO != null) { |
| | | vo.setAddress(comActDO.getAddress()); |
| | |
| | | workGuideMaterialVO.setMaterialName(workGuideMaterialDO.getMaterialName()); |
| | | vo.getMaterials().add(workGuideMaterialVO); |
| | | }); |
| | | } |
| | | return R.ok(vo); |
| | | } |
| | | |