Commit 7c42ad51 authored by 黄奎's avatar 黄奎

页面修改

parent b12e41d5
...@@ -1239,12 +1239,18 @@ namespace Edu.Module.Customer ...@@ -1239,12 +1239,18 @@ namespace Edu.Module.Customer
foreach (var subItem in sourceIdList) foreach (var subItem in sourceIdList)
{ {
var tempCusList = dataList?.Where(qitem => qitem.CreateType == StuCreateTypeEnum.CustomerInput && qitem.StuSourceId == subItem.StuSourceId)?.ToList(); var tempCusList = dataList?.Where(qitem => qitem.CreateType == StuCreateTypeEnum.CustomerInput && qitem.StuSourceId == subItem.StuSourceId)?.ToList();
var tempCustomer = customerList?.FirstOrDefault(qitem => qitem.CustomerId == subItem.StuSourceId);
string channelName = tempCustomer?.CustomerName ?? "";
if (!string.IsNullOrEmpty(tempCustomer?.CategoryName))
{
channelName += string.Format("({0})", tempCustomer?.CategoryName);
}
//企业同行 //企业同行
if (sItem.CustomerType == Common.Enum.Customer.CatetoryTypeEnum.Company) if (sItem.CustomerType == Common.Enum.Customer.CatetoryTypeEnum.Company)
{ {
customerDataList.Add(new MarketChannelStaticModel() customerDataList.Add(new MarketChannelStaticModel()
{ {
ChannelName = customerList?.FirstOrDefault(qitem => qitem.CustomerId == subItem.StuSourceId)?.CustomerName ?? "", ChannelName = channelName,
ChannelId = subItem.StuSourceId, ChannelId = subItem.StuSourceId,
ClueCount = tempCusList?.Count() ?? 0, ClueCount = tempCusList?.Count() ?? 0,
VisitCount = tempCusList?.Sum(qitem => qitem.VisitCount) ?? 0, VisitCount = tempCusList?.Sum(qitem => qitem.VisitCount) ?? 0,
...@@ -1257,7 +1263,7 @@ namespace Edu.Module.Customer ...@@ -1257,7 +1263,7 @@ namespace Edu.Module.Customer
{ {
schoolDataList.Add(new MarketChannelStaticModel() schoolDataList.Add(new MarketChannelStaticModel()
{ {
ChannelName = customerList?.FirstOrDefault(qitem => qitem.CustomerId == subItem.StuSourceId)?.CustomerName ?? "", ChannelName = channelName,
ChannelId = subItem.StuSourceId, ChannelId = subItem.StuSourceId,
ClueCount = tempCusList?.Count() ?? 0, ClueCount = tempCusList?.Count() ?? 0,
VisitCount = tempCusList?.Sum(qitem => qitem.VisitCount) ?? 0, VisitCount = tempCusList?.Sum(qitem => qitem.VisitCount) ?? 0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment