Commit eaf1cae3 authored by 黄奎's avatar 黄奎

页面修改

parent dd35de86
...@@ -37,6 +37,11 @@ namespace Edu.Repository.User ...@@ -37,6 +37,11 @@ namespace Edu.Repository.User
/// </summary> /// </summary>
private readonly RB_StageRepository stageRepository = new RB_StageRepository(); private readonly RB_StageRepository stageRepository = new RB_StageRepository();
/// <summary>
/// 同业客户仓储层对象
/// </summary>
private readonly RB_CustomerRepository customerRepository = new RB_CustomerRepository();
/// <summary> /// <summary>
/// 获取学生列表 /// 获取学生列表
/// </summary> /// </summary>
...@@ -350,6 +355,24 @@ WHERE o.OrderState=1 and og.`Status`=0 and sog.`Status`=0 and og.GuestState=1 an ...@@ -350,6 +355,24 @@ WHERE o.OrderState=1 and og.`Status`=0 and sog.`Status`=0 and og.GuestState=1 an
} }
if (oldModel.StuSourceId != model.StuSourceId) if (oldModel.StuSourceId != model.StuSourceId)
{ {
string oldName = "";
string newName = "";
if (oldModel.CreateType == Common.Enum.User.StuCreateTypeEnum.InternalIntroduction)
{
oldName = accountRepository.GetEmployeeInfo(oldModel.StuSourceId)?.EmployeeName ?? "";
}
if (oldModel.CreateType == Common.Enum.User.StuCreateTypeEnum.TransIntroduction)
{
oldName = customerRepository.GetEntity(oldModel.StuSourceId)?.CustomerName ?? "";
}
if (model.CreateType == Common.Enum.User.StuCreateTypeEnum.InternalIntroduction)
{
newName = accountRepository.GetEmployeeInfo(model.StuSourceId)?.EmployeeName ?? "";
}
if (model.CreateType == Common.Enum.User.StuCreateTypeEnum.TransIntroduction)
{
newName = customerRepository.GetEntity(model.StuSourceId)?.CustomerName ?? "";
}
logContent += string.Format("来源人:由【{0}】=>【{1}】,", oldModel.StuSourceId, model.StuSourceId); logContent += string.Format("来源人:由【{0}】=>【{1}】,", oldModel.StuSourceId, model.StuSourceId);
} }
Dictionary<string, object> fileds = new Dictionary<string, object>() Dictionary<string, object> fileds = new Dictionary<string, object>()
......
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