Commit b96b8d54 authored by 吴春's avatar 吴春

新增留学客户资料列表

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