Commit 2392d291 authored by liudong1993's avatar liudong1993

1

parent 9e085edc
...@@ -2449,7 +2449,8 @@ namespace Edu.Module.Course ...@@ -2449,7 +2449,8 @@ namespace Edu.Module.Course
UpdateBy = dmodel.CreateBy, UpdateBy = dmodel.CreateBy,
UpdateTime = DateTime.Now, UpdateTime = DateTime.Now,
CustomerId = ordermodel.CustomerId, CustomerId = ordermodel.CustomerId,
StuStage = Common.Enum.User.StuStageEnum.Clinch StuStage = Common.Enum.User.StuStageEnum.NewStu,
CreateType = Common.Enum.User.StuCreateTypeEnum.EmployeeInput
}; };
studentRepository.SetStudentRepository(stuModel); studentRepository.SetStudentRepository(stuModel);
......
...@@ -232,33 +232,33 @@ namespace Edu.Module.Customer ...@@ -232,33 +232,33 @@ namespace Edu.Module.Customer
logContent = model.Remark; logContent = model.Remark;
if (flag) { if (flag) {
//获取学生信息 //获取学生信息
var smodel = studentRepository.GetEntity(model.StuId); //var smodel = studentRepository.GetEntity(model.StuId);
if (smodel != null && smodel.StuStage == Common.Enum.User.StuStageEnum.NewStu) //if (smodel != null && smodel.StuStage == Common.Enum.User.StuStageEnum.NewStu)
{ //{
Dictionary<string, object> keyValues = new Dictionary<string, object>() { // Dictionary<string, object> keyValues = new Dictionary<string, object>() {
{ nameof(RB_Student_ViewModel.StuStage), Common.Enum.User.StuStageEnum.PreliminaryCommunication} // { nameof(RB_Student_ViewModel.StuStage), Common.Enum.User.StuStageEnum.PreliminaryCommunication}
}; // };
List<WhereHelper> wheres = new List<WhereHelper>() { // List<WhereHelper> wheres = new List<WhereHelper>() {
new WhereHelper(){ // new WhereHelper(){
FiledName = nameof (RB_Student_ViewModel.StuId), // FiledName = nameof (RB_Student_ViewModel.StuId),
FiledValue = model.StuId, // FiledValue = model.StuId,
OperatorEnum =OperatorEnum.Equal // OperatorEnum =OperatorEnum.Equal
} // }
}; // };
studentRepository.Update(keyValues, wheres); // studentRepository.Update(keyValues, wheres);
student_LogRepository.Insert(new Model.Entity.Customer.RB_Student_Log() // student_LogRepository.Insert(new Model.Entity.Customer.RB_Student_Log()
{ // {
LogId = 0, // LogId = 0,
CreateBy = model.CreateBy, // CreateBy = model.CreateBy,
CreateTime = DateTime.Now, // CreateTime = DateTime.Now,
CreateType = 1, // CreateType = 1,
Group_Id = model.Group_Id, // Group_Id = model.Group_Id,
LogContent = "首次跟进,客户阶段由'" + (Common.Enum.User.StuStageEnum.NewStu.ToName()) + "'自动转换为'" + (Common.Enum.User.StuStageEnum.PreliminaryCommunication.ToName()) + "'", // LogContent = "首次跟进,客户阶段由'" + (Common.Enum.User.StuStageEnum.NewStu.ToName()) + "'自动转换为'" + (Common.Enum.User.StuStageEnum.PreliminaryCommunication.ToName()) + "'",
LogTitle = "客户阶段变更", // LogTitle = "客户阶段变更",
LogType = Common.Enum.Log.StudentLogTypeEnum.BasicInfo, // LogType = Common.Enum.Log.StudentLogTypeEnum.BasicInfo,
StuId = model.StuId // StuId = model.StuId
}); // });
} //}
} }
} }
student_LogRepository.AddStuLogRepository(model.StuId, Common.Enum.Log.StudentLogTypeEnum.Follow, logTitle, logContent, model.CreateBy); student_LogRepository.AddStuLogRepository(model.StuId, Common.Enum.Log.StudentLogTypeEnum.Follow, logTitle, logContent, model.CreateBy);
...@@ -424,33 +424,33 @@ namespace Edu.Module.Customer ...@@ -424,33 +424,33 @@ namespace Edu.Module.Customer
logContent = model.Remark; logContent = model.Remark;
if (flag) { if (flag) {
//获取学生信息 //获取学生信息
var smodel = studentRepository.GetEntity(model.StuId); //var smodel = studentRepository.GetEntity(model.StuId);
if (smodel != null && smodel.StuStage == Common.Enum.User.StuStageEnum.NewStu) //if (smodel != null && smodel.StuStage == Common.Enum.User.StuStageEnum.NewStu)
{ //{
Dictionary<string, object> keyValues = new Dictionary<string, object>() { // Dictionary<string, object> keyValues = new Dictionary<string, object>() {
{ nameof(RB_Student_ViewModel.StuStage), Common.Enum.User.StuStageEnum.PreliminaryCommunication} // { nameof(RB_Student_ViewModel.StuStage), Common.Enum.User.StuStageEnum.PreliminaryCommunication}
}; // };
List<WhereHelper> wheres = new List<WhereHelper>() { // List<WhereHelper> wheres = new List<WhereHelper>() {
new WhereHelper(){ // new WhereHelper(){
FiledName = nameof (RB_Student_ViewModel.StuId), // FiledName = nameof (RB_Student_ViewModel.StuId),
FiledValue = model.StuId, // FiledValue = model.StuId,
OperatorEnum =OperatorEnum.Equal // OperatorEnum =OperatorEnum.Equal
} // }
}; // };
studentRepository.Update(keyValues, wheres); // studentRepository.Update(keyValues, wheres);
student_LogRepository.Insert(new Model.Entity.Customer.RB_Student_Log() // student_LogRepository.Insert(new Model.Entity.Customer.RB_Student_Log()
{ // {
LogId = 0, // LogId = 0,
CreateBy = model.CreateBy, // CreateBy = model.CreateBy,
CreateTime = DateTime.Now, // CreateTime = DateTime.Now,
CreateType = 1, // CreateType = 1,
Group_Id = model.Group_Id, // Group_Id = model.Group_Id,
LogContent = "首次拜访,客户阶段由'" + (Common.Enum.User.StuStageEnum.NewStu.ToName()) + "'自动转换为'" + (Common.Enum.User.StuStageEnum.PreliminaryCommunication.ToName()) + "'", // LogContent = "首次拜访,客户阶段由'" + (Common.Enum.User.StuStageEnum.NewStu.ToName()) + "'自动转换为'" + (Common.Enum.User.StuStageEnum.PreliminaryCommunication.ToName()) + "'",
LogTitle = "客户阶段变更", // LogTitle = "客户阶段变更",
LogType = Common.Enum.Log.StudentLogTypeEnum.BasicInfo, // LogType = Common.Enum.Log.StudentLogTypeEnum.BasicInfo,
StuId = model.StuId // StuId = model.StuId
}); // });
} //}
} }
} }
student_LogRepository.AddStuLogRepository(model.StuId, Common.Enum.Log.StudentLogTypeEnum.Visit, logTitle, logContent, model.CreateBy); student_LogRepository.AddStuLogRepository(model.StuId, Common.Enum.Log.StudentLogTypeEnum.Visit, logTitle, logContent, model.CreateBy);
......
...@@ -141,33 +141,33 @@ namespace Edu.Module.Duty ...@@ -141,33 +141,33 @@ namespace Edu.Module.Duty
flag = newId > 0; flag = newId > 0;
if (flag) { if (flag) {
//获取学生信息 //获取学生信息
var smodel = studentRepository.GetEntity(model.Visitor_Id); //var smodel = studentRepository.GetEntity(model.Visitor_Id);
if (smodel != null && smodel.StuStage <= Common.Enum.User.StuStageEnum.PreliminaryCommunication) //if (smodel != null && smodel.StuStage <= Common.Enum.User.StuStageEnum.PreliminaryCommunication)
{ //{
Dictionary<string, object> keyValues = new Dictionary<string, object>() { // Dictionary<string, object> keyValues = new Dictionary<string, object>() {
{ nameof(RB_Student_ViewModel.StuStage), Common.Enum.User.StuStageEnum.Audition} // { nameof(RB_Student_ViewModel.StuStage), Common.Enum.User.StuStageEnum.Audition}
}; // };
List<WhereHelper> wheres = new List<WhereHelper>() { // List<WhereHelper> wheres = new List<WhereHelper>() {
new WhereHelper(){ // new WhereHelper(){
FiledName = nameof (RB_Student_ViewModel.StuId), // FiledName = nameof (RB_Student_ViewModel.StuId),
FiledValue = model.Visitor_Id, // FiledValue = model.Visitor_Id,
OperatorEnum =OperatorEnum.Equal // OperatorEnum =OperatorEnum.Equal
} // }
}; // };
studentRepository.Update(keyValues, wheres); // studentRepository.Update(keyValues, wheres);
student_LogRepository.Insert(new Model.Entity.Customer.RB_Student_Log() // student_LogRepository.Insert(new Model.Entity.Customer.RB_Student_Log()
{ // {
LogId = 0, // LogId = 0,
CreateBy = model.CreateBy, // CreateBy = model.CreateBy,
CreateTime = DateTime.Now, // CreateTime = DateTime.Now,
CreateType = 1, // CreateType = 1,
Group_Id = model.Group_Id, // Group_Id = model.Group_Id,
LogContent = "首次试听,客户阶段由'" + (smodel.StuStage.ToName()) + "'自动转换为'" + (Common.Enum.User.StuStageEnum.Audition.ToName()) + "'", // LogContent = "首次试听,客户阶段由'" + (smodel.StuStage.ToName()) + "'自动转换为'" + (Common.Enum.User.StuStageEnum.Audition.ToName()) + "'",
LogTitle = "客户阶段变更", // LogTitle = "客户阶段变更",
LogType = Common.Enum.Log.StudentLogTypeEnum.BasicInfo, // LogType = Common.Enum.Log.StudentLogTypeEnum.BasicInfo,
StuId = model.Visitor_Id // StuId = model.Visitor_Id
}); // });
} //}
} }
} }
return flag; return flag;
......
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