@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