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 0f3aba6..f025d07 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 @@ -106,7 +106,7 @@ public class MPJInterceptor implements Interceptor { } if (ew instanceof MPJQueryWrapper) { MPJQueryWrapper wrapper = (MPJQueryWrapper) ew; - return getCache(ms, id + wrapper.getSqlSelect(), resultType, ew); + return getCache(ms, id + StringPool.UNDERSCORE + wrapper.getSqlSelect(), resultType, ew); } return buildMappedStatement(ms, resultType, ew, id); }