Commit f1ba8692 authored by 黄奎's avatar 黄奎

页面修改

parent 85c9a8d4
...@@ -133,5 +133,10 @@ namespace Edu.Model.ViewModel.Customer ...@@ -133,5 +133,10 @@ namespace Edu.Model.ViewModel.Customer
/// 同业名称 /// 同业名称
/// </summary> /// </summary>
public string CategoryName { get; set; } public string CategoryName { get; set; }
/// <summary>
/// 是否签约
/// </summary>
public int IsContract { get; set; }
} }
} }
...@@ -1366,7 +1366,7 @@ namespace Edu.Module.Customer ...@@ -1366,7 +1366,7 @@ namespace Edu.Module.Customer
var tempCustomer = customerList?.FirstOrDefault(qitem => qitem.CategoryId == subItem.CategoryId); var tempCustomer = customerList?.FirstOrDefault(qitem => qitem.CategoryId == subItem.CategoryId);
string channelName = tempCustomer?.CategoryName ?? "其他"; string channelName = tempCustomer?.CategoryName ?? "其他";
//舒翰 //舒翰
if (subItem.CategoryId == 88) if ((tempCustomer?.IsContract??0)==1)
{ {
contractDataList.Add(new MarketChannelStaticModel() contractDataList.Add(new MarketChannelStaticModel()
{ {
......
...@@ -114,7 +114,7 @@ WHERE 1=1 ...@@ -114,7 +114,7 @@ WHERE 1=1
var parameters = new DynamicParameters(); var parameters = new DynamicParameters();
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
builder.AppendFormat(@" builder.AppendFormat(@"
SELECT A.*,IFNULL(B.CategoryName,'') AS CategoryName SELECT A.*,IFNULL(B.CategoryName,'') AS CategoryName,IFNULL(B.IsContract,0) AS IsContract
FROM RB_Customer AS A LEFT JOIN rb_customer_category AS B ON A.CategoryId=B.CategoryId FROM RB_Customer AS A LEFT JOIN rb_customer_category AS B ON A.CategoryId=B.CategoryId
WHERE 1=1 WHERE 1=1
"); ");
......
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