| 
					
				 | 
			
			
				@@ -1,8 +1,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package com.ym.mec.web.controller; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.common.controller.BaseController; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ym.mec.common.security.AuthUser; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ym.mec.common.security.SecurityUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ym.mec.web.dal.entity.ClassGroup; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.web.dal.entity.Teacher; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.web.dal.page.TeacherQueryInfo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ym.mec.web.service.ClassGroupService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ym.mec.web.service.TeacherService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.Api; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.ApiOperation; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -11,6 +15,7 @@ import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.bind.annotation.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.Date; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @RequestMapping("teacher") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @Api(tags = "教师服务") 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -20,6 +25,9 @@ public class TeacherController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private TeacherService teacherService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private ClassGroupService classGroupService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ApiOperation(value = "新增教师") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PostMapping("/add") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public Object add(@RequestBody Teacher teacher) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -64,4 +72,10 @@ public class TeacherController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public Object queryPage(@RequestBody TeacherQueryInfo queryInfo) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return succeed(teacherService.queryPage(queryInfo)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @ApiOperation(value = "根据教师编号查询教师课程班列表") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @GetMapping("/getclass/{id}") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public Object getClassGroup(@ApiParam(value = "教师编号", required = true) @PathVariable("id") Integer id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return succeed(classGroupService.findClassGroup4Teacher(id)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |