Commit 08ebe0b7 authored by 黄奎's avatar 黄奎

页面修改

parent dc4dfe2e
...@@ -314,5 +314,10 @@ namespace Edu.Model.ViewModel.Sell ...@@ -314,5 +314,10 @@ namespace Edu.Model.ViewModel.Sell
/// 学员数量 /// 学员数量
/// </summary> /// </summary>
public int StudentNum { get; set; } public int StudentNum { get; set; }
/// <summary>
/// 学员账号编号
/// </summary>
public int Account_Id { get; set; }
} }
} }
\ No newline at end of file
...@@ -1127,6 +1127,7 @@ namespace Edu.Module.Course ...@@ -1127,6 +1127,7 @@ namespace Edu.Module.Course
qitem.OrderId, qitem.OrderId,
GuestId = qitem.Id, GuestId = qitem.Id,
qitem.CourseId, qitem.CourseId,
qitem.Account_Id,
IsCheck = false, IsCheck = false,
}) })
}; };
......
...@@ -54,12 +54,13 @@ namespace Edu.Module.Goods ...@@ -54,12 +54,13 @@ namespace Edu.Module.Goods
bool flag = false; bool flag = false;
foreach (var item in model.GuestIdList) foreach (var item in model.GuestIdList)
{ {
var oldModel = activitySurvey_GuestRepository.GetActivitySurveyGuestListRepository(new RB_ActivitySurvey_Guest_Extend() //var oldModel = activitySurvey_GuestRepository.GetActivitySurveyGuestListRepository(new RB_ActivitySurvey_Guest_Extend()
{ //{
GuestId = item.GuestId, // GuestId = item.GuestId,
SurveyId = model.SurveyId // SurveyId = model.SurveyId
})?.FirstOrDefault(); //})?.FirstOrDefault();
model.Id = oldModel?.Id ?? 0; //model.Id = oldModel?.Id ?? 0;
model.GuestId = item.GuestId; model.GuestId = item.GuestId;
if (model.Id > 0) if (model.Id > 0)
{ {
...@@ -106,6 +107,12 @@ namespace Edu.Module.Goods ...@@ -106,6 +107,12 @@ namespace Edu.Module.Goods
public RB_ActivitySurvey_Guest_Extend GetActivitySurveyGuestModule(int Id) public RB_ActivitySurvey_Guest_Extend GetActivitySurveyGuestModule(int Id)
{ {
var extModel = activitySurvey_GuestRepository.GetEntity<RB_ActivitySurvey_Guest_Extend>(Id); var extModel = activitySurvey_GuestRepository.GetEntity<RB_ActivitySurvey_Guest_Extend>(Id);
if (extModel != null && extModel.GuestId > 0)
{
var stuModel = accountRepository.GetStudentExt(new RB_Account_ViewModel() { QIds = extModel.GuestId.ToString() }).FirstOrDefault();
extModel.GuestIdList = new List<GuestItem>();
extModel.GuestIdList.Add(new GuestItem() { GuestId = extModel.GuestId, GuestName = stuModel.AccountName });
}
return extModel; return extModel;
} }
......
...@@ -190,7 +190,7 @@ namespace Edu.Repository.Sell ...@@ -190,7 +190,7 @@ namespace Edu.Repository.Sell
SELECT sog.Student_Id as StudentId,A.*,cs.ClassName,cs.Teacher_Id,cs.ClassNo,IFNULL(B.JoinType,0) AS JoinType,IFNULL(B.TargetJoinType,0) AS TargetJoinType,IFNULL(B.StartClassHours,0) AS StartClassHours SELECT sog.Student_Id as StudentId,A.*,cs.ClassName,cs.Teacher_Id,cs.ClassNo,IFNULL(B.JoinType,0) AS JoinType,IFNULL(B.TargetJoinType,0) AS TargetJoinType,IFNULL(B.StartClassHours,0) AS StartClassHours
,IFNULL(C.CourseName,'') AS CourseName,B.EffectStatus,B.EffectTime,B.UpOrderId,B.OrderType,B.CourseId,B.IsRenewOrder,B.RenewOrderId,B.EnterID ,IFNULL(C.CourseName,'') AS CourseName,B.EffectStatus,B.EffectTime,B.UpOrderId,B.OrderType,B.CourseId,B.IsRenewOrder,B.RenewOrderId,B.EnterID
,sc.StopClassEffectTime,B.SourceOrderId,B.TargetOrderId,IFNULL(D.FirstClassHours,0)+IFNULL(D.SecondClassHours,0)+IFNULL(D.ThirdClassHours,0) AS ContractTotalHours ,sc.StopClassEffectTime,B.SourceOrderId,B.TargetOrderId,IFNULL(D.FirstClassHours,0)+IFNULL(D.SecondClassHours,0)+IFNULL(D.ThirdClassHours,0) AS ContractTotalHours
,IFNULL(stu.StuIcon,'') AS UserIcon,stu.StuTel,stu.StuRealMobile ,IFNULL(stu.StuIcon,'') AS UserIcon,stu.StuTel,stu.StuRealMobile,sog.Account_Id
FROM RB_Order_Guest AS A LEFT JOIN rb_order AS B ON A.OrderId=B.OrderId FROM RB_Order_Guest AS A LEFT JOIN rb_order AS B ON A.OrderId=B.OrderId
LEFT JOIN rb_class AS cs ON B.ClassId=cs.ClassId LEFT JOIN rb_class AS cs ON B.ClassId=cs.ClassId
LEFT JOIN rb_student_orderguest as sog on sog.GuestId=a.Id LEFT JOIN rb_student_orderguest as sog on sog.GuestId=a.Id
......
...@@ -111,6 +111,7 @@ namespace Edu.WebApi.Controllers.Goods ...@@ -111,6 +111,7 @@ namespace Edu.WebApi.Controllers.Goods
Id = extModel?.Id ?? 0, Id = extModel?.Id ?? 0,
GuestId = extModel?.GuestId ?? 0, GuestId = extModel?.GuestId ?? 0,
GuestType = extModel?.GuestType ?? 0, GuestType = extModel?.GuestType ?? 0,
GuestIdList= extModel?.GuestIdList??new List<GuestItem> (),
StartTime = Common.ConvertHelper.FormatTime(extModel.StartTime), StartTime = Common.ConvertHelper.FormatTime(extModel.StartTime),
EndTime = Common.ConvertHelper.FormatTime(extModel.EndTime), EndTime = Common.ConvertHelper.FormatTime(extModel.EndTime),
}; };
......
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