Commit 16b39fe3 authored by 黄奎's avatar 黄奎

学员消课处理

parent 02590079
......@@ -4894,14 +4894,19 @@ namespace Edu.Module.Course
{
decimal shengyu = item.TotalHours - totalHours;
var lastCheck = guestCheckList.OrderByDescending(qitem => qitem.ClassDate).FirstOrDefault();
DateTime classDate = DateTime.Now;
if (lastCheck != null && !string.IsNullOrEmpty(Common.ConvertHelper.FormatDate(lastCheck?.ClassDate)))
{
classDate = lastCheck.ClassDate.AddDays(1);
}
var checkModel = new RB_Class_Check()
{
ClassCheckId = 0,
ClassId = 0,
ClassDate = lastCheck.ClassDate.AddDays(1),
ClassDate = classDate,
Status = 0,
ClassRoomId = 0,
Group_Id = lastCheck.Group_Id,
Group_Id = lastCheck?.Group_Id?? 100000,
School_Id = 0,
TeacherId = 0,
OrderGuestId = item.Id,
......
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