| 
					
				 | 
			
			
				@@ -447,7 +447,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //乐器及打包辅件 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<MusicGroupSubjectGoodsGroup> goodsGroups = new ArrayList<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (studentRegistration.getTemporaryCourseFee() != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            List<StudentPaymentOrderDetail> orderDetails = studentPaymentOrderDetailService.findUserApplyOrder(studentRegistration.getUserId(),studentRegistration.getMusicGroupId(), DealStatusEnum.WAIT_PAY); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            List<StudentPaymentOrderDetail> orderDetails = studentPaymentOrderDetailService.findUserApplyOrder(studentRegistration.getUserId(), studentRegistration.getMusicGroupId(), DealStatusEnum.WAIT_PAY); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             for (StudentPaymentOrderDetail orderDetail : orderDetails) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (orderDetail == null || orderDetail.getPrice() == null || orderDetail.getGoodsIdList() == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     continue; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -665,7 +665,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //乐器及打包辅件 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<MusicGroupSubjectGoodsGroup> goodsGroups = new ArrayList<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (studentRegistration.getTemporaryCourseFee() != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            List<StudentPaymentOrderDetail> orderDetails = studentPaymentOrderDetailService.findUserApplyOrder(studentRegistration.getUserId(),studentRegistration.getMusicGroupId(), DealStatusEnum.WAIT_PAY); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            List<StudentPaymentOrderDetail> orderDetails = studentPaymentOrderDetailService.findUserApplyOrder(studentRegistration.getUserId(), studentRegistration.getMusicGroupId(), DealStatusEnum.WAIT_PAY); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             for (StudentPaymentOrderDetail orderDetail : orderDetails) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (orderDetail == null || orderDetail.getPrice() == null || orderDetail.getGoodsIdList() == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     continue; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1641,6 +1641,8 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 remitFee = BigDecimal.ZERO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (isRefundCourseFee) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                MusicGroupPaymentCalender regCalender = musicGroupPaymentCalenderDao.findByMusicGroupRegCalender(musicGroupId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                musicGroupPaymentCalenderCourseSettingsDao.deleteByMusicGroupPaymentCalenderId(regCalender.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 // 退课程费用 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (detail.getType() == OrderDetailTypeEnum.COURSE) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     amount = amount.add(detail.getPrice()); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1844,7 +1846,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             List<MusicGroupPaymentCalenderCourseSettings> courseSettings = musicGroupPaymentCalenderCourseSettingsDao.queryCalenderCourseSettings(calenderDetail.getMusicGroupPaymentCalenderId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             List<StudentPaymentOrderDetail> paymentOrderDetails = new ArrayList<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            courseSettings.forEach(e->{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            courseSettings.forEach(e -> { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 StudentPaymentOrderDetail studentPaymentOrderDetail = new StudentPaymentOrderDetail(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 studentPaymentOrderDetail.setType(OrderDetailTypeEnum.valueOf(e.getCourseType().getCode())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 studentPaymentOrderDetail.setPrice(e.getCourseCurrentPrice()); 
			 |