From 9d84e4065ec316659a2c7e388f12187c5e611517 Mon Sep 17 00:00:00 2001 From: bleachtred Date: Thu, 13 Apr 2023 15:43:42 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=BF=90=E7=AE=97=E7=AC=A6=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/encrypt/interceptor/MybatisEncryptInterceptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/interceptor/MybatisEncryptInterceptor.java b/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/interceptor/MybatisEncryptInterceptor.java index 0a0c587f..d16bc941 100644 --- a/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/interceptor/MybatisEncryptInterceptor.java +++ b/ruoyi-common/ruoyi-common-encrypt/src/main/java/org/dromara/common/encrypt/interceptor/MybatisEncryptInterceptor.java @@ -75,7 +75,7 @@ public class MybatisEncryptInterceptor implements Interceptor { } // 判断第一个元素是否含有注解。如果没有直接返回,提高效率 Object firstItem = list.get(0); - if (ObjectUtil.isNull(firstItem) && CollUtil.isEmpty(encryptorManager.getFieldCache(firstItem.getClass()))) { + if (ObjectUtil.isNull(firstItem) || CollUtil.isEmpty(encryptorManager.getFieldCache(firstItem.getClass()))) { return; } list.forEach(this::encryptHandler);