|  | @ -21,6 +21,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | 
			
		
	
		
		
			
				
					|  |  | import com.baomidou.mybatisplus.core.metadata.IPage; |  |  | import com.baomidou.mybatisplus.core.metadata.IPage; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |  |  | import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.constant.FieldConstant; |  |  | import com.epmet.commons.tools.constant.FieldConstant; | 
			
		
	
		
		
			
				
					|  |  |  |  |  | import com.epmet.commons.tools.constant.NumConstant; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.dto.form.PageFormDTO; |  |  | import com.epmet.commons.tools.dto.form.PageFormDTO; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; |  |  | import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.exception.EpmetErrorCode; |  |  | import com.epmet.commons.tools.exception.EpmetErrorCode; | 
			
		
	
	
		
		
			
				
					|  | @ -42,10 +43,7 @@ import com.epmet.entity.GuideEntity; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.entity.GuideExternalLinkEntity; |  |  | import com.epmet.entity.GuideExternalLinkEntity; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.entity.GuideModuleEntity; |  |  | import com.epmet.entity.GuideModuleEntity; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.feign.GovOrgOpenFeignClient; |  |  | import com.epmet.feign.GovOrgOpenFeignClient; | 
			
		
	
		
		
			
				
					
					|  |  | import com.epmet.service.GuideAttachmentService; |  |  | import com.epmet.service.*; | 
			
				
				
			
		
	
		
		
			
				
					|  |  | import com.epmet.service.GuideExternalLinkService; |  |  |  | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.service.GuideModuleService; |  |  |  | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.service.GuideService; |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					|  |  | import com.github.pagehelper.PageHelper; |  |  | import com.github.pagehelper.PageHelper; | 
			
		
	
		
		
			
				
					|  |  | import com.github.pagehelper.PageInfo; |  |  | import com.github.pagehelper.PageInfo; | 
			
		
	
		
		
			
				
					|  |  | import org.apache.commons.collections4.CollectionUtils; |  |  | import org.apache.commons.collections4.CollectionUtils; | 
			
		
	
	
		
		
			
				
					|  | @ -77,6 +75,8 @@ public class GuideServiceImpl extends BaseServiceImpl<GuideDao, GuideEntity> imp | 
			
		
	
		
		
			
				
					|  |  |     private GuideAttachmentService guideAttachmentService; |  |  |     private GuideAttachmentService guideAttachmentService; | 
			
		
	
		
		
			
				
					|  |  |     @Resource |  |  |     @Resource | 
			
		
	
		
		
			
				
					|  |  |     private GuideExternalLinkService guideExternalLinkService; |  |  |     private GuideExternalLinkService guideExternalLinkService; | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     @Resource | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     private GuideCollectionService guideCollectionService; | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |     @Override |  |  |     @Override | 
			
		
	
		
		
			
				
					|  |  |     public PageData<GuideDTO> page(Map<String, Object> params) { |  |  |     public PageData<GuideDTO> page(Map<String, Object> params) { | 
			
		
	
	
		
		
			
				
					|  | @ -373,7 +373,7 @@ public class GuideServiceImpl extends BaseServiceImpl<GuideDao, GuideEntity> imp | 
			
		
	
		
		
			
				
					|  |  |      * @Date 2021/9/7 14:12 |  |  |      * @Date 2021/9/7 14:12 | 
			
		
	
		
		
			
				
					|  |  |      */ |  |  |      */ | 
			
		
	
		
		
			
				
					|  |  |     @Override |  |  |     @Override | 
			
		
	
		
		
			
				
					
					|  |  |     public GuideDetailResultDTO guideDetail(GuideFormDTO formDTO) { |  |  |     public GuideDetailResultDTO guideDetail(TokenDto tokenDto, GuideFormDTO formDTO) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |         //获取指南详情
 |  |  |         //获取指南详情
 | 
			
		
	
		
		
			
				
					|  |  |         GuideDetailResultDTO result = baseDao.getGuideDetail(formDTO.getCustomerId(), formDTO.getGuideId()); |  |  |         GuideDetailResultDTO result = baseDao.getGuideDetail(formDTO.getCustomerId(), formDTO.getGuideId()); | 
			
		
	
		
		
			
				
					|  |  |         if (null == result) { |  |  |         if (null == result) { | 
			
		
	
	
		
		
			
				
					|  | @ -385,6 +385,11 @@ public class GuideServiceImpl extends BaseServiceImpl<GuideDao, GuideEntity> imp | 
			
		
	
		
		
			
				
					|  |  |         result.setAttachmentList(guideAttachmentService.getByGuideId(formDTO.getGuideId())); |  |  |         result.setAttachmentList(guideAttachmentService.getByGuideId(formDTO.getGuideId())); | 
			
		
	
		
		
			
				
					|  |  |         //获取指南外链地址
 |  |  |         //获取指南外链地址
 | 
			
		
	
		
		
			
				
					|  |  |         result.setExternalLinks(guideExternalLinkService.getByGuideId(formDTO.getGuideId())); |  |  |         result.setExternalLinks(guideExternalLinkService.getByGuideId(formDTO.getGuideId())); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         //是否收藏
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         result.setCollectionFlag(NumConstant.ZERO_STR); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         if (null != guideCollectionService.getCollection(tokenDto, formDTO.getGuideId())) { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             result.setCollectionFlag(NumConstant.ONE_STR); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					|  |  |         return result; |  |  |         return result; | 
			
		
	
		
		
			
				
					|  |  |     } |  |  |     } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  | 
 |