!337 update 运算符使用错误

Merge pull request !337 from Bleachtred/5.X
This commit is contained in:
疯狂的狮子Li 2023-04-13 07:52:39 +00:00 committed by Gitee
commit 2ac0468288
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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);