From 43b31edb757fdbc002a2ab32e976ac9d179cf20d Mon Sep 17 00:00:00 2001
From: konbai <1527468660@qq.com>
Date: 星期二, 20 十二月 2022 00:03:01 +0800
Subject: [PATCH] add 增加 RedisUtils 检查缓存对象是否存在方法

---
 ruoyi-system/src/main/java/com/ruoyi/system/listener/SysUserImportListener.java |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/listener/SysUserImportListener.java b/ruoyi-system/src/main/java/com/ruoyi/system/listener/SysUserImportListener.java
index 58f2f31..b883dae 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/listener/SysUserImportListener.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/listener/SysUserImportListener.java
@@ -62,7 +62,12 @@
                 successNum++;
                 successMsg.append("<br/>").append(successNum).append("銆佽处鍙� ").append(user.getUserName()).append(" 瀵煎叆鎴愬姛");
             } else if (isUpdateSupport) {
+                Long userId = user.getUserId();
+                user = BeanUtil.toBean(userVo, SysUser.class);
+                user.setUserId(userId);
                 ValidatorUtils.validate(user);
+                userService.checkUserAllowed(user);
+                userService.checkUserDataScope(user.getUserId());
                 user.setUpdateBy(operName);
                 userService.updateUser(user);
                 successNum++;

--
Gitblit v1.9.3