| 
					
				 | 
			
			
				@@ -1,12 +1,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package com.ym.mec.biz.service.impl; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.util.ArrayList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.util.Date; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.util.HashMap; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.util.Map; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.util.Objects; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.util.Set; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.stream.Collectors; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.biz.dal.dao.*; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -558,6 +552,15 @@ public class CourseReviewServiceImpl extends BaseServiceImpl<Integer, CourseSche 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         CourseHomework courseHomework = new CourseHomework(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<CourseScheduleStudentPayment> courseScheduleStudentPayments = courseScheduleStudentPaymentDao.findByCourseSchedule(courseSchedule.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Set<Integer> serveStudentIds = studentServeService.getStudentWithCourse(courseSchedule.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Iterator<CourseScheduleStudentPayment> iterator = courseScheduleStudentPayments.iterator(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        while (iterator.hasNext()){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            CourseScheduleStudentPayment courseScheduleStudentPayment = iterator.next(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if(!serveStudentIds.contains(courseScheduleStudentPayment.getUserId())){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                iterator.remove(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (Objects.nonNull(existHomework)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             courseHomework.setId(existHomework.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             courseHomework.setContent(content); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -577,11 +580,7 @@ public class CourseReviewServiceImpl extends BaseServiceImpl<Integer, CourseSche 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (!CollectionUtils.isEmpty(courseScheduleStudentPayments)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             Teacher teacher = teacherDao.get(courseSchedule.getActualTeacherId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             String dateStr = DateUtil.dateToString(DateUtil.addDays(date, 3), "MM月dd日"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            Set<Integer> serveStudentIds = studentServeService.getStudentWithCourse(courseSchedule.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             for (CourseScheduleStudentPayment courseScheduleStudentPayment : courseScheduleStudentPayments) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if(!serveStudentIds.contains(courseScheduleStudentPayment.getUserId())){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    continue; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 StudentCourseHomework studentCourseHomework = new StudentCourseHomework(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (Objects.isNull(existHomework)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     studentCourseHomework.setCourseHomeworkId(courseHomework.getId()); 
			 |