| | |
| | | /// 获取所有有效意向客户 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public List<IntentionCustomerDTO> GetList() |
| | | public List<IntentionCustomerDTO> GetList(string huiyuanId = null) |
| | | { |
| | | List<IntentionCustomerDTO> intentionCustomerDTOs = (List<IntentionCustomerDTO>)CacheHelperNetCore.CacheValue("intentionCustomerDTOs"); |
| | | |
| | | |
| | | if (intentionCustomerDTOs != null && intentionCustomerDTOs.Count > 0) |
| | | { |
| | | if (!string.IsNullOrEmpty(huiyuanId)) |
| | | { |
| | | intentionCustomerDTOs = intentionCustomerDTOs.Where(x => x.HuiyuanId == huiyuanId).ToList(); |
| | | } |
| | | |
| | | |
| | | return intentionCustomerDTOs; |
| | | } |
| | | |
| | | |
| | | var listPosition = _context.IntentionCustomers.Where(r => r.RecStatus == "A").ToList(); |
| | | |
| | | intentionCustomerDTOs = _mapper.Map<List<IntentionCustomerDTO>>(listPosition); |
| | | CacheHelperNetCore.CacheInsert("intentionCustomerDTOs", intentionCustomerDTOs); |
| | | |
| | | var list = _mapper.Map<List<IntentionCustomerDTO>>(listPosition); |
| | | return list; |
| | | |
| | | if (!string.IsNullOrEmpty(huiyuanId)) |
| | | { |
| | | intentionCustomerDTOs = intentionCustomerDTOs.Where(x => x.HuiyuanId == huiyuanId).ToList(); |
| | | } |
| | | |
| | | return intentionCustomerDTOs; |
| | | } |
| | | |
| | | /// <summary> |