添加自定义注解判断是否因为数据为空时过滤当前记录
This commit is contained in:
22
src/main/java/com/njcn/influx/ano/IgnoreData.java
Normal file
22
src/main/java/com/njcn/influx/ano/IgnoreData.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package com.njcn.influx.ano;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* 判断为空时,是否取消存储该条记录
|
||||
* @author hongawen
|
||||
*/
|
||||
@Target(ElementType.FIELD)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface IgnoreData {
|
||||
|
||||
/**
|
||||
* 用于传参
|
||||
* @return boolean 参数内容
|
||||
*/
|
||||
boolean value();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user