|  | @@ -21,12 +21,14 @@ import com.ym.mec.im.ImFeignService;
 | 
	
		
			
				|  |  |  import com.ym.mec.thirdparty.message.MessageSenderPluginContext;
 | 
	
		
			
				|  |  |  import com.ym.mec.util.collection.MapUtil;
 | 
	
		
			
				|  |  |  import com.ym.mec.util.date.DateUtil;
 | 
	
		
			
				|  |  | +import com.ym.mec.util.http.HttpUtil;
 | 
	
		
			
				|  |  |  import org.apache.commons.lang3.StringUtils;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  |  import org.springframework.stereotype.Service;
 | 
	
		
			
				|  |  |  import org.springframework.transaction.annotation.Transactional;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import javax.annotation.Resource;
 | 
	
		
			
				|  |  | +import java.io.IOException;
 | 
	
		
			
				|  |  |  import java.math.BigDecimal;
 | 
	
		
			
				|  |  |  import java.util.*;
 | 
	
		
			
				|  |  |  import java.util.stream.Collectors;
 | 
	
	
		
			
				|  | @@ -160,7 +162,7 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      @Transactional(rollbackFor = Exception.class)
 | 
	
		
			
				|  |  | -    public StudentRegistration addStudent(StudentRegistration studentRegistration) {
 | 
	
		
			
				|  |  | +    public StudentRegistration addStudent(StudentRegistration studentRegistration) throws IOException {
 | 
	
		
			
				|  |  |          Date date = new Date();
 | 
	
		
			
				|  |  |          Integer userId = 0;
 | 
	
		
			
				|  |  |          SysUser sysUser = studentRegistrationDao.getSysUserByPhone(studentRegistration.getParentsPhone());
 | 
	
	
		
			
				|  | @@ -208,7 +210,7 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
 | 
	
		
			
				|  |  |          map.put(studentRegistration.getUserId(),studentRegistration.getParentsPhone());
 | 
	
		
			
				|  |  |          sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.YIMEI,
 | 
	
		
			
				|  |  |                  MessageTypeEnum.SMS_APPLY_MESSAGE,map,null,0,"",
 | 
	
		
			
				|  |  | -                studentRegistration.getParentsName(),subject.getName(),studentApplyUrl,
 | 
	
		
			
				|  |  | +                studentRegistration.getParentsName(),subject.getName(), HttpUtil.getSortUrl(studentApplyUrl),
 | 
	
		
			
				|  |  |                  DateUtil.format(musicGroup.getApplyExpireDate(),DateUtil.DATE_FORMAT_MIN),serverPhone);
 | 
	
		
			
				|  |  |          return studentRegistration;
 | 
	
		
			
				|  |  |      }
 | 
	
	
		
			
				|  | @@ -428,6 +430,7 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
 | 
	
		
			
				|  |  |              } else {
 | 
	
		
			
				|  |  |                  userId = sysUser.getId();
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | +            studentRegistration.setActualSubjectId(studentRegistration.getSubjectId());
 | 
	
		
			
				|  |  |              studentRegistration.setUserId(userId);
 | 
	
		
			
				|  |  |              studentRegistration.setPaymentStatus(PaymentStatusEnum.YES);
 | 
	
		
			
				|  |  |              studentRegistration.setMusicGroupStatus(ClassGroupStudentStatusEnum.NORMAL);
 |