Commit 6be708bc authored by 黄奎's avatar 黄奎

更新学员有效课时

parent 96f613b5
...@@ -674,7 +674,7 @@ namespace Edu.Module.Course ...@@ -674,7 +674,7 @@ namespace Edu.Module.Course
m.CommissionMoeny = m.CommissionType == 1 ? courseModel.InnerRecommendRatio : courseModel.InnerRecommendReNewRatio; m.CommissionMoeny = m.CommissionType == 1 ? courseModel.InnerRecommendRatio : courseModel.InnerRecommendReNewRatio;
} }
m.CommissionReType = m.CommissionType == 1 ? courseModel.InnerRecommendRatioType.ToInt() : courseModel.InnerRecommendReNewRatioType.ToInt(); m.CommissionReType = m.CommissionType == 1 ? courseModel.InnerRecommendRatioType.ToInt() : courseModel.InnerRecommendReNewRatioType.ToInt();
m.CommissionReValue = m.CommissionType == 1 ? courseModel.InnerRecommendRatioValue : courseModel.InnerRecommendReNewRatioValue.Value; m.CommissionReValue = m.CommissionType == 1 ? courseModel.InnerRecommendRatioValue : (courseModel?.InnerRecommendReNewRatioValue ?? 0);
m.Remark = $"学员来源为:内部介绍,学员为{(m.CommissionType == 1 ? "首次报名" : "续费报名")},本次报名金额为:{sellPrice},本次返佣金额为:{m.CommissionMoeny:0.00}"; m.Remark = $"学员来源为:内部介绍,学员为{(m.CommissionType == 1 ? "首次报名" : "续费报名")},本次报名金额为:{sellPrice},本次返佣金额为:{m.CommissionMoeny:0.00}";
} }
else if ((int)m.OrderSourceType == 4) else if ((int)m.OrderSourceType == 4)
...@@ -4160,11 +4160,17 @@ namespace Edu.Module.Course ...@@ -4160,11 +4160,17 @@ namespace Edu.Module.Course
GuestId = guestId GuestId = guestId
}); });
if (studentMapping.Any()) if (studentMapping.Any())
{
try
{ {
UpdateReturnMoneyStatus(studentMapping.First().Student_Id, gmodel.OrderId, omodel); UpdateReturnMoneyStatus(studentMapping.First().Student_Id, gmodel.OrderId, omodel);
} }
catch (Exception ex)
{
Common.Plugin.LogHelper.Write(ex, string.Format("UpdateStudentValidClassHours__GuestId:{0} Money:{2} ", guestId, money));
}
}
} }
return true; return true;
} }
......
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