chore(data): 移除 QueryIgnore 的无用属性

This commit is contained in:
2024-09-11 22:27:46 +08:00
parent 46773df9dd
commit 0c334dadcc
3 changed files with 3 additions and 11 deletions

View File

@@ -27,12 +27,4 @@ import java.lang.annotation.*;
@Target(ElementType.FIELD) @Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Documented @Documented
public @interface QueryIgnore { public @interface QueryIgnore {}
/**
* 获取是否忽略查询解析
*
* @return 是否忽略查询解析
*/
boolean value() default true;
}

View File

@@ -143,7 +143,7 @@ public class QueryWrapperHelper {
} }
// 设置了 @QueryIgnore 注解,直接忽略 // 设置了 @QueryIgnore 注解,直接忽略
QueryIgnore queryIgnoreAnnotation = field.getAnnotation(QueryIgnore.class); QueryIgnore queryIgnoreAnnotation = field.getAnnotation(QueryIgnore.class);
if (null != queryIgnoreAnnotation && queryIgnoreAnnotation.value()) { if (null != queryIgnoreAnnotation) {
return Collections.emptyList(); return Collections.emptyList();
} }
// 建议:数据库表列建议采用下划线连接法命名,程序变量建议采用驼峰法命名 // 建议:数据库表列建议采用下划线连接法命名,程序变量建议采用驼峰法命名

View File

@@ -137,7 +137,7 @@ public class QueryWrapperHelper {
} }
// 设置了 @QueryIgnore 注解,直接忽略 // 设置了 @QueryIgnore 注解,直接忽略
QueryIgnore queryIgnoreAnnotation = field.getAnnotation(QueryIgnore.class); QueryIgnore queryIgnoreAnnotation = field.getAnnotation(QueryIgnore.class);
if (null != queryIgnoreAnnotation && queryIgnoreAnnotation.value()) { if (null != queryIgnoreAnnotation) {
return Collections.emptyList(); return Collections.emptyList();
} }
// 建议:数据库表列建议采用下划线连接法命名,程序变量建议采用驼峰法命名 // 建议:数据库表列建议采用下划线连接法命名,程序变量建议采用驼峰法命名