Merge branch 'iec61850' into spectrogram

dev
huangfeng 4 months ago
commit b907a97a5c

@ -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(",");

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

@ -83,7 +83,7 @@ public class RuleCheckTask {
}
}
} catch (Exception e) {
log.error("RuleCheckTask.ruleCheck error.", e);
log.error("RuleCheckTask.ruleCheck error. ruleId=" + rule.getId(), e);
}
}

Loading…
Cancel
Save