Commit 6f96d1b7 authored by 黄奎's avatar 黄奎

页面修改

parent bbe60c0f
...@@ -70,6 +70,11 @@ namespace Edu.Model.ViewModel.Reserve ...@@ -70,6 +70,11 @@ namespace Edu.Model.ViewModel.Reserve
/// </summary> /// </summary>
public int OrderCount { get; set; } public int OrderCount { get; set; }
/// <summary>
/// 试听失败
/// </summary>
public int FailCount { get; set; }
/// <summary> /// <summary>
/// 转化率 /// 转化率
/// </summary> /// </summary>
......
...@@ -195,5 +195,10 @@ namespace Edu.Model.ViewModel.Reserve ...@@ -195,5 +195,10 @@ namespace Edu.Model.ViewModel.Reserve
/// 跟班计划ID /// 跟班计划ID
/// </summary> /// </summary>
public int ClassPlanId { get; set; } public int ClassPlanId { get; set; }
/// <summary>
/// 订单数量
/// </summary>
public int OrderCount { get; set; }
} }
} }
...@@ -326,6 +326,7 @@ namespace Edu.Module.Duty ...@@ -326,6 +326,7 @@ namespace Edu.Module.Duty
{ {
item.ConversionRates = 0; item.ConversionRates = 0;
} }
item.FailCount = item.JoinNum - item.OrderCount;
} }
} }
return list; return list;
......
...@@ -31,7 +31,14 @@ namespace Edu.Repository.Reserve ...@@ -31,7 +31,14 @@ namespace Edu.Repository.Reserve
builder.Append(@" builder.Append(@"
SELECT A.*,IFNULL(B.StuName,'') AS VisitorName,C.ClassDate,C.ClassTime,C.EndTime,C.ClassContent,IFNULL(D.TeacherName,'') AS TeacherName,IFNULL(E.RoomName,'') AS RoomName SELECT A.*,IFNULL(B.StuName,'') AS VisitorName,C.ClassDate,C.ClassTime,C.EndTime,C.ClassContent,IFNULL(D.TeacherName,'') AS TeacherName,IFNULL(E.RoomName,'') AS RoomName
,IFNULL(B.StuTel,'') AS StuTel,IFNULL(F.LessonName,'') AS LessonName,IFNULL(B.QQ,'') AS QQ,IFNULL(B.WeChatNo,'') AS WeChatNo,C.ReserveType,C.ClassPlanId ,IFNULL(B.StuTel,'') AS StuTel,IFNULL(F.LessonName,'') AS LessonName,IFNULL(B.QQ,'') AS QQ,IFNULL(B.WeChatNo,'') AS WeChatNo,C.ReserveType,C.ClassPlanId
,IFNULL(G.OrderCount,0) AS OrderCount
FROM RB_Visitor_Reserve AS A LEFT JOIN rb_student AS B ON A.Visitor_Id=B.StuId FROM RB_Visitor_Reserve AS A LEFT JOIN rb_student AS B ON A.Visitor_Id=B.StuId
LEFT JOIN
(
SELECT Student_Id,COUNT(1) AS OrderCount
FROM rb_student_orderguest AS sog INNER JOIN rb_order AS orderTab ON sog.OrderId=orderTab.OrderId AND orderTab.OrderState IN(1)
GROUP BY Student_Id
) AS G ON A.Visitor_Id=G.Student_Id
LEFT JOIN rb_reserve_class AS C ON A.ReserveClassId=C.ReserveClassId LEFT JOIN rb_reserve_class AS C ON A.ReserveClassId=C.ReserveClassId
LEFT JOIN rb_teacher AS D ON C.TeacherId=D.TId LEFT JOIN rb_teacher AS D ON C.TeacherId=D.TId
LEFT JOIN rb_class_room AS E ON C.ClassRoomId=E.RoomId LEFT JOIN rb_class_room AS E ON C.ClassRoomId=E.RoomId
......
...@@ -28,7 +28,7 @@ SELECT A.*,IFNULL(B.ClassName,'') AS ClassName,IFNULL(B.ClassNo,'') AS ClassNo,I ...@@ -28,7 +28,7 @@ SELECT A.*,IFNULL(B.ClassName,'') AS ClassName,IFNULL(B.ClassNo,'') AS ClassNo,I
FROM RB_Student_OrderGuest AS A INNER JOIN rb_class AS B ON A.ClassId=B.ClassId FROM RB_Student_OrderGuest AS A INNER JOIN rb_class AS B ON A.ClassId=B.ClassId
INNER JOIN rb_order AS C ON A.OrderId=C.OrderId INNER JOIN rb_order AS C ON A.OrderId=C.OrderId
INNER JOIN rb_order_guest AS D ON A.GuestId=D.Id INNER JOIN rb_order_guest AS D ON A.GuestId=D.Id
WHERE 1=1 AND C.OrderState<>3 AND D.Status=0 WHERE 1=1 AND C.OrderState IN(1) AND D.Status=0
"); ");
builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_Student_OrderGuest_ViewModel.Status), (int)DateStateEnum.Normal); builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_Student_OrderGuest_ViewModel.Status), (int)DateStateEnum.Normal);
if (query != null) if (query != null)
......
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