|  | @@ -3,9 +3,11 @@ package com.ym.mec.web.controller;
 | 
	
		
			
				|  |  |  import com.ym.mec.auth.api.client.SysUserFeignService;
 | 
	
		
			
				|  |  |  import com.ym.mec.auth.api.entity.SysUser;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.dao.EmployeeDao;
 | 
	
		
			
				|  |  | +import com.ym.mec.biz.dal.dao.MusicGroupDao;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.Employee;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.Inspection;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.InspectionItemPlan;
 | 
	
		
			
				|  |  | +import com.ym.mec.biz.dal.entity.MusicGroup;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.page.InspectionItemPlanQueryInfo;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.service.InspectionItemPlanService;
 | 
	
		
			
				|  |  |  import com.ym.mec.common.controller.BaseController;
 | 
	
	
		
			
				|  | @@ -33,6 +35,8 @@ public class InspectionItemPlanController extends BaseController {
 | 
	
		
			
				|  |  |      private SysUserFeignService sysUserFeignService;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private EmployeeDao employeeDao;
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private MusicGroupDao musicGroupDao;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation(value = "添加巡查任务事项日程")
 | 
	
		
			
				|  |  |      @PostMapping("/add")
 | 
	
	
		
			
				|  | @@ -101,4 +105,17 @@ public class InspectionItemPlanController extends BaseController {
 | 
	
		
			
				|  |  |          inspectionItemPlanService.update(inspectionItemPlan);
 | 
	
		
			
				|  |  |          return succeed(inspectionItemPlan);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    @ApiOperation(value = "获取乐团主管的乐团")
 | 
	
		
			
				|  |  | +    @GetMapping("/getMusicGroup")
 | 
	
		
			
				|  |  | +    @PreAuthorize("@pcs.hasPermissions('inspectionItemPlan/getMusicGroup')")
 | 
	
		
			
				|  |  | +    public HttpResponseResult<List<MusicGroup>> getMusicGroup(Integer organId, String search) {
 | 
	
		
			
				|  |  | +        SysUser sysUser = sysUserFeignService.queryUserInfo();
 | 
	
		
			
				|  |  | +        if (sysUser == null) {
 | 
	
		
			
				|  |  | +            return failed("用户信息获取失败");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        return succeed(musicGroupDao.getByEduTeacher(organId, sysUser.getId(), search));
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  }
 |