|  | @@ -1,5 +1,6 @@
 | 
	
		
			
				|  |  |  package com.ym.mec.biz.service.impl;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +import com.alibaba.fastjson.JSONObject;
 | 
	
		
			
				|  |  |  import com.ym.mec.auth.api.client.SysUserFeignService;
 | 
	
		
			
				|  |  |  import com.ym.mec.auth.api.entity.SysUser;
 | 
	
		
			
				|  |  |  import com.ym.mec.auth.api.entity.SysUserRole;
 | 
	
	
		
			
				|  | @@ -864,7 +865,20 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  | -    public int openPayment(String ids) {
 | 
	
		
			
				|  |  | +    public int openPayment(String ids) throws IOException {
 | 
	
		
			
				|  |  | +        if(StringUtils.isNotEmpty(ids)){
 | 
	
		
			
				|  |  | +            //发送短信通知
 | 
	
		
			
				|  |  | +            List<Long> list = JSONObject.parseArray(JSONObject.toJSONString(Arrays.asList(ids.split(","))),Long.class);
 | 
	
		
			
				|  |  | +            List<StudentRegistration> registrations = studentRegistrationDao.findStudentListByIdList(list);
 | 
	
		
			
				|  |  | +            MusicGroup musicGroup = musicGroupDao.findMusicGroup(list);
 | 
	
		
			
				|  |  | +            String configValue = sysConfigDao.findConfigValue(SysConfigService.STUDENT_APPLY_URL);
 | 
	
		
			
				|  |  | +            HashMap<Integer,String> receivers = new HashMap<>(registrations.size());
 | 
	
		
			
				|  |  | +            registrations.forEach(e->{
 | 
	
		
			
				|  |  | +                receivers.put(e.getUserId(),e.getParentsPhone());
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +            sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.YIMEI,
 | 
	
		
			
				|  |  | +                    MessageTypeEnum.SMS_STUDENT_OPEN_PAYMENT,receivers,null,0,null,musicGroup.getName(),HttpUtil.getSortUrl(configValue + musicGroup.getId()));
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          return studentRegistrationDao.batchOpenPay(ids, PaymentStatusEnum.OPEN);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 |