Commit de2faba4 authored by 黄奎's avatar 黄奎

页面修改

parent a11d5223
......@@ -374,6 +374,18 @@ namespace Edu.Module.User
return flag;
}
/// <summary>
/// 修改客户阶段
/// </summary>
/// <param name="StuId"></param>
/// <param name="StuStage"></param>
/// <param name="Uid"></param>
/// <returns></returns>
public bool SetStudentStageModule(int StuId,int StuStage,int Uid)
{
return studentRepository.SetStudentStageRepository(StuId, StuStage, Uid);
}
/// <summary>
/// 获取协助人员列表
/// </summary>
......
......@@ -544,6 +544,38 @@ WHERE o.OrderState=1 and og.`Status`=0 and sog.`Status`=0 and og.GuestState=1 an
return flag;
}
/// <summary>
/// 修改客户阶段
/// </summary>
/// <param name="StuId"></param>
/// <param name="StuStage"></param>
/// <param name="Uid"></param>
/// <returns></returns>
public bool SetStudentStageRepository(int StuId,int StuStage,int Uid)
{
string logContent = "";
string logTitle = "";
bool flag = false;
var oldModel = base.GetEntity(StuId);
if (oldModel != null)
{
if (oldModel.StuStage != StuStage)
{
var oldName = stageRepository.GetEntity(oldModel.StuStage)?.StageName ?? "";
var newName = stageRepository.GetEntity(StuStage)?.StageName ?? "";
logContent += string.Format("客户阶段:由【{0}】=>【{1}】,", oldName, newName);
}
Dictionary<string, object> fileds = new Dictionary<string, object>()
{
{nameof(RB_Student_ViewModel.StuStage),StuStage }
};
flag = base.Update(fileds, new WhereHelper(nameof(RB_Student_ViewModel.StuId), StuId));
student_LogRepository.AddStuLogRepository(oldModel.StuId, Common.Enum.Log.StudentLogTypeEnum.BasicInfo, logTitle, logContent, Uid, CreateType: 1);
}
return flag;
}
/// <summary>
/// 学员转交
/// </summary>
......
......@@ -867,6 +867,23 @@ namespace Edu.WebApi.Controllers.User
return flag ? ApiResult.Success(data: extModel) : ApiResult.Failed();
}
/// <summary>
/// 修改客户阶段
/// </summary>
/// <returns></returns>
[HttpPost]
public ApiResult SetStudentStage()
{
var StuId = base.ParmJObj.GetInt("StuId");
var StuStage = base.ParmJObj.GetInt("StuStage");
if (StuStage > 0)
{
var flag = studentModule.SetStudentStageModule(StuId, StuStage, base.UserInfo.Id);
return flag ? ApiResult.Success() : ApiResult.Failed();
}
return ApiResult.Failed(message:"请选择客户阶段");
}
/// <summary>
/// 检查学员手机号码是否存在
/// </summary>
......
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