public List <long> FindSource(bx_userinfo userInfo, GetMyBjdDetailRequest request) { List <long> sourceInt = _agentConfigRepository.FindSource(request.Agent); var sourceList = new List <long>(); if (request.Source != -1) { sourceList.Add(request.Source); } else { if (userInfo.IsSingleSubmit.HasValue) { // 获取到记录用到的渠道列表 sourceList = SourceGroupAlgorithm.GetSource(sourceInt, userInfo.IsSingleSubmit.Value); } } return(sourceList); }
public List <long> FindSource(List <long> listquote01, int agent) { List <long> sourceLong = _agentConfigRepository.FindSource(agent); List <long> listsource = listquote01; if (listquote01.Any()) { foreach (var i in listquote01) { sourceLong.Remove(i); } } if (sourceLong.Any()) { foreach (var i in sourceLong) { listsource.Add(i); } } return(sourceLong); }