过滤==
This commit is contained in:
parent
6bbfc10c34
commit
81b9d65a22
|
|
@ -31,7 +31,13 @@ public enum FilterEnum implements BaseEnum<String> {
|
|||
NE("NE", "不等于", 1) {
|
||||
@Override
|
||||
public Predicate<String> filter(List<String> params) {
|
||||
return a -> !a.equals(params.get(0));
|
||||
return a -> {
|
||||
if (NumberUtils.isCreatable(a) && NumberUtils.isCreatable(params.get(0))) {
|
||||
return new BigDecimal(a).compareTo(new BigDecimal(params.get(0))) != 0;
|
||||
} else {
|
||||
return !a.equals(params.get(0));
|
||||
}
|
||||
};
|
||||
}
|
||||
},
|
||||
GT("GT", "大于", 1) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue