|
|
|
@ -14,7 +14,12 @@ public class FloatCompare extends Comparator {
|
|
|
|
|
@Override
|
|
|
|
|
public boolean compare(Object source, String threshold, Date lastDTime) {
|
|
|
|
|
if (source != null) {
|
|
|
|
|
float s1 = (float) source;
|
|
|
|
|
float s1;
|
|
|
|
|
if (source instanceof Number) {
|
|
|
|
|
s1 = (float) source;
|
|
|
|
|
} else {
|
|
|
|
|
s1 = Float.valueOf(source.toString());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ("BTW".equalsIgnoreCase(operator)) {
|
|
|
|
|
String[] strs = threshold.split(",");
|
|
|
|
|