Browse Source

代码调整.

nieqiurong 3 months ago
parent
commit
e8c84edfb5

+ 1 - 1
mybatis-plus-core/src/main/java/com/baomidou/mybatisplus/core/override/MybatisMapperProxy.java

@@ -175,7 +175,7 @@ public class MybatisMapperProxy<T> implements InvocationHandler, Serializable {
                     Class<?> mapperInterface = mybatisMapperProxy.getMapperInterface();
                     Class<?> mapperInterface = mybatisMapperProxy.getMapperInterface();
                     IgnoreStrategy ignoreStrategy = InterceptorIgnoreHelper.findIgnoreStrategy(mapperInterface, method);
                     IgnoreStrategy ignoreStrategy = InterceptorIgnoreHelper.findIgnoreStrategy(mapperInterface, method);
                     if (ignoreStrategy == null) {
                     if (ignoreStrategy == null) {
-                        ignoreStrategy = IgnoreStrategy.DEFAULT;
+                        ignoreStrategy = IgnoreStrategy.builder().build();
                     }
                     }
                     InterceptorIgnoreHelper.handle(ignoreStrategy);
                     InterceptorIgnoreHelper.handle(ignoreStrategy);
                     return methodHandle.bindTo(proxy).invokeWithArguments(args);
                     return methodHandle.bindTo(proxy).invokeWithArguments(args);

+ 0 - 6
mybatis-plus-core/src/main/java/com/baomidou/mybatisplus/core/plugins/IgnoreStrategy.java

@@ -25,12 +25,6 @@ import java.util.Map;
 @Setter
 @Setter
 @Builder
 @Builder
 public class IgnoreStrategy {
 public class IgnoreStrategy {
-
-    /**
-     * @since 3.5.10
-     */
-    public static final IgnoreStrategy DEFAULT = IgnoreStrategy.builder().build();
-
     private Boolean tenantLine;
     private Boolean tenantLine;
     private Boolean dynamicTableName;
     private Boolean dynamicTableName;
     private Boolean blockAttack;
     private Boolean blockAttack;

+ 1 - 1
mybatis-plus-generator/src/main/java/com/baomidou/mybatisplus/generator/config/builder/Entity.java

@@ -77,7 +77,7 @@ public class Entity implements ITemplate {
     private String javaTemplate = ConstVal.TEMPLATE_ENTITY_JAVA;
     private String javaTemplate = ConstVal.TEMPLATE_ENTITY_JAVA;
 
 
     /**
     /**
-     * Kotlin模板默认
+     * Kotlin模板默认路径
      */
      */
     @Getter
     @Getter
     private String kotlinTemplate = ConstVal.TEMPLATE_ENTITY_KT;
     private String kotlinTemplate = ConstVal.TEMPLATE_ENTITY_KT;