Commit 710eebe4 authored by liudong1993's avatar liudong1993

1

parent 806f4d0b
......@@ -895,5 +895,16 @@ namespace Edu.Common
return ReadConfigKey("WeChatAccountAppSecret");
}
}
/// <summary>
/// 新业绩提成启用时间
/// </summary>
public static string NewAchievementsEnable
{
get
{
return ReadConfigKey("NewAchievementsEnable");
}
}
}
}
\ No newline at end of file
......@@ -1333,9 +1333,17 @@ namespace Edu.Module.Course
/// 效验退款后 业绩提成是否达标
/// </summary>
/// <param name="orderId"></param>
public void ValidataAchievements(int orderId)
public bool ValidataAchievements(int orderId)
{
throw new NotImplementedException();
DateTime EnableDate = Convert.ToDateTime(Config.NewAchievementsEnable);
//查询订单信息
var orderModel = orderRepository.GetEntity(orderId);
if (orderModel == null) { return false; }
if (orderModel.CreateTime < EnableDate) { return false; }
//查询订单业绩关联
var empList = sell_Achievements_EmpRepository.GetList(new RB_Sell_Achievements_Emp_ViewModel() { Group_Id = orderModel.Group_Id, OrderId = orderId });
return true;
}
#endregion
......
......@@ -113,5 +113,7 @@
//考试申请流程编号
"ExamApplyFlowId": 9,
//投稿审批流程编号
"ContributeFlowId": 10
"ContributeFlowId": 10,
//新业绩提成启用时间
"NewAchievementsEnable": "2021-12-01"
}
\ No newline at end of file
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