Bladeren bron

方法名修复.

nieqiurong@163.com 7 jaren geleden
bovenliggende
commit
5f993f2dfd

+ 6 - 6
mybatis-plus-core/src/main/java/com/baomidou/mybatisplus/core/conditions/SqlPlus.java

@@ -45,7 +45,7 @@ public class SqlPlus extends MybatisAbstractSQL<SqlPlus> {
      * @return this
      */
     public SqlPlus IS_NOT_NULL(String columns) {
-        handerNull(columns, IS_NOT_NULL);
+        handlerNull(columns, IS_NOT_NULL);
         return this;
     }
 
@@ -58,7 +58,7 @@ public class SqlPlus extends MybatisAbstractSQL<SqlPlus> {
      * @return
      */
     public SqlPlus IS_NULL(String columns) {
-        handerNull(columns, IS_NULL);
+        handlerNull(columns, IS_NULL);
         return this;
     }
 
@@ -71,7 +71,7 @@ public class SqlPlus extends MybatisAbstractSQL<SqlPlus> {
      * @return
      */
     public SqlPlus EXISTS(String value) {
-        handerExists(value, false);
+        handlerExists(value, false);
         return this;
     }
 
@@ -83,7 +83,7 @@ public class SqlPlus extends MybatisAbstractSQL<SqlPlus> {
      * @param value
      * @param isNot 是否为NOT EXISTS操作
      */
-    private void handerExists(String value, boolean isNot) {
+    private void handlerExists(String value, boolean isNot) {
         if (StringUtils.isNotEmpty(value)) {
             StringBuilder inSql = new StringBuilder();
             if (isNot) {
@@ -103,7 +103,7 @@ public class SqlPlus extends MybatisAbstractSQL<SqlPlus> {
      * @return
      */
     public SqlPlus NOT_EXISTS(String value) {
-        handerExists(value, true);
+        handlerExists(value, true);
         return this;
     }
 
@@ -115,7 +115,7 @@ public class SqlPlus extends MybatisAbstractSQL<SqlPlus> {
      * @param columns 以逗号分隔的字段名称
      * @param sqlPart SQL部分
      */
-    private void handerNull(String columns, String sqlPart) {
+    private void handlerNull(String columns, String sqlPart) {
         if (StringUtils.isNotEmpty(columns)) {
             String[] cols = columns.split("," );
             for (String col : cols) {

+ 5 - 5
mybatis-plus-core/src/main/java/com/baomidou/mybatisplus/core/conditions/Wrapper.java

@@ -882,7 +882,7 @@ public abstract class Wrapper<T> implements Serializable {
      */
     public Wrapper<T> like(boolean condition, String column, String value) {
         if (condition) {
-            handerLike(column, value, SqlLike.DEFAULT, false);
+            handlerLike(column, value, SqlLike.DEFAULT, false);
         }
         return this;
     }
@@ -912,7 +912,7 @@ public abstract class Wrapper<T> implements Serializable {
      */
     public Wrapper<T> notLike(boolean condition, String column, String value) {
         if (condition) {
-            handerLike(column, value, SqlLike.DEFAULT, true);
+            handlerLike(column, value, SqlLike.DEFAULT, true);
         }
         return this;
     }
@@ -939,7 +939,7 @@ public abstract class Wrapper<T> implements Serializable {
      * @param value  like匹配值
      * @param isNot  是否为NOT LIKE操作
      */
-    private void handerLike(String column, String value, SqlLike type, boolean isNot) {
+    private void handlerLike(String column, String value, SqlLike type, boolean isNot) {
         if (StringUtils.isNotEmpty(column) && StringUtils.isNotEmpty(value)) {
             StringBuilder inSql = new StringBuilder();
             inSql.append(column);
@@ -964,7 +964,7 @@ public abstract class Wrapper<T> implements Serializable {
      */
     public Wrapper<T> like(boolean condition, String column, String value, SqlLike type) {
         if (condition) {
-            handerLike(column, value, type, false);
+            handlerLike(column, value, type, false);
         }
         return this;
     }
@@ -996,7 +996,7 @@ public abstract class Wrapper<T> implements Serializable {
      */
     public Wrapper<T> notLike(boolean condition, String column, String value, SqlLike type) {
         if (condition) {
-            handerLike(column, value, type, true);
+            handlerLike(column, value, type, true);
         }
         return this;
     }

+ 2 - 2
mybatis-plus-extension/src/main/java/com/baomidou/mybatisplus/extension/plugins/pagination/DialectFactory.java

@@ -102,7 +102,7 @@ public class DialectFactory {
                 throw new MybatisPlusException("Class :" + dialectClazz + " is not found" );
             }
         } else if (null != dbType) {
-            dialect = getDialectByDbtype(dbType);
+            dialect = getDialectByDbType(dbType);
         }
         /* 未配置方言则抛出异常 */
         if (dialect == null) {
@@ -120,7 +120,7 @@ public class DialectFactory {
      * @return
      * @throws Exception
      */
-    private static IDialect getDialectByDbtype(IDBType dbType) {
+    private static IDialect getDialectByDbType(IDBType dbType) {
         IDialect dialect;
         if (dbType == DBType.MYSQL) {
             dialect = MySqlDialect.INSTANCE;