Browse Source

Merge branch 'dev' of https://git.oschina.net/baomidou/mybatis-plus.git into dev

jobob 8 years ago
parent
commit
ac41bb069c
2 changed files with 14 additions and 217 deletions
  1. 0 217
      CHANGELOG.md
  2. 14 0
      mybatis-plus/src/main/java/com/baomidou/mybatisplus/mapper/Wrapper.java

File diff suppressed because it is too large
+ 0 - 217
CHANGELOG.md


+ 14 - 0
mybatis-plus/src/main/java/com/baomidou/mybatisplus/mapper/Wrapper.java

@@ -114,6 +114,20 @@ public abstract class Wrapper<T> implements Serializable {
         return this;
     }
 
+    /**
+     * <p>
+     * 等同于SQL的"field <> value"表达式
+     * </p>
+     *
+     * @param column
+     * @param params
+     * @return
+     */
+    public Wrapper<T> ne(String column, Object params) {
+        sql.WHERE(formatSql(String.format("%s <> {0}", column), params));
+        return this;
+    }
+
     /**
      * <p>
      * 等同于SQL的"field=value"表达式

Some files were not shown because too many files changed in this diff