Commit b96b8d54 authored by 吴春's avatar 吴春

新增留学客户资料列表

parent 77aab2ac
......@@ -75,7 +75,7 @@ namespace Edu.Model.Entity.Sell
/// <summary>
/// 学习目的
/// </summary>
public int LearningGoals { get; set; }
public string LearningGoals { get; set; }
/// <summary>
/// 联系人
......
......@@ -135,7 +135,12 @@ namespace Edu.Model.Entity.User
/// <summary>
/// 学习目的
/// </summary>
public int StuPurpose { get; set; }
public string StuPurpose { get; set; }
/// <summary>
/// 客户类型,1-普通客户,2-会员客户
/// </summary>
public int StudentType { get; set; }
/// <summary>
/// 客人来源 (启用 +》 CreateType)
......
......@@ -169,7 +169,7 @@ namespace Edu.Model.ViewModel.DataStatistics
/// <summary>
/// 学习目的
/// </summary>
public int StuPurpose { get; set; }
public string StuPurpose { get; set; }
/// <summary>
/// 学习目的名称
......
This diff is collapsed.
......@@ -438,7 +438,7 @@ namespace Edu.Module.Course
Basics = "",
Education = item?.StuEducation ?? GuestEducationEnum.N2,
GuestSource = orderModel.OrderSource,
LearningGoals = item?.StuPurpose ?? 0,
LearningGoals = item?.StuPurpose ?? "",
Contact = item?.StuContract ?? "",
ContactMobile = item?.StuContractMobile ?? "",
Status = 0,
......
......@@ -273,7 +273,7 @@ namespace Edu.Module.Customer
/// <returns></returns>
public List<RB_Student_Follow_Extend> GetStudentFollowPageModule(int pageIndex, int pageSize, out long rowsCount, RB_Student_Follow_Extend query)
{
var list= student_FollowRepository.GetStudentFollowPageRepository(pageIndex, pageSize, out rowsCount, query);
var list = student_FollowRepository.GetStudentFollowPageRepository(pageIndex, pageSize, out rowsCount, query);
if (list != null && list.Count > 0)
{
List<int> courseIdList = new List<int>();
......@@ -287,7 +287,7 @@ namespace Edu.Module.Customer
}
List<Model.ViewModel.Course.RB_Course_ViewModel> courseList = new List<Model.ViewModel.Course.RB_Course_ViewModel>();
List<RB_Student_Config_Extend> configList = GetStudentConfigListModule();
if (courseIdList!=null &&courseIdList.Count > 0)
if (courseIdList != null && courseIdList.Count > 0)
{
string qCourseIds = string.Join(",", courseIdList);
courseList = GetCourseListModule(qCourseIds);
......@@ -360,12 +360,12 @@ namespace Edu.Module.Customer
if (oldModel.ConsultCourseIds != model.ConsultCourseIds)
{
List<int> courseIdList = new List<int>();
var tempOldList= Common.ConvertHelper.StringToList(oldModel.ConsultCourseIds);
var tempOldList = Common.ConvertHelper.StringToList(oldModel.ConsultCourseIds);
if (tempOldList != null && tempOldList.Count > 0)
{
courseIdList.AddRange(tempOldList);
}
var tempNewList= Common.ConvertHelper.StringToList(model.ConsultCourseIds);
var tempNewList = Common.ConvertHelper.StringToList(model.ConsultCourseIds);
if (tempNewList != null && tempNewList.Count > 0)
{
courseIdList.AddRange(tempNewList);
......@@ -377,7 +377,7 @@ namespace Edu.Module.Customer
var courseList = GetCourseListModule(string.Join(",", courseIdList));
foreach (var item in tempOldList)
{
oldCourseName += "、"+courseList?.FirstOrDefault(qitem => qitem.CourseId == item)?.CourseName ?? "";
oldCourseName += "、" + courseList?.FirstOrDefault(qitem => qitem.CourseId == item)?.CourseName ?? "";
}
foreach (var item in tempNewList)
{
......@@ -399,7 +399,7 @@ namespace Edu.Module.Customer
}
if (Common.ConvertHelper.FormatDate(oldModel.NextVisitDate) != Common.ConvertHelper.FormatDate(model.NextVisitDate))
{
logContent += string.Format("下次回访时间:由【{0}】=>【{1}】",Common.ConvertHelper.FormatDate(oldModel.NextVisitDate),Common.ConvertHelper.FormatDate(model.NextVisitDate));
logContent += string.Format("下次回访时间:由【{0}】=>【{1}】", Common.ConvertHelper.FormatDate(oldModel.NextVisitDate), Common.ConvertHelper.FormatDate(model.NextVisitDate));
}
Dictionary<string, object> fileds = new Dictionary<string, object>()
{
......@@ -481,7 +481,7 @@ namespace Edu.Module.Customer
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
public bool SetStudentBaseInfoModule(RB_Student_Follow_Extend model, string StuProfession, int StuPurpose)
public bool SetStudentBaseInfoModule(RB_Student_Follow_Extend model, string StuProfession, string StuPurpose)
{
bool flag = false;
string logContent = "";
......@@ -578,8 +578,8 @@ namespace Edu.Module.Customer
var oldModel = studentRepository.GetEntity<RB_Student_ViewModel>(model.StuId);
if (oldModel.StuPurpose != StuPurpose)
{
string oldName = learningGoalsRepository.GetLearningGoalsExtEntityRepository(oldModel.StuPurpose)?.Name ?? "";
string newName = learningGoalsRepository.GetLearningGoalsExtEntityRepository(StuPurpose)?.Name ?? "";
string oldName =!string.IsNullOrWhiteSpace(oldModel.StuPurpose)?( string.Join(",", learningGoalsRepository.GetLearningGoalsListRepository(new RB_LearningGoals_Extend { QGoalIds = oldModel.StuPurpose })?.Select(x => x.Name)) ?? ""):"";
string newName = !string.IsNullOrWhiteSpace(StuPurpose) ? (string.Join(",", learningGoalsRepository.GetLearningGoalsListRepository(new RB_LearningGoals_Extend { QGoalIds = StuPurpose })?.Select(x => x.Name)) ?? ""): "";
logContent += string.Format("学习目的:由【{0}】=>【{1}】,", oldName, newName);
}
if (oldModel.StuProfession != StuProfession)
......@@ -1702,7 +1702,7 @@ namespace Edu.Module.Customer
{
List<int> empIdList = new List<int>();
var tempCreateByList = list.Select(qitem => qitem.CreateBy);
if (tempCreateByList != null && tempCreateByList.Count()>0)
if (tempCreateByList != null && tempCreateByList.Count() > 0)
{
empIdList.AddRange(tempCreateByList);
}
......@@ -1712,9 +1712,9 @@ namespace Edu.Module.Customer
empIdList.AddRange(tempStuCreateByList);
}
List<Employee_ViewModel> empList = new List<Employee_ViewModel>();
if(empIdList.Count() > 0)
if (empIdList.Count() > 0)
{
empList= accountRepository.GetEmployeeListRepository(new Employee_ViewModel() { QIds = string.Join(",", empIdList) });
empList = accountRepository.GetEmployeeListRepository(new Employee_ViewModel() { QIds = string.Join(",", empIdList) });
}
foreach (var item in list)
......
......@@ -16,6 +16,7 @@ using Edu.Repository.Reserve;
using Edu.Repository.Sell;
using Edu.Repository.System;
using Edu.Repository.User;
using Senparc.CO2NET.Extensions;
using Senparc.Weixin.Annotations;
using Senparc.Weixin.MP.AdvancedAPIs;
using System;
......@@ -294,7 +295,7 @@ namespace Edu.Module.User
}
//学习目的
string goalIds = string.Join(",", list.Select(qitem => qitem.StuPurpose));
string goalIds = string.Join(",", list?.Where(qitem => !string.IsNullOrWhiteSpace(qitem.StuPurpose))?.Select(qitem => qitem.StuPurpose));
var goalList = learningGoalsRepository.GetLearningGoalsListRepository(new Model.ViewModel.System.RB_LearningGoals_Extend()
{
QGoalIds = goalIds
......@@ -369,7 +370,7 @@ namespace Edu.Module.User
item.StuStageName = stageList?.FirstOrDefault(qitem => qitem.Id == item.StuStage)?.StageName ?? "";
item.StuTypeName = stuTypeList?.FirstOrDefault(qitem => qitem.Id == item.StuType)?.Name ?? "";
item.StuChannelName = channelList?.FirstOrDefault(qitem => qitem.Id == item.StuChannel)?.Name ?? "";
item.StuPurposeName = goalList?.FirstOrDefault(qitem => qitem.Id == item.StuPurpose)?.Name ?? "";
item.StuPurposeName =!string.IsNullOrWhiteSpace(item.StuPurpose)?( string.Join(",", goalList?.Where(qitem => item.StuPurpose.Contains(qitem.Id.ToString()))?.Select(x => x.Name)) ?? ""):"";
item.StuNeedsName = needList?.FirstOrDefault(qitem => qitem.Id == item.StuNeeds)?.Name ?? "";
item.AdvisorList = advisorList?.Where(qitem => qitem.StuId == item.StuId)?.ToList() ?? new List<RB_Student_Advisor_Extend>();
item.CreateByName = accountList?.FirstOrDefault(qitem => qitem.Id == item.CreateBy)?.AccountName ?? "";
......@@ -534,7 +535,7 @@ namespace Edu.Module.User
extModel.AssistList = assistList;
extModel.StuStageName = stageRepository.GetEntity(extModel.StuStage)?.StageName ?? "";
extModel.StuTypeName = student_TypeRepository.GetEntity(extModel.StuType)?.Name ?? "";
extModel.StuPurposeName = learningGoalsRepository.GetLearningGoalsExtEntityRepository(extModel.StuPurpose)?.Name ?? "";
extModel.StuPurposeName =!string.IsNullOrWhiteSpace(extModel.StuPurpose)?( string.Join(",", learningGoalsRepository.GetLearningGoalsListRepository(new Model.ViewModel.System.RB_LearningGoals_Extend { QGoalIds = extModel.StuPurpose }).Select(x => x.Name)) ?? ""):"";
extModel.StuChannelName = channelRepository.GetChannelExtEntityRepository(extModel.StuChannel)?.Name ?? "";
extModel.StuNeedsName = needsRepository.GetNeedsExtEntityRepository(extModel.StuNeeds)?.Name ?? "";
//if (extModel.CustomerId > 0)
......@@ -756,7 +757,7 @@ namespace Edu.Module.User
Id = model.CreateBy
})?.FirstOrDefault()?.AccountName ?? "";
string markdownContent = $"`同业查重通知` \n>**概要信息** \n>同业名称:{customerModel?.CustomerName ?? ""}({customerModel?.ContactNumber ?? ""})\n>查询内容:{searchContent} \n>关联学员:{model.StuName}\n>";
markdownContent += $"关联同事:{ createByName}\n> ";
markdownContent += $"关联同事:{createByName}\n> ";
Common.Message.PushMessageModel modelWork = new Common.Message.PushMessageModel()
{
CategoryId = PushMessageCategoryEnum.B2BCustomerStu,
......@@ -2305,7 +2306,7 @@ namespace Edu.Module.User
}
//学习目的
string goalIds = string.Join(",", list.Select(qitem => qitem.StuPurpose));
string goalIds = string.Join(",", list?.Where(qitem=> !string.IsNullOrWhiteSpace(qitem.StuPurpose))?.Select(qitem => qitem.StuPurpose));
var goalList = learningGoalsRepository.GetLearningGoalsListRepository(new Model.ViewModel.System.RB_LearningGoals_Extend()
{
QGoalIds = goalIds
......@@ -2362,7 +2363,7 @@ namespace Edu.Module.User
item.StuStageName = stageList?.FirstOrDefault(qitem => qitem.Id == item.StuStage)?.StageName ?? "";
item.StuTypeName = stuTypeList?.FirstOrDefault(qitem => qitem.Id == item.StuType)?.Name ?? "";
item.StuChannelName = channelList?.FirstOrDefault(qitem => qitem.Id == item.StuChannel)?.Name ?? "";
item.StuPurposeName = goalList?.FirstOrDefault(qitem => qitem.Id == item.StuPurpose)?.Name ?? "";
item.StuPurposeName =!string.IsNullOrWhiteSpace(item.StuPurpose)?( string.Join(",", goalList?.Where(qitem => item.StuPurpose.Contains(qitem.Id.ToString())).Select(x => x.Name)) ?? ""):"";
item.StuNeedsName = needList?.FirstOrDefault(qitem => qitem.Id == item.StuNeeds)?.Name ?? "";
item.AdvisorList = advisorList?.Where(qitem => qitem.StuId == item.StuId)?.ToList() ?? new List<RB_Student_Advisor_Extend>();
item.CreateByName = accountList?.FirstOrDefault(qitem => qitem.Id == item.CreateBy)?.AccountName ?? "";
......@@ -2434,7 +2435,7 @@ namespace Edu.Module.User
}
//学习目的
string goalIds = string.Join(",", list.Select(qitem => qitem.StuPurpose));
string goalIds = string.Join(",", list?.Where(qitem => !string.IsNullOrWhiteSpace(qitem.StuPurpose))?.Select(qitem => qitem.StuPurpose));
var goalList = learningGoalsRepository.GetLearningGoalsListRepository(new Model.ViewModel.System.RB_LearningGoals_Extend()
{
QGoalIds = goalIds
......@@ -2491,7 +2492,7 @@ namespace Edu.Module.User
item.StuStageName = stageList?.FirstOrDefault(qitem => qitem.Id == item.StuStage)?.StageName ?? "";
item.StuTypeName = stuTypeList?.FirstOrDefault(qitem => qitem.Id == item.StuType)?.Name ?? "";
item.StuChannelName = channelList?.FirstOrDefault(qitem => qitem.Id == item.StuChannel)?.Name ?? "";
item.StuPurposeName = goalList?.FirstOrDefault(qitem => qitem.Id == item.StuPurpose)?.Name ?? "";
item.StuPurposeName =!string.IsNullOrWhiteSpace(item.StuPurpose)?( string.Join(",", goalList?.Where(qitem => item.StuPurpose.Contains(qitem.Id.ToString()))?.Select(x => x.Name)) ?? ""):"";
item.StuNeedsName = needList?.FirstOrDefault(qitem => qitem.Id == item.StuNeeds)?.Name ?? "";
item.AdvisorList = advisorList?.Where(qitem => qitem.StuId == item.StuId)?.ToList() ?? new List<RB_Student_Advisor_Extend>();
item.CreateByName = accountList?.FirstOrDefault(qitem => qitem.Id == item.CreateBy)?.AccountName ?? "";
......
......@@ -109,7 +109,7 @@ namespace Edu.Module.User
//查询每月续费介绍情况
var ROList = student_RenewOrderRepository.GetStuMonthList(demodel.Group_Id);
//学习目的
string goalIds = string.Join(",", slist.Select(qitem => qitem.StuPurpose));
string goalIds = string.Join(",", slist?.Where(qitem => !string.IsNullOrWhiteSpace(qitem.StuPurpose))?.Select(qitem => qitem.StuPurpose));
var goalList = learningGoalsRepository.GetLearningGoalsListRepository(new Model.ViewModel.System.RB_LearningGoals_Extend()
{
QGoalIds = goalIds
......@@ -243,7 +243,7 @@ namespace Edu.Module.User
item.CreateByName = accountList?.FirstOrDefault(qitem => qitem.Id == item.CreateBy)?.AccountName ?? "";
item.StuChannelName = channelList?.FirstOrDefault(qitem => qitem.Id == item.StuChannel)?.Name ?? "";
item.StuPurposeName = goalList?.FirstOrDefault(qitem => qitem.Id == item.StuPurpose)?.Name ?? "";
item.StuPurposeName = !string.IsNullOrWhiteSpace(item.StuPurpose) ? (string.Join(",", goalList?.Where(qitem => item.StuPurpose.Contains(qitem.Id.ToString()))?.Select(x => x.Name)) ?? "") : "";
item.AdvisorList = advisorList?.Where(qitem => qitem.StuId == item.StuId)?.ToList();
var followModel = new StudentFollowStatic()
{
......@@ -337,7 +337,7 @@ namespace Edu.Module.User
//查询续课 学员介绍
var xlist = student_OrderGuestRepository.GetStudentRenewRepository(demodel.Group_Id, stuIds);//续费
string goalIds = string.Join(",", slist.Select(qitem => qitem.StuPurpose));
string goalIds = string.Join(",", slist?.Where(qitem => !string.IsNullOrWhiteSpace(qitem.StuPurpose))?.Select(qitem => qitem.StuPurpose));
var goalList = learningGoalsRepository.GetLearningGoalsListRepository(new Model.ViewModel.System.RB_LearningGoals_Extend()
{
QGoalIds = goalIds
......@@ -379,7 +379,7 @@ namespace Edu.Module.User
}
item.AssistList = tempAssistList;
item.CreateByName = accountList?.FirstOrDefault(qitem => qitem.Id == item.CreateBy)?.AccountName ?? "";
item.StuPurposeName = goalList?.FirstOrDefault(qitem => qitem.Id == item.StuPurpose)?.Name ?? "";
item.StuPurposeName = !string.IsNullOrWhiteSpace(item.StuPurpose) ? (string.Join(",", goalList?.Where(qitem => item.StuPurpose.Contains(qitem.Id.ToString()))?.Select(x => x.Name)) ?? "") : "";
item.FollowList = flist?.Where(qitem => qitem.StuId == item.StuId)?.ToList();
var tempAppoint = appointmentList?.Where(qitem => qitem.StuId == item.StuId)?.FirstOrDefault();
//最新情况
......
......@@ -300,7 +300,10 @@ WHERE 1=1
{
builder.AppendFormat(" AND t.{0}={1} ", nameof(RB_Student_ViewModel.School_Id), query.School_Id);
}
if (query.StudentType > 0)
{
builder.AppendFormat(" AND t.{0}={1} ", nameof(RB_Student_ViewModel.StudentType), query.StudentType);
}
if (query.QStudentType == 1)
{
builder.AppendFormat(" AND t.{0}=0 ", nameof(RB_Student_ViewModel.CustomerId));
......@@ -653,8 +656,8 @@ GROUP BY GuestId";
}
if (oldModel.StuPurpose != model.StuPurpose)
{
string oldName = learningGoalsRepository.GetLearningGoalsExtEntityRepository(oldModel.StuPurpose)?.Name ?? "";
string newName = learningGoalsRepository.GetLearningGoalsExtEntityRepository(model.StuPurpose)?.Name ?? "";
string oldName = !string.IsNullOrWhiteSpace(oldModel.StuPurpose) ? (string.Join(",", learningGoalsRepository.GetLearningGoalsListRepository(new Model.ViewModel.System.RB_LearningGoals_Extend { QGoalIds = oldModel.StuPurpose })?.Select(x => x.Name)) ?? "") : "";
string newName = !string.IsNullOrWhiteSpace(model.StuPurpose) ? (string.Join(",", learningGoalsRepository.GetLearningGoalsListRepository(new Model.ViewModel.System.RB_LearningGoals_Extend { QGoalIds = model.StuPurpose })?.Select(x => x.Name)) ?? "") : "";
logContent += string.Format("学习目的:由【{0}】=>【{1}】,", oldName, newName);
}
if (oldModel.StuProfession != model.StuProfession)
......@@ -1338,7 +1341,7 @@ LEFT JOIN rb_group AS g ON t.Group_Id=g.GId
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <returns></returns>
public List<RB_Student_ViewModel> GetStudentMonthListRepository( RB_Student_ViewModel query)
public List<RB_Student_ViewModel> GetStudentMonthListRepository(RB_Student_ViewModel query)
{
var parameters = new DynamicParameters();
StringBuilder builder = new StringBuilder();
......
......@@ -640,9 +640,9 @@ WHERE s.Group_Id ={group_Id} and o.JoinType=3 and s.`Status` =0 and sog.`Status`
{
where += $" and s.{nameof(RB_Student_ViewModel.AdvisorStatus)} ={demodel.AdvisorStatus}";
}
if (demodel.StuPurpose > 0)
if (!string.IsNullOrWhiteSpace(demodel.StuPurpose) && demodel.StuPurpose != "0")
{
where += $" and s.{nameof(RB_Student_ViewModel.StuPurpose)} ={demodel.StuPurpose}";
where += $" and FIND_IN_SET({demodel.StuPurpose},s.{nameof(RB_Student_ViewModel.StuPurpose)} )";
}
//if (demodel.School_Id > -1)
//{
......
......@@ -1401,7 +1401,7 @@ namespace Edu.WebApi.Controllers.Course
Basics = base.ParmJObj.GetStringValue("Basics"),
Education = (GuestEducationEnum)base.ParmJObj.GetInt("Education"),
GuestSource = (OrderSourceEnum)base.ParmJObj.GetInt("GuestSource"),
LearningGoals = base.ParmJObj.GetInt("LearningGoals"),
LearningGoals = base.ParmJObj.GetStringValue("LearningGoals"),
Contact = base.ParmJObj.GetStringValue("Contact"),
ContactMobile = base.ParmJObj.GetStringValue("ContactMobile"),
IDCard = base.ParmJObj.GetStringValue("IDCard"),
......
......@@ -230,7 +230,7 @@ namespace Edu.WebApi.Controllers.Customer
Remark = base.ParmJObj.GetStringValue("Remark"),
};
string StuProfession = base.ParmJObj.GetStringValue("StuProfession");
int StuPurpose = base.ParmJObj.GetInt("StuPurpose");
string StuPurpose = base.ParmJObj.GetStringValue("StuPurpose");
extModel.CreateBy = base.UserInfo.Id;
extModel.CreateTime = DateTime.Now;
extModel.UpdateBy = base.UserInfo.Id;
......
......@@ -71,7 +71,7 @@ namespace Edu.WebApi.Controllers.User
StuStage = base.ParmJObj.GetInt("StuStage"),
StuType = base.ParmJObj.GetInt("StuType"),
WeChatNo = base.ParmJObj.GetStringValue("WeChatNo"),
StuPurpose = base.ParmJObj.GetInt("StuPurpose"),
StuPurpose = base.ParmJObj.GetStringValue("StuPurpose"),
HeadTeacherId = base.ParmJObj.GetInt("HeadTeacherId"),
QueryTpye = base.ParmJObj.GetInt("QueryTpye"),
AdvisorStatus = base.ParmJObj.GetInt("AdvisorStatus"),
......@@ -324,7 +324,7 @@ namespace Edu.WebApi.Controllers.User
StuStage = base.ParmJObj.GetInt("StuStage"),
StuType = base.ParmJObj.GetInt("StuType"),
WeChatNo = base.ParmJObj.GetStringValue("WeChatNo"),
StuPurpose = base.ParmJObj.GetInt("StuPurpose"),
StuPurpose = base.ParmJObj.GetStringValue("StuPurpose"),
HeadTeacherId = base.ParmJObj.GetInt("HeadTeacherId"),
QueryTpye = base.ParmJObj.GetInt("QueryTpye"),
AdvisorStatus = base.ParmJObj.GetInt("AdvisorStatus"),
......
......@@ -721,7 +721,8 @@ namespace Edu.WebApi.Controllers.User
CreateType = (StuCreateTypeEnum)base.ParmJObj.GetInt("CreateType"),
StuSourceId = base.ParmJObj.GetInt("StuSourceId"),
IsSureConsultTime = base.ParmJObj.GetInt("IsSureConsultTime"),
QOrderBy=base.ParmJObj.GetInt("QOrderBy"),
QOrderBy = base.ParmJObj.GetInt("QOrderBy"),
StudentType = base.ParmJObj.GetInt("StudentType", 1),
};
if (query.IsQueryMyStu == 1)
{
......@@ -806,7 +807,7 @@ namespace Edu.WebApi.Controllers.User
item.StuProfession,
item.StuEducation,
StuEducationName = item.StuEducation.ToName(),
item.StuPurpose,
StuPurpose = item.StuPurpose,
item.StuPurposeName,
item.VisitCount,
item.TrialLessonCount,
......@@ -1067,7 +1068,7 @@ namespace Edu.WebApi.Controllers.User
JapanBaseInfo = (GuestBasicsEnum)base.ParmJObj.GetInt("JapanBaseInfo"),
StuProfession = base.ParmJObj.GetStringValue("StuProfession"),
StuEducation = (GuestEducationEnum)base.ParmJObj.GetInt("StuEducation"),
StuPurpose = base.ParmJObj.GetInt("StuPurpose"),
StuPurpose = base.ParmJObj.GetStringValue("StuPurpose"),
StuSource = (OrderSourceEnum)base.ParmJObj.GetInt("StuSource"),
StuAddress = base.ParmJObj.GetStringValue("StuAddress"),
StuContract = base.ParmJObj.GetStringValue("StuContract"),
......@@ -1087,6 +1088,7 @@ namespace Edu.WebApi.Controllers.User
StuRealMobile = base.ParmJObj.GetStringValue("StuRealMobile"),
FileVoucher = base.ParmJObj.GetStringValue("FileVoucher"),
TelType = (StuTelTypeEnum)base.ParmJObj.GetInt("TelType"),
StudentType = base.ParmJObj.GetInt("StudentType", 1),
};
if (string.IsNullOrEmpty(extModel.StuRealMobile) && string.IsNullOrEmpty(extModel.QQ) && string.IsNullOrEmpty(extModel.WeChatNo))
{
......@@ -1348,7 +1350,7 @@ namespace Edu.WebApi.Controllers.User
JapanBaseInfo = (GuestBasicsEnum)base.ParmJObj.GetInt("JapanBaseInfo"),
StuProfession = base.ParmJObj.GetStringValue("StuProfession"),
StuEducation = (GuestEducationEnum)base.ParmJObj.GetInt("StuEducation"),
StuPurpose = base.ParmJObj.GetInt("StuPurpose"),
StuPurpose = base.ParmJObj.GetStringValue("StuPurpose"),
StuSource = (OrderSourceEnum)base.ParmJObj.GetInt("StuSource"),
StuAddress = base.ParmJObj.GetStringValue("StuAddress"),
StuContract = base.ParmJObj.GetStringValue("StuContract"),
......@@ -1359,6 +1361,7 @@ namespace Edu.WebApi.Controllers.User
QQ = base.ParmJObj.GetStringValue("QQ"),
StuType = base.ParmJObj.GetInt("StuType"),
StuRealMobile = base.ParmJObj.GetStringValue("StuRealMobile"),
StudentType = base.ParmJObj.GetInt("StuType", 1),
};
extModel.CreateType = StuCreateTypeEnum.CustomerInput;
extModel.Status = DateStateEnum.Normal;
......
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