diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/encrypt/MybatisDecryptInterceptor.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/encrypt/MybatisDecryptInterceptor.java index b0a97c7f1..8755e7d46 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/encrypt/MybatisDecryptInterceptor.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/encrypt/MybatisDecryptInterceptor.java @@ -16,10 +16,7 @@ import org.apache.ibatis.plugin.*; import java.lang.reflect.Field; import java.sql.Statement; -import java.util.List; -import java.util.Map; -import java.util.Properties; -import java.util.Set; +import java.util.*; /** * 出参解密拦截器 @@ -60,7 +57,7 @@ public class MybatisDecryptInterceptor implements Interceptor { return; } if (sourceObject instanceof Map) { - ((Map) sourceObject).values().forEach(this::decryptHandler); + new HashSet<>(((Map) sourceObject).values()).forEach(this::decryptHandler); return; } if (sourceObject instanceof List) { diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/encrypt/MybatisEncryptInterceptor.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/encrypt/MybatisEncryptInterceptor.java index 1ed5ab451..e2ce1957b 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/encrypt/MybatisEncryptInterceptor.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/encrypt/MybatisEncryptInterceptor.java @@ -19,10 +19,7 @@ import org.apache.ibatis.plugin.Signature; import java.lang.reflect.Field; import java.sql.PreparedStatement; -import java.util.List; -import java.util.Map; -import java.util.Properties; -import java.util.Set; +import java.util.*; /** * 入参加密拦截器 @@ -70,7 +67,7 @@ public class MybatisEncryptInterceptor implements Interceptor { return; } if (sourceObject instanceof Map) { - ((Map) sourceObject).values().forEach(this::encryptHandler); + new HashSet<>(((Map) sourceObject).values()).forEach(this::encryptHandler); return; } if (sourceObject instanceof List) {