|  | @@ -5,6 +5,7 @@ import io.swagger.annotations.Api;
 | 
											
												
													
														|  |  import io.swagger.annotations.ApiOperation;
 |  |  import io.swagger.annotations.ApiOperation;
 | 
											
												
													
														|  |  import io.swagger.annotations.ApiParam;
 |  |  import io.swagger.annotations.ApiParam;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +import org.apache.commons.lang3.StringUtils;
 | 
											
												
													
														|  |  import org.springframework.beans.factory.annotation.Autowired;
 |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
											
												
													
														|  |  import org.springframework.security.access.prepost.PreAuthorize;
 |  |  import org.springframework.security.access.prepost.PreAuthorize;
 | 
											
												
													
														|  |  import org.springframework.web.bind.annotation.*;
 |  |  import org.springframework.web.bind.annotation.*;
 | 
											
										
											
												
													
														|  | @@ -50,4 +51,14 @@ public class MusicGroupSubjectPlanController extends BaseController {
 | 
											
												
													
														|  |          return succeed(musicGroupSubjectPlanService.batchUpdateFee(musicGroupSubjectPlans));
 |  |          return succeed(musicGroupSubjectPlanService.batchUpdateFee(musicGroupSubjectPlans));
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +    @ApiOperation(value = "根据科目编号和乐团编号获取乐团规划")
 | 
											
												
													
														|  | 
 |  | +    @PostMapping("/findSubjectPlan")
 | 
											
												
													
														|  | 
 |  | +    @PreAuthorize("@pcs.hasPermissions('musicGroupSubjectPlan/findSubjectPlan')")
 | 
											
												
													
														|  | 
 |  | +    public Object findSubjectPlan(String musicGroupId,Integer subjectId) throws Exception {
 | 
											
												
													
														|  | 
 |  | +        if(StringUtils.isEmpty(musicGroupId) || subjectId == null){
 | 
											
												
													
														|  | 
 |  | +            throw new Exception("参数校验失败");
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +        return succeed(musicGroupSubjectPlanService.findSubjectPlan(musicGroupId,subjectId));
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |  }
 |  |  }
 |