From db0147994ef4899702ac864ac0794a79fe980416 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 02 二月 2023 11:12:03 +0800
Subject: [PATCH] 分配客户聊天的业务经理
---
zhengcaioa/Services/IntentionCustomerService.cs | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/zhengcaioa/Services/IntentionCustomerService.cs b/zhengcaioa/Services/IntentionCustomerService.cs
index 410bb6c..404a3f7 100644
--- a/zhengcaioa/Services/IntentionCustomerService.cs
+++ b/zhengcaioa/Services/IntentionCustomerService.cs
@@ -510,21 +510,35 @@
/// 鑾峰彇鎵�鏈夋湁鏁堟剰鍚戝鎴�
/// </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>
--
Gitblit v1.9.1