Commit 8de12411 authored by liudong1993's avatar liudong1993

Merge branch 'master' of http://gitlab.oytour.com/Kui2/education

parents 36366e4d 5201cb41
......@@ -2549,13 +2549,13 @@ namespace Edu.Module.Course
}
double NextAppointMinutes = 0;
if (demodel.CourseGradeId > 0 && demodel.CourseGradeNo > 0)
if (demodel.CourseGradeNo > 0)
{
//查询下一次课的耗时分钟数 前端需要根据这个分钟数
var chapterModel = course_ChapterRepository.GetChapterListRepository(new RB_Course_Chapter_ViewModel() { Group_Id = demodel.Group_Id, CourseId = learnModel.CourseId, CourseRate = demodel.CourseGradeId, ChapterNo = demodel.CourseGradeNo.ToString() }).FirstOrDefault();
var chapterModel = course_ChapterRepository.GetChapterListRepository(new RB_Course_Chapter_ViewModel() { Group_Id = demodel.Group_Id, CourseId = learnModel.CourseId, ChapterNo = demodel.CourseGradeNo.ToString() }).FirstOrDefault();
NextAppointMinutes = chapterModel?.StudyMinutes ?? 0;
demodel.CourseGradeId = chapterModel?.CourseRate ?? 0;
demodel.CourseGradeNo = chapterModel?.ChapterGradeNo ?? 0;
//demodel.CourseGradeId = chapterModel?.CourseRate ?? 0;
//demodel.CourseGradeNo = chapterModel?.ChapterGradeNo ?? 0;
//HK 2022-07-06注释
//demodel.ChapterNo = Convert.ToInt32(chapterModel?.ChapterNo ?? "0");
}
......
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