首页 > 其他分享 >EmployeeController类的根据id修改员工信息update方法

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

时间:2023-03-20 10:14:11浏览次数:34  
标签:empId update Long employee EmployeeController id

@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("员工信息修改成功");
}
=========================================================

 


 

 

标签:empId,update,Long,employee,EmployeeController,id
From: https://www.cnblogs.com/dahuilang21/p/17235318.html

相关文章