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 1dbfb53..2e69598 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 @@ -176,4 +176,18 @@ public class TdLeaveController extends BaseController mmap.put("posts", postService.selectPostsByUserIds(userId)); return prefix + "/leaveprint"; } + + + /** + * 修改用户状态 + * @param userId + * @return + */ + public Boolean userUpdate(Long userId) { + return userService.lambdaUpdate() + .eq(SysUser::getUserId, userId) + .set(SysUser::getStatus, "1") + .update(); + } + } diff --git a/ruoyi-admin/src/main/resources/templates/system/leave/add.html b/ruoyi-admin/src/main/resources/templates/system/leave/add.html index 99a8842..81c9870 100644 --- a/ruoyi-admin/src/main/resources/templates/system/leave/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/leave/add.html @@ -13,7 +13,7 @@