Commit 3a78ed7b authored by liudong1993's avatar liudong1993

1

parent 2dfecd58
......@@ -308,7 +308,7 @@ INNER JOIN rb_student_orderguest sog on sog.Student_Id = s.StuId
INNER JOIN rb_order_guest og on sog.GuestId = og.Id
INNER JOIN rb_order o on sog.OrderId = o.OrderId
left join rb_course c on o.CourseId = c.CourseId
WHERE a.`Status` =0 and a.Group_Id ={groupId} and a.AccountType =4 and og.GuestState not in(2,7) and o.OrderState =1 and o.OrderType =1 and og.TotalHours > og.CompleteHours
WHERE a.`Status` =0 and a.Group_Id ={groupId} and a.AccountType =4 and case when o.CourseId =1 then 1=1 else og.GuestState not in(2,7) end and o.OrderState =1 and o.OrderType =1 and og.TotalHours > og.CompleteHours
group by a.Id";
return Get<RB_Account_ViewModel>(sql).ToList();
}
......
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