|  | @@ -26,6 +26,8 @@ import com.ym.mec.thirdparty.message.MessageSenderPluginContext;
 | 
	
		
			
				|  |  |  import com.ym.mec.util.collection.MapUtil;
 | 
	
		
			
				|  |  |  import com.ym.mec.util.date.DateUtil;
 | 
	
		
			
				|  |  |  import org.apache.commons.lang3.StringUtils;
 | 
	
		
			
				|  |  | +import org.slf4j.Logger;
 | 
	
		
			
				|  |  | +import org.slf4j.LoggerFactory;
 | 
	
		
			
				|  |  |  import org.springframework.beans.BeanUtils;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  |  import org.springframework.http.HttpStatus;
 | 
	
	
		
			
				|  | @@ -109,6 +111,8 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
 | 
	
		
			
				|  |  |      private PracticeGroupSellPriceDao practiceGroupSellPriceDao;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private TeacherDefaultPracticeGroupSalaryDao teacherDefaultPracticeGroupSalaryDao;
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private ContractService contractService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      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 final Logger LOGGER = LoggerFactory
 | 
	
		
			
				|  |  | +            .getLogger(PracticeGroupService.class);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      private static List<String> applyDayTimes = new ArrayList<>();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      static {
 | 
	
	
		
			
				|  | @@ -2951,6 +2958,12 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
 | 
	
		
			
				|  |  |          practiceGroup.setGroupStatus(GroupStatusEnum.NORMAL);
 | 
	
		
			
				|  |  |          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<>();
 | 
	
		
			
				|  |  |  //        imGroupMemberList.add(new ImGroupMember(practiceGroup.getUserId().toString()));
 | 
	
		
			
				|  |  |  //        imGroupMemberList.add(new ImGroupMember(practiceGroup.getStudentId().toString()));
 |