Commit 37d1081f authored by 黄奎's avatar 黄奎

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

parents 2790d9ea 13a2683b
...@@ -1215,7 +1215,7 @@ namespace Edu.Module.Course ...@@ -1215,7 +1215,7 @@ namespace Edu.Module.Course
var projectsList = GetLessonPlanProjectsListRepository(new RB_Class_LessonPlanProjects_ViewModel { Group_Id = item.Group_Id, School_Id = item.School_Id, LessonPlanId = item.LessonPlanId }); var projectsList = GetLessonPlanProjectsListRepository(new RB_Class_LessonPlanProjects_ViewModel { Group_Id = item.Group_Id, School_Id = item.School_Id, LessonPlanId = item.LessonPlanId });
if (item.LessonPlanDetailsList != null && item.LessonPlanDetailsList.Any()) if (item.LessonPlanDetailsList != null && item.LessonPlanDetailsList.Any())
{ {
List<int> projectsList1 = detailsList.Select(x => x.LessonPlanDetailsId).ToList(); List<int> projectsList1 = projectsList.Select(x => x.LessonPlanProjectsId).ToList();
List<int> projectsList2 = item.LessonPlanProjectsList.Where(x => x.LessonPlanProjectsId > 0).Select(x => x.LessonPlanProjectsId).ToList(); List<int> projectsList2 = item.LessonPlanProjectsList.Where(x => x.LessonPlanProjectsId > 0).Select(x => x.LessonPlanProjectsId).ToList();
var deleProjectsList = projectsList1.Except(projectsList2).ToList(); var deleProjectsList = projectsList1.Except(projectsList2).ToList();
foreach (var itemDele in deleProjectsList) foreach (var itemDele in deleProjectsList)
......
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