From 5834794ac578e1c9fc6969bca1623cd23b54b0aa Mon Sep 17 00:00:00 2001 From: admin <570810310@qq.com> Date: Wed, 31 Mar 2021 16:41:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/github/yulichang/interceptor/MPJInterceptor.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/com/github/yulichang/interceptor/MPJInterceptor.java b/src/main/java/com/github/yulichang/interceptor/MPJInterceptor.java index 8225017..4f272f5 100644 --- a/src/main/java/com/github/yulichang/interceptor/MPJInterceptor.java +++ b/src/main/java/com/github/yulichang/interceptor/MPJInterceptor.java @@ -85,15 +85,12 @@ public class MPJInterceptor implements Interceptor { .cache(ms.getCache()) .flushCacheRequired(ms.isFlushCacheRequired()) .useCache(ms.isUseCache()); - if (ms.getKeyProperties() != null && ms.getKeyProperties().length != 0) { builder.keyProperty(String.join(StringPool.COMMA, ms.getKeyProperties())); } - List resultMaps = new ArrayList<>(); resultMaps.add(new ResultMap.Builder(ms.getConfiguration(), ms.getId(), resultType, EMPTY_RESULT_MAPPING).build()); builder.resultMaps(resultMaps); - MappedStatement mappedStatement = builder.build(); MS_CACHE.put(id, mappedStatement); return mappedStatement;