EmployeeController类的根据id查询员工信息getById方法

@GetMapping("/{id}")
public R<Employee> getById(@PathVariable Long id) {
log.info("根据id查询员工信息。。。");
Employee employee = employeeService.getById(id);
return R.success(employee);
}
==============================================

 

 

 
posted @ 2023-03-20 09:57  大灰狼21  阅读(61)  评论(0编辑  收藏  举报