|  | @@ -1,5 +1,6 @@
 | 
	
		
			
				|  |  |  package com.ym.mec.web.controller;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +import com.ym.mec.biz.dal.dto.MusicGroupRegsDto;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.StudentRegistration;
 | 
	
		
			
				|  |  |  import com.ym.mec.common.entity.HttpResponseResult;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.Api;
 | 
	
	
		
			
				|  | @@ -282,11 +283,11 @@ public class MusicGroupController extends BaseController {
 | 
	
		
			
				|  |  |  	@ApiOperation(value = "乐团添加报名学员")
 | 
	
		
			
				|  |  |  	@PostMapping("/addMusicGroupRegs")
 | 
	
		
			
				|  |  |  	@PreAuthorize("@pcs.hasPermissions('musicGroup/addMusicGroupRegs')")
 | 
	
		
			
				|  |  | -	public HttpResponseResult<List<StudentRegistration>> addMusicGroupRegs(String musicGroupId, List<Long> registerIds) throws Exception {
 | 
	
		
			
				|  |  | -		if(registerIds.size() <=0){
 | 
	
		
			
				|  |  | +	public HttpResponseResult<List<StudentRegistration>> addMusicGroupRegs(@RequestBody MusicGroupRegsDto musicGroupRegsDto) throws Exception {
 | 
	
		
			
				|  |  | +		if(musicGroupRegsDto.getRegisterIds().size() <=0){
 | 
	
		
			
				|  |  |  			return failed("请选择要添加的学员");
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | -		return succeed(musicGroupService.addMusicGroupRegs(musicGroupId,registerIds));
 | 
	
		
			
				|  |  | +		return succeed(musicGroupService.addMusicGroupRegs(musicGroupRegsDto.getMusicGroupId(),musicGroupRegsDto.getRegisterIds()));
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  }
 |