| 
														
															@@ -26,6 +26,8 @@ import com.ym.mec.thirdparty.message.MessageSenderPluginContext; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.util.collection.MapUtil; 
														 | 
														
														 | 
														
															 import com.ym.mec.util.collection.MapUtil; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.util.date.DateUtil; 
														 | 
														
														 | 
														
															 import com.ym.mec.util.date.DateUtil; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.apache.commons.lang3.StringUtils; 
														 | 
														
														 | 
														
															 import org.apache.commons.lang3.StringUtils; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import org.slf4j.Logger; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import org.slf4j.LoggerFactory; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.springframework.beans.BeanUtils; 
														 | 
														
														 | 
														
															 import org.springframework.beans.BeanUtils; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.springframework.beans.factory.annotation.Autowired; 
														 | 
														
														 | 
														
															 import org.springframework.beans.factory.annotation.Autowired; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import org.springframework.http.HttpStatus; 
														 | 
														
														 | 
														
															 import org.springframework.http.HttpStatus; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -109,6 +111,8 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     private PracticeGroupSellPriceDao practiceGroupSellPriceDao; 
														 | 
														
														 | 
														
															     private PracticeGroupSellPriceDao practiceGroupSellPriceDao; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     @Autowired 
														 | 
														
														 | 
														
															     @Autowired 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     private TeacherDefaultPracticeGroupSalaryDao teacherDefaultPracticeGroupSalaryDao; 
														 | 
														
														 | 
														
															     private TeacherDefaultPracticeGroupSalaryDao teacherDefaultPracticeGroupSalaryDao; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    @Autowired 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    private ContractService contractService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     private static Map<Integer, Map<Integer, List<Integer>>> schoolSubjectTeachersMap; 
														 | 
														
														 | 
														
															     private static Map<Integer, Map<Integer, List<Integer>>> schoolSubjectTeachersMap; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -122,6 +126,9 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     private static Date activityStartDate, activityEndDate, applyStartDay, courseExpireDate; 
														 | 
														
														 | 
														
															     private static Date activityStartDate, activityEndDate, applyStartDay, courseExpireDate; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    private static final Logger LOGGER = LoggerFactory 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            .getLogger(PracticeGroupService.class); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     private static List<String> applyDayTimes = new ArrayList<>(); 
														 | 
														
														 | 
														
															     private static List<String> applyDayTimes = new ArrayList<>(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     static { 
														 | 
														
														 | 
														
															     static { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -2951,6 +2958,12 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         practiceGroup.setGroupStatus(GroupStatusEnum.NORMAL); 
														 | 
														
														 | 
														
															         practiceGroup.setGroupStatus(GroupStatusEnum.NORMAL); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         practiceGroupDao.update(practiceGroup); 
														 | 
														
														 | 
														
															         practiceGroupDao.update(practiceGroup); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        try { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            contractService.transferPracticeCoursesContract(order.getUserId(),classGroup.getTotalClassTimes(),practiceGroup.getCoursesStartDate(),practiceGroup.getCoursesExpireDate(),order.getExpectAmount()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        } catch (Exception e) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            LOGGER.error("小课[{}]购买协议错误:{}",order.getMusicGroupId(),e.getMessage(),e.getMessage()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 //        List<ImGroupMember> imGroupMemberList = new ArrayList<>(); 
														 | 
														
														 | 
														
															 //        List<ImGroupMember> imGroupMemberList = new ArrayList<>(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 //        imGroupMemberList.add(new ImGroupMember(practiceGroup.getUserId().toString())); 
														 | 
														
														 | 
														
															 //        imGroupMemberList.add(new ImGroupMember(practiceGroup.getUserId().toString())); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 //        imGroupMemberList.add(new ImGroupMember(practiceGroup.getStudentId().toString())); 
														 | 
														
														 | 
														
															 //        imGroupMemberList.add(new ImGroupMember(practiceGroup.getStudentId().toString())); 
														 |