!337 update 运算符使用错误

Merge pull request !337 from Bleachtred/5.X
feature/model
疯狂的狮子Li 2 years ago committed by Gitee
commit 2ac0468288
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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

Loading…
Cancel
Save