From a6eb12bc9e42b6818eac558ec7302934b619d8d0 Mon Sep 17 00:00:00 2001 From: yulichang <570810310@qq.com> Date: Tue, 22 Nov 2022 09:53:30 +0800 Subject: [PATCH] id --- .../java/com/github/yulichang/interceptor/MPJInterceptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mybatis-plus-join-core/src/main/java/com/github/yulichang/interceptor/MPJInterceptor.java b/mybatis-plus-join-core/src/main/java/com/github/yulichang/interceptor/MPJInterceptor.java index 9aabb62..831782a 100644 --- a/mybatis-plus-join-core/src/main/java/com/github/yulichang/interceptor/MPJInterceptor.java +++ b/mybatis-plus-join-core/src/main/java/com/github/yulichang/interceptor/MPJInterceptor.java @@ -95,7 +95,7 @@ public class MPJInterceptor implements Interceptor { public MappedStatement getMappedStatement(MappedStatement ms, Class resultType, Object ew) { String id = ms.getId() + StringPool.UNDERSCORE + resultType.getName(); - if (ew instanceof MPJLambdaWrapper) { + if (ew instanceof MPJLambdaWrapper && ((MPJLambdaWrapper) ew).isResultMap()) { //不走缓存 return buildMappedStatement(ms, resultType, ew, id); }