diff --git a/continew-starter-data/continew-starter-data-core/src/main/java/top/continew/starter/data/core/annotation/QueryIgnore.java b/continew-starter-data/continew-starter-data-core/src/main/java/top/continew/starter/data/core/annotation/QueryIgnore.java index 12ed7f21..a2967b4e 100644 --- a/continew-starter-data/continew-starter-data-core/src/main/java/top/continew/starter/data/core/annotation/QueryIgnore.java +++ b/continew-starter-data/continew-starter-data-core/src/main/java/top/continew/starter/data/core/annotation/QueryIgnore.java @@ -27,12 +27,4 @@ import java.lang.annotation.*; @Target(ElementType.FIELD) @Retention(RetentionPolicy.RUNTIME) @Documented -public @interface QueryIgnore { - - /** - * 获取是否忽略查询解析 - * - * @return 是否忽略查询解析 - */ - boolean value() default true; -} +public @interface QueryIgnore {} diff --git a/continew-starter-data/continew-starter-data-mf/src/main/java/top/continew/starter/data/mf/util/QueryWrapperHelper.java b/continew-starter-data/continew-starter-data-mf/src/main/java/top/continew/starter/data/mf/util/QueryWrapperHelper.java index e51dc0d2..250d0ed0 100644 --- a/continew-starter-data/continew-starter-data-mf/src/main/java/top/continew/starter/data/mf/util/QueryWrapperHelper.java +++ b/continew-starter-data/continew-starter-data-mf/src/main/java/top/continew/starter/data/mf/util/QueryWrapperHelper.java @@ -143,7 +143,7 @@ public class QueryWrapperHelper { } // 设置了 @QueryIgnore 注解,直接忽略 QueryIgnore queryIgnoreAnnotation = field.getAnnotation(QueryIgnore.class); - if (null != queryIgnoreAnnotation && queryIgnoreAnnotation.value()) { + if (null != queryIgnoreAnnotation) { return Collections.emptyList(); } // 建议:数据库表列建议采用下划线连接法命名,程序变量建议采用驼峰法命名 diff --git a/continew-starter-data/continew-starter-data-mp/src/main/java/top/continew/starter/data/mp/util/QueryWrapperHelper.java b/continew-starter-data/continew-starter-data-mp/src/main/java/top/continew/starter/data/mp/util/QueryWrapperHelper.java index 3a4e4fc2..22ba82fc 100644 --- a/continew-starter-data/continew-starter-data-mp/src/main/java/top/continew/starter/data/mp/util/QueryWrapperHelper.java +++ b/continew-starter-data/continew-starter-data-mp/src/main/java/top/continew/starter/data/mp/util/QueryWrapperHelper.java @@ -137,7 +137,7 @@ public class QueryWrapperHelper { } // 设置了 @QueryIgnore 注解,直接忽略 QueryIgnore queryIgnoreAnnotation = field.getAnnotation(QueryIgnore.class); - if (null != queryIgnoreAnnotation && queryIgnoreAnnotation.value()) { + if (null != queryIgnoreAnnotation) { return Collections.emptyList(); } // 建议:数据库表列建议采用下划线连接法命名,程序变量建议采用驼峰法命名