From 1496a2640408f000f31e01ebe90b5ef97237f5a1 Mon Sep 17 00:00:00 2001 From: zqy <2522236926@qq.com> Date: 星期二, 19 八月 2025 19:42:46 +0800 Subject: [PATCH] 修改婚姻bug && 管理员修改用户信息时 同步修改用户姓名、性别、婚姻状态 --- ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java index 07d6867..fd40fa4 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java @@ -118,7 +118,8 @@ public boolean endOfLife(String username) { - SysUser sysUser = userService.selectUserByUserName(username); + SysUser sysUser = userService.selectUserByNickName(username); + System.out.println("[[[[[[["+sysUser); if (sysUser.getPaid() != null && sysUser.getPaid().equals(0) && !"4".equals(sysUser.getStatus())) { Date startTime = sysUser.getCreateTime(); @@ -130,6 +131,7 @@ if (daysPassed > 7) { sysUser.setStatus("4"); userService.updateUserStatus(sysUser); + } } return true; @@ -148,7 +150,6 @@ */ public String login(String nickName, String password, String code, String uuid) { - System.out.println("[[[[[[[[[[[[[["); endOfLife(nickName); // 楠岃瘉鐮佹牎楠� validateCaptcha(nickName, code, uuid); -- Gitblit v1.9.1