mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-09-13 13:01:41 +08:00
chore(data): 移除 QueryIgnore 的无用属性
This commit is contained in:
@@ -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;
|
|
||||||
}
|
|
||||||
|
@@ -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();
|
||||||
}
|
}
|
||||||
// 建议:数据库表列建议采用下划线连接法命名,程序变量建议采用驼峰法命名
|
// 建议:数据库表列建议采用下划线连接法命名,程序变量建议采用驼峰法命名
|
||||||
|
@@ -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();
|
||||||
}
|
}
|
||||||
// 建议:数据库表列建议采用下划线连接法命名,程序变量建议采用驼峰法命名
|
// 建议:数据库表列建议采用下划线连接法命名,程序变量建议采用驼峰法命名
|
||||||
|
Reference in New Issue
Block a user