Commit 36366e4d authored by liudong1993's avatar liudong1993

1

parent ea752dfd
...@@ -765,9 +765,8 @@ namespace Edu.Module.Course ...@@ -765,9 +765,8 @@ namespace Edu.Module.Course
var TeacherRuleList = dictvalueRepository.GetList(new RB_Dictvalue_Extend() { RB_Group_id = userInfo.Group_Id, DictKey = "Teacher_Commission" }); var TeacherRuleList = dictvalueRepository.GetList(new RB_Dictvalue_Extend() { RB_Group_id = userInfo.Group_Id, DictKey = "Teacher_Commission" });
if (TeacherRuleList.Any()) if (TeacherRuleList.Any())
{ {
string courseIds = string.Join(",", orderList.Where(x => x.HelpEnterId > 0).Select(x => x.CourseId).Distinct()); string courseIds2 = string.Join(",", rulelist.Where(x => x.CourseType == 2 && !string.IsNullOrEmpty(x.CourseIds)).Select(x => x.CourseIds));
var CourseList = courseRepository.GetCourseListRepository(new RB_Course_ViewModel() { Group_Id = userInfo.Group_Id, QCourseIds = courseIds }); foreach (var qitem in orderList.Where(x => x.HelpEnterId > 0 && !("," + courseIds2 + ",").Contains("," + x.CourseId + ",")))
foreach (var qitem in orderList.Where(x => x.HelpEnterId > 0))
{ {
decimal TRate = 0; decimal TRate = 0;
string Remark = ""; string Remark = "";
...@@ -779,7 +778,8 @@ namespace Edu.Module.Course ...@@ -779,7 +778,8 @@ namespace Edu.Module.Course
TRate = Convert.ToDecimal(TeacherRuleList.Where(x => x.SNO == 4).FirstOrDefault()?.Content ?? "0"); TRate = Convert.ToDecimal(TeacherRuleList.Where(x => x.SNO == 4).FirstOrDefault()?.Content ?? "0");
Remark = "教师续费订单提成:订单b2b返佣:" + bdCommission + ";订单业绩:" + (qitem.PreferPrice - qitem.DiscountMoney - bdCommission); Remark = "教师续费订单提成:订单b2b返佣:" + bdCommission + ";订单业绩:" + (qitem.PreferPrice - qitem.DiscountMoney - bdCommission);
} }
else { else
{
//新订单 //新订单
TRate = Convert.ToDecimal(TeacherRuleList.Where(x => x.SNO == 1).FirstOrDefault()?.Content ?? "0"); TRate = Convert.ToDecimal(TeacherRuleList.Where(x => x.SNO == 1).FirstOrDefault()?.Content ?? "0");
Remark = "教师试听订单提成:订单b2b返佣:" + bdCommission + ";订单业绩:" + (qitem.PreferPrice - qitem.DiscountMoney - bdCommission); Remark = "教师试听订单提成:订单b2b返佣:" + bdCommission + ";订单业绩:" + (qitem.PreferPrice - qitem.DiscountMoney - bdCommission);
......
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