Commit 34188ad7 authored by 吴春's avatar 吴春

1

parent db70f5b4
......@@ -1913,9 +1913,16 @@ namespace Edu.Module.Course
}
//课程信息
List<RB_Course_ViewModel> courseList = new List<RB_Course_ViewModel>();
List<int> courseIdsList = new List<int>();
courseIdsList.Add(demodel.CourseId);
if (demodel?.OrderCourseList != null && demodel.OrderCourseList.Any())
{
string courseIds = string.Join(",", demodel?.OrderCourseList?.Where(x => x.CourseId > 0)?.Select(x => x.CourseId));
courseIdsList.AddRange(demodel.OrderCourseList?.Where(x => x.CourseId > 0)?.Select(x => x.CourseId));
}
string courseIds = string.Join(",", courseIdsList.Select(x => x).Distinct());
if (true)
{
if (!string.IsNullOrWhiteSpace(courseIds))
{
courseList = courseRepository.GetCourseListRepository(new RB_Course_ViewModel { QCourseIds = courseIds });
......
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