Kaynağa Gözat

新增 exists 方法判断 count 存在

hubin 4 yıl önce
ebeveyn
işleme
4de8b2be3b

+ 1 - 1
mybatis-plus-extension/src/main/java/com/baomidou/mybatisplus/extension/conditions/query/ChainQuery.java

@@ -70,7 +70,7 @@ public interface ChainQuery<T> extends ChainWrapper<T> {
     /**
      * 判断数据是否存在
      *
-     * @return true存在
+     * @return true 存在 false 不存在
      */
     default boolean exists() {
         return this.count() > 0;