From 704f07782539a249c57f359228fdbe19c1431138 Mon Sep 17 00:00:00 2001 From: wangxy <1481820854@qq.com> Date: Thu, 24 Apr 2025 16:14:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BA=BA=E5=91=98=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/system/TdLeaveController.java | 14 ++++++++++++++ .../main/resources/templates/system/leave/add.html | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) 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 @@