diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdLeaveController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdLeaveController.java index 73f9186..1dbfb53 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdLeaveController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/system/TdLeaveController.java @@ -146,11 +146,6 @@ public class TdLeaveController extends BaseController @ResponseBody public AjaxResult examinesave(TdLeave tdLeave) { - if (Objects.equals(tdLeave.getLeavestate(),"1")){ - SysUser sysUser = userService.selectUserById(tdLeave.getUserId()); - sysUser.setStatus("1"); - userService.updateUser(sysUser); - } return toAjax(tdLeaveService.updateTdLeave(tdLeave)); }