mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	fix 修复 数据加密拦截器空数据异常
This commit is contained in:
		@@ -60,6 +60,9 @@ public class MybatisDecryptInterceptor implements Interceptor {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
        if (sourceObject instanceof List<?> list) {
 | 
			
		||||
            if(CollectionUtil.isEmpty(list)) {
 | 
			
		||||
                return;
 | 
			
		||||
            }
 | 
			
		||||
            // 判断第一个元素是否含有注解。如果没有直接返回,提高效率
 | 
			
		||||
            Object firstItem = list.get(0);
 | 
			
		||||
            if (CollectionUtil.isEmpty(encryptorManager.getFieldCache(firstItem.getClass()))) {
 | 
			
		||||
 
 | 
			
		||||
@@ -70,6 +70,9 @@ public class MybatisEncryptInterceptor implements Interceptor {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
        if (sourceObject instanceof List<?> list) {
 | 
			
		||||
            if(CollectionUtil.isEmpty(list)) {
 | 
			
		||||
                return;
 | 
			
		||||
            }
 | 
			
		||||
            // 判断第一个元素是否含有注解。如果没有直接返回,提高效率
 | 
			
		||||
            Object firstItem = list.get(0);
 | 
			
		||||
            if (CollectionUtil.isEmpty(encryptorManager.getFieldCache(firstItem.getClass()))) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user