Commit d5b0fdb3 authored by 黄奎's avatar 黄奎

页面修改

parent 5c2aaba7
...@@ -1394,6 +1394,9 @@ namespace Edu.Module.Course ...@@ -1394,6 +1394,9 @@ namespace Edu.Module.Course
extModel.ClassStepPriceList = class_StepPriceRepository.GetClassStepPriceListRepository(new RB_Class_StepPrice_ViewModel() { ClassId = extModel.ClassId })?.ToList() ?? new List<RB_Class_StepPrice_ViewModel>(); extModel.ClassStepPriceList = class_StepPriceRepository.GetClassStepPriceListRepository(new RB_Class_StepPrice_ViewModel() { ClassId = extModel.ClassId })?.ToList() ?? new List<RB_Class_StepPrice_ViewModel>();
//课程计划上课日期 //课程计划上课日期
extModel.ClassPlanList = class_PlanRepository.GetClassPlanListRepository(new RB_Class_Plan_ViewModel() { ClassId = extModel.ClassId })?.ToList() ?? new List<RB_Class_Plan_ViewModel>(); extModel.ClassPlanList = class_PlanRepository.GetClassPlanListRepository(new RB_Class_Plan_ViewModel() { ClassId = extModel.ClassId })?.ToList() ?? new List<RB_Class_Plan_ViewModel>();
extModel.TotalPlanNum = extModel?.ClassPlanList?.Count() ?? 0;
extModel.UsePlanNum = extModel?.ClassPlanList?.Where(qitem => qitem.ClassDate <= DateTime.Now)?.Count() ?? 0;
//班级上课计划时间列表 //班级上课计划时间列表
var timeList = class_TimeRepository.GetClassTimeListRepository(new RB_Class_Time_ViewModel() { ClassId = extModel.ClassId })?.ToList() ?? new List<RB_Class_Time_ViewModel>(); var timeList = class_TimeRepository.GetClassTimeListRepository(new RB_Class_Time_ViewModel() { ClassId = extModel.ClassId })?.ToList() ?? new List<RB_Class_Time_ViewModel>();
if (extModel.ClassPlanList != null && extModel.ClassPlanList.Count > 0 && timeList != null && timeList.Count > 0) if (extModel.ClassPlanList != null && extModel.ClassPlanList.Count > 0 && timeList != null && timeList.Count > 0)
......
...@@ -673,7 +673,9 @@ namespace Edu.WebApi.Controllers.Course ...@@ -673,7 +673,9 @@ namespace Edu.WebApi.Controllers.Course
CompleteProgress = extModel?.CompleteProgress ?? 0, CompleteProgress = extModel?.CompleteProgress ?? 0,
ClassStatusStr = extModel?.ClassStatusStr ?? "", ClassStatusStr = extModel?.ClassStatusStr ?? "",
ClassHourMinute = extModel?.ClassHourMinute ?? 45, ClassHourMinute = extModel?.ClassHourMinute ?? 45,
ClassDateList=extModel?.ClassDateList ?? new List<string>(), ClassDateList = extModel?.ClassDateList ?? new List<string>(),
TotalPlanNum = extModel?.TotalPlanNum ?? 0,
UsePlanNum = extModel?.UsePlanNum ?? 0,
}; };
return ApiResult.Success(data: obj); return ApiResult.Success(data: obj);
} }
......
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