EmployeeController类的根据id修改员工信息update方法

@PutMapping
public R<String> update(HttpServletRequest request, @RequestBody Employee employee) {
log.info(employee.toString());

//获取当前登录用户id
//Long empId = (Long) request.getSession().getAttribute("employee");
//employee.setUpdateTime(LocalDateTime.now());
//employee.setUpdateUser(empId);
employeeService.updateById(employee);

return R.success("员工信息修改成功");
}
=========================================================

 

 

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