Commit c0924a83 authored by 黄奎's avatar 黄奎

转订单Bug修改

parent 5462b9e7
......@@ -1502,7 +1502,7 @@ namespace Edu.Module.Course
Id = 0,
OrderId = demodel.OrderId,
ClassId = demodel.ClassId,
GuestName = item.StuName,
GuestName = item.StuName.Trim(),
GuestState = GuestStateEnum.Normal,
Profession = item?.StuProfession ?? "",
Sex = (item?.StuSex ?? 1) + 1,
......@@ -1538,7 +1538,8 @@ namespace Edu.Module.Course
RenewState = item.IsRenewGuest == 1 ? 2 : 1,
QQ = item.QQ,
WeChatNo = item.WeChatNo,
TotalChapterNo = MaxChapterNo
TotalChapterNo = MaxChapterNo,
StudentId=item.StuId,
};
SetOrderGuestInfo(guestModel, out string Nmessage);
......@@ -2917,8 +2918,8 @@ namespace Edu.Module.Course
#region 验证电话是否已是他人客户
if (!string.IsNullOrEmpty(dmodel.Mobile)&& dmodel.StudentId <= 0)
{
var slist = studentRepository.GetStudentListRepository(new RB_Student_ViewModel() { Group_Id = dmodel.Group_Id, StuTel = dmodel.Mobile, School_Id = -1 });
if (slist.Where(x => x.CustomerId != ordermodel.CustomerId).Any())
var slist = studentRepository.GetStudentListRepository(new RB_Student_ViewModel() { Group_Id = dmodel.Group_Id, StuTel = dmodel.Mobile,StuName=dmodel.GuestName.Trim(), School_Id = -1 });
if (slist.Where(x => x.CustomerId != ordermodel.CustomerId && x.StuName.Trim()==dmodel.GuestName.Trim()).Any())
{
message = "学员'" + dmodel.GuestName + "'已被他人注册";
return false;
......
File added
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