Commit 6c6ac260 authored by 吴春's avatar 吴春

提交代码

parent 46d51dcd
......@@ -961,19 +961,24 @@ namespace Edu.WebApi.Controllers.Course
item.LessonPlanProjectsList = new List<RB_Class_LessonPlanProjects_ViewModel>();
item.LessonPlanDetailsList = detailsList.Where(x => x.LessonPlanId == item.LessonPlanId).ToList();
int tempDuration = 0;
if (lessPlanDetailsId != item.LessonPlanId)
{
tempDuration = jiangeTime;
}
if (item.LessonPlanDetailsList != null && item.LessonPlanDetailsList.Any())
{
foreach (var itemDetails in item.LessonPlanDetailsList)
{
if (lessPlanDetailsId == itemDetails.LessonPlanId)
{
//if (lessPlanDetailsId == itemDetails.LessonPlanId)
//{
tempDuration += itemDetails.Duration;
}
else
{
tempDuration += (itemDetails.Duration + jiangeTime);
}
//}
//else
//{
// tempDuration += (itemDetails.Duration + jiangeTime);
//}
itemDetails.DurationEndTime = startTime.AddMinutes(tempDuration).ToString("HH:mm");
}
......
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