Commit 9bc0f41d authored by 黄奎's avatar 黄奎

新增字段

parent 7c4c80b9
...@@ -219,5 +219,20 @@ namespace Edu.Model.Entity.DataStatistics ...@@ -219,5 +219,20 @@ namespace Edu.Model.Entity.DataStatistics
/// 当月效能目标金额 /// 当月效能目标金额
/// </summary> /// </summary>
public decimal CurMonthOrderGoal { get; set; } public decimal CurMonthOrderGoal { get; set; }
/// <summary>
/// 当月新签累计 [订单数量累计】
/// </summary>
public int CurMonthOrderNum { get; set; }
/// <summary>
/// 上月新签累计 [订单数量累计】
/// </summary>
public int LastMonthOrderNum { get; set; }
/// <summary>
/// 上月累计金额
/// </summary>
public decimal LastMonthOrderSale { get; set; }
} }
} }
...@@ -502,9 +502,15 @@ namespace Edu.Module.Customer ...@@ -502,9 +502,15 @@ namespace Edu.Module.Customer
} }
if (sItem.Key == "curMonth") if (sItem.Key == "curMonth")
{ {
model.CurMonthOrderNum = orderCount;
model.CurMonthOrderSale = Income; model.CurMonthOrderSale = Income;
model.CurMonthOrderGoal = consultantGoal?.GoalMoney ?? 0; model.CurMonthOrderGoal = consultantGoal?.GoalMoney ?? 0;
} }
if (sItem.Key == "lastMonth")
{
model.LastMonthOrderNum = orderCount;
model.LastMonthOrderSale = Income;
}
} }
consultant_DataRepository.InsertConsultantRepository(model); consultant_DataRepository.InsertConsultantRepository(model);
} }
...@@ -701,8 +707,14 @@ namespace Edu.Module.Customer ...@@ -701,8 +707,14 @@ namespace Edu.Module.Customer
CurWeekOrderSale = yesDataList?.Sum(qitem => qitem.CurWeekOrderSale) ?? 0, CurWeekOrderSale = yesDataList?.Sum(qitem => qitem.CurWeekOrderSale) ?? 0,
LastWeekOrderSale = yesDataList?.Sum(qitem => qitem.LastWeekOrderSale) ?? 0, LastWeekOrderSale = yesDataList?.Sum(qitem => qitem.LastWeekOrderSale) ?? 0,
CurMonthOrderSale = yesDataList?.Sum(qitem => qitem.CurMonthOrderSale) ?? 0, CurMonthOrderSale = yesDataList?.Sum(qitem => qitem.CurMonthOrderSale) ?? 0,
LastMonthOrderSale= yesDataList?.Sum(qitem => qitem.LastMonthOrderSale) ?? 0,
CurMonthOrderGoal = consultantGoal?.GoalMoney??0, CurMonthOrderGoal = consultantGoal?.GoalMoney??0,
CurMonthOrderNum = yesDataList?.Sum(qitem => qitem.CurMonthOrderNum) ?? 0,
LastMonthOrderNum = yesDataList?.Sum(qitem => qitem.LastMonthOrderNum) ?? 0,
}; };
return obj; return obj;
} }
......
...@@ -107,6 +107,8 @@ WHERE 1=1 ...@@ -107,6 +107,8 @@ WHERE 1=1
CurMonthOrderGoal=model.CurMonthOrderGoal, CurMonthOrderGoal=model.CurMonthOrderGoal,
CurMonthOrderSale=model.CurMonthOrderSale, CurMonthOrderSale=model.CurMonthOrderSale,
CurMonthOrderNum=model.CurMonthOrderNum,
LastMonthOrderNum=model.LastMonthOrderNum,
CreateBy = model.CreateBy, CreateBy = model.CreateBy,
CreateTime = DateTime.Now, CreateTime = DateTime.Now,
......
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