| 
														
															@@ -432,15 +432,8 @@ public class CourseScheduleStudentPaymentServiceImpl extends BaseServiceImpl<Lon 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		for (Map.Entry<CourseSchedule.CourseScheduleType, List<CourseSchedule>> typeCoursesEntry : typeCourseMap.entrySet()) { 
														 | 
														
														 | 
														
															 		for (Map.Entry<CourseSchedule.CourseScheduleType, List<CourseSchedule>> typeCoursesEntry : typeCourseMap.entrySet()) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			Map<Integer, Integer> sdMap = new HashMap<>(); 
														 | 
														
														 | 
														
															 			Map<Integer, Integer> sdMap = new HashMap<>(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			for (Integer studentId : studentIds) { 
														 | 
														
														 | 
														
															 			for (Integer studentId : studentIds) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-				Set<Long> existCourseIds = new HashSet<>(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-				if(studentCourseIdsMap.containsKey(studentId)){ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-					existCourseIds = studentCourseIdsMap.get(studentId); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-				} 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				int totalCourseDuration = 0; 
														 | 
														
														 | 
														
															 				int totalCourseDuration = 0; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				for (CourseSchedule courseSchedule : typeCoursesEntry.getValue()) { 
														 | 
														
														 | 
														
															 				for (CourseSchedule courseSchedule : typeCoursesEntry.getValue()) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-					if(existCourseIds.contains(courseSchedule.getId())){ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-						continue; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-					} 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					//课程时长 
														 | 
														
														 | 
														
															 					//课程时长 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					int courseDuration = DateUtil.minutesBetween(courseSchedule.getStartClassTime(), courseSchedule.getEndClassTime()); 
														 | 
														
														 | 
														
															 					int courseDuration = DateUtil.minutesBetween(courseSchedule.getStartClassTime(), courseSchedule.getEndClassTime()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					totalCourseDuration += courseDuration; 
														 | 
														
														 | 
														
															 					totalCourseDuration += courseDuration; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -504,7 +497,7 @@ public class CourseScheduleStudentPaymentServiceImpl extends BaseServiceImpl<Lon 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				BigDecimal typeCourseTotalOriginalPrice = new BigDecimal("0"), typeCourseTotalCurrentPrice = new BigDecimal("0"); 
														 | 
														
														 | 
														
															 				BigDecimal typeCourseTotalOriginalPrice = new BigDecimal("0"), typeCourseTotalCurrentPrice = new BigDecimal("0"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				for (CourseSchedule courseSchedule : courseScheduleTypeListEntry.getValue()) { 
														 | 
														
														 | 
														
															 				for (CourseSchedule courseSchedule : courseScheduleTypeListEntry.getValue()) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					if(existCourseIds.contains(courseSchedule.getId())){ 
														 | 
														
														 | 
														
															 					if(existCourseIds.contains(courseSchedule.getId())){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-						continue; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+						throw new BizException("该学员已在此班级{}课程中", courseSchedule.getId()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					} 
														 | 
														
														 | 
														
															 					} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					//课程时长 
														 | 
														
														 | 
														
															 					//课程时长 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 					int courseDuration = DateUtil.minutesBetween(courseSchedule.getStartClassTime(), courseSchedule.getEndClassTime()); 
														 | 
														
														 | 
														
															 					int courseDuration = DateUtil.minutesBetween(courseSchedule.getStartClassTime(), courseSchedule.getEndClassTime()); 
														 |