| 
					
				 | 
			
			
				@@ -1,9 +1,13 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package com.yonge.cooleshow.admin.controller; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.baomidou.mybatisplus.core.metadata.IPage; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.yonge.cooleshow.auth.api.client.SysUserFeignService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.yonge.cooleshow.auth.api.entity.SysUser; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.yonge.cooleshow.biz.dal.dao.EmployeeDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.yonge.cooleshow.biz.dal.dto.search.EmployeeSearch; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.yonge.cooleshow.biz.dal.dto.search.StudentSearch; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.yonge.cooleshow.biz.dal.support.PageUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.yonge.cooleshow.biz.dal.vo.StudentVo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.yonge.cooleshow.common.page.QueryInfo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.yonge.cooleshow.common.entity.HttpResponseResult; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.yonge.cooleshow.common.page.PageInfo; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -16,11 +20,7 @@ import java.util.Date; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.security.access.prepost.PreAuthorize; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import org.springframework.web.bind.annotation.GetMapping; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import org.springframework.web.bind.annotation.PostMapping; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import org.springframework.web.bind.annotation.RequestBody; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import org.springframework.web.bind.annotation.RequestMapping; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import org.springframework.web.bind.annotation.RestController; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.springframework.web.bind.annotation.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.yonge.cooleshow.biz.dal.entity.Employee; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.yonge.cooleshow.biz.dal.service.EmployeeService; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -37,20 +37,26 @@ public class EmployeeController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private EmployeeDao employeeDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @GetMapping("/detail/{userId}") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @GetMapping("/detail/{id}") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ApiOperation(value = "详情", notes = "传入student") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ApiImplicitParams({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            @ApiImplicitParam(name = "userId", value = "userId", paramType = "path", dataType = "long", required = true), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            @ApiImplicitParam(name = "id", value = "id", paramType = "path", dataType = "long", required = true), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public HttpResponseResult<Employee> detail(Long userId){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        Employee detail = employeeService.detail(userId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public HttpResponseResult<Employee> detail(@PathVariable("id") Long id){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Employee detail = employeeService.detail(id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return succeed(detail); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @PostMapping("/page") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 查询分页 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ApiOperation(value = "查询分页", notes = "传入student") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @PostMapping("/page") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @PreAuthorize("@pcs.hasPermissions('employee/page')") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public HttpResponseResult<PageInfo<Employee>> page(@RequestBody EmployeeSearch query) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return succeed(employeeService.selectPage(query, query)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        query.setSort("id_"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        IPage<Employee> pages = employeeService.selectPage(PageUtil.getPage(query), query); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return succeed(PageUtil.pageInfo(pages)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ApiOperation(value = "新增员工") 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -72,13 +78,6 @@ public class EmployeeController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return succeed(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    /*@ApiOperation(value = "获取所有员工") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @GetMapping("/findAll") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    @PreAuthorize("@pcs.hasPermissions('employee/findAll')") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public Object findAll() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return succeed(employeeService.findAll(null)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ApiOperation(value = "获取用户信息") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @GetMapping("/queryUserInfo") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public Object apiQueryUserInfo() { 
			 |