|  | @@ -1,6 +1,7 @@
 | 
	
		
			
				|  |  |  package com.fs.company.controller.qw;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +import com.alibaba.fastjson.JSON;
 | 
	
		
			
				|  |  |  import com.fs.common.annotation.Log;
 | 
	
		
			
				|  |  |  import com.fs.common.annotation.RepeatSubmit;
 | 
	
		
			
				|  |  |  import com.fs.common.core.controller.BaseController;
 | 
	
	
		
			
				|  | @@ -8,8 +9,11 @@ import com.fs.common.core.domain.AjaxResult;
 | 
	
		
			
				|  |  |  import com.fs.common.core.domain.R;
 | 
	
		
			
				|  |  |  import com.fs.common.core.page.TableDataInfo;
 | 
	
		
			
				|  |  |  import com.fs.common.enums.BusinessType;
 | 
	
		
			
				|  |  | +import com.fs.common.utils.PubFun;
 | 
	
		
			
				|  |  |  import com.fs.common.utils.StringUtils;
 | 
	
		
			
				|  |  |  import com.fs.qw.domain.QwGroupChatUser;
 | 
	
		
			
				|  |  | +import com.fs.qw.domain.QwTag;
 | 
	
		
			
				|  |  | +import com.fs.qw.mapper.QwTagMapper;
 | 
	
		
			
				|  |  |  import com.fs.qw.param.QwExternalContactVOTime;
 | 
	
		
			
				|  |  |  import com.fs.qw.param.QwTagSearchParam;
 | 
	
		
			
				|  |  |  import com.fs.qw.param.SopExternalContactInfo;
 | 
	
	
		
			
				|  | @@ -54,6 +58,8 @@ public class SopUserLogsInfoController extends BaseController
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private IQwTagService iQwTagService;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  | +    private QwTagMapper qwTagMapper;
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  |      private IQwGroupChatUserService qwGroupChatUserService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      private static final Gson GSON = new Gson();
 | 
	
	
		
			
				|  | @@ -85,7 +91,16 @@ public class SopUserLogsInfoController extends BaseController
 | 
	
		
			
				|  |  |                                  QwExternalContactVOTime::getId,
 | 
	
		
			
				|  |  |                                  item -> new SopExternalContactInfo(item.getCreateTime(), item.getTagIds(), item.getRemark())
 | 
	
		
			
				|  |  |                          ));
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +                List<String> tagIds = qwExternalContactVOTimes.stream().map(QwExternalContactVOTime::getTagIds).filter(StringUtils::isNotEmpty).flatMap(e -> JSON.parseArray(e, String.class).stream()).collect(Collectors.toList());
 | 
	
		
			
				|  |  | +                if(!tagIds.isEmpty()){
 | 
	
		
			
				|  |  | +                    List<QwTag> tagList = qwTagMapper.selectQwTagListByTagIdsNew(tagIds);
 | 
	
		
			
				|  |  | +                    Map<String, QwTag> tagMap = PubFun.listToMapByGroupObject(tagList, QwTag::getTagId);
 | 
	
		
			
				|  |  | +                    qwExternalContactVOTimes.forEach(e -> {
 | 
	
		
			
				|  |  | +                        List<String> tagId = JSON.parseArray(e.getTagIds(), String.class);
 | 
	
		
			
				|  |  | +                        List<String> tagNameList = tagId.stream().filter(tagMap::containsKey).map(t -> tagMap.get(t).getName()).filter(StringUtils::isNotEmpty).collect(Collectors.toList());
 | 
	
		
			
				|  |  | +                        e.setTagIdsName(tagNameList);
 | 
	
		
			
				|  |  | +                    });
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  |                  // 设置联系信息
 | 
	
		
			
				|  |  |                  list.forEach(item -> {
 | 
	
		
			
				|  |  |                      SopExternalContactInfo info = externalContactInfoMap.getOrDefault(
 |