|  | @@ -19,6 +19,7 @@ import com.fs.fastGpt.mapper.FastGptChatReplaceWordsMapper;
 | 
	
		
			
				|  |  |  import com.fs.qw.domain.QwExternalContact;
 | 
	
		
			
				|  |  |  import com.fs.qw.domain.QwUser;
 | 
	
		
			
				|  |  |  import com.fs.qw.mapper.QwExternalContactMapper;
 | 
	
		
			
				|  |  | +import com.fs.qw.mapper.QwGroupChatUserMapper;
 | 
	
		
			
				|  |  |  import com.fs.qw.mapper.QwUserMapper;
 | 
	
		
			
				|  |  |  import com.fs.qw.service.impl.AsyncSopTestService;
 | 
	
		
			
				|  |  |  import com.fs.qw.vo.QwSopCourseFinishTempSetting;
 | 
	
	
		
			
				|  | @@ -116,6 +117,8 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private CompanyUserMapper companyUserMapper;
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private QwGroupChatUserMapper qwGroupChatUserMapper;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public void save(SopUserLogsInfo sopUserLogsInfo) {
 | 
	
	
		
			
				|  | @@ -363,13 +366,6 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          List<FastGptChatReplaceWords> words = fastGptChatReplaceWordsMapper.selectAllFastGptChatReplaceWords();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -//        List<SopUserLogsInfo> sopUserLogsInfos = sopUserLogsInfoMapper.selectSopUserLogsInfoByIds(param.getIds());
 | 
	
		
			
				|  |  | -        SopUserLogsInfoByIdsHasUserIdParam userIdParam=new SopUserLogsInfoByIdsHasUserIdParam();
 | 
	
		
			
				|  |  | -        userIdParam.setIds(param.getIds());
 | 
	
		
			
				|  |  | -        userIdParam.setIsRegister(param.getIsRegister());
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        List<SopUserLogsInfo> sopUserLogsInfos = sopUserLogsInfoMapper.selectSopUserLogsInfoByIdsHasUserId(userIdParam);
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |          String[] userKey = param.getUserIdParam().split("\\|");
 | 
	
		
			
				|  |  |          String qwUserId = userKey[0].trim();
 | 
	
		
			
				|  |  |          String companyUserId = userKey[1].trim();
 | 
	
	
		
			
				|  | @@ -378,9 +374,24 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
 | 
	
		
			
				|  |  |          QwUser qwUser = qwUserMapper.selectQwUserByIdByWeComeText(Long.valueOf(qwUserId));
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          if (qwUser == null) {
 | 
	
		
			
				|  |  | -              return R.error().put("msg","企业微信用户不存在:"+qwUserId);
 | 
	
		
			
				|  |  | +            return R.error().put("msg","企业微信用户不存在:"+qwUserId);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +//        List<SopUserLogsInfo> sopUserLogsInfos = sopUserLogsInfoMapper.selectSopUserLogsInfoByIds(param.getIds());
 | 
	
		
			
				|  |  | +        SopUserLogsInfoByIdsHasUserIdParam userIdParam=new SopUserLogsInfoByIdsHasUserIdParam();
 | 
	
		
			
				|  |  | +        userIdParam.setIds(param.getIds());
 | 
	
		
			
				|  |  | +        userIdParam.setIsRegister(param.getIsRegister());
 | 
	
		
			
				|  |  | +        userIdParam.setQwUserId(qwUser.getQwUserId());
 | 
	
		
			
				|  |  | +        List<SopUserLogsInfo> sopUserLogsInfos;
 | 
	
		
			
				|  |  | +        if(param.getFilterMode() == 1){
 | 
	
		
			
				|  |  | +            sopUserLogsInfos = sopUserLogsInfoMapper.selectSopUserLogsInfoByIdsHasUserId(userIdParam);
 | 
	
		
			
				|  |  | +        }else{
 | 
	
		
			
				|  |  | +            sopUserLogsInfos = qwGroupChatUserMapper.selectByIdAndRegister(userIdParam);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        if(sopUserLogsInfos.isEmpty()){
 | 
	
		
			
				|  |  | +            return R.ok();
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          String json = configService.selectConfigByKey("course.config");
 | 
	
		
			
				|  |  |          CourseConfig config = JSON.parseObject(json, CourseConfig.class);
 | 
	
		
			
				|  |  |  
 |