|
@@ -234,7 +234,7 @@ public class PreProcess {
|
|
|
if (numval >= minval) { minmatch = true; }
|
|
|
break;
|
|
|
}
|
|
|
- } else { minmatch = true; }
|
|
|
+ } else { minmatch = false; }
|
|
|
|
|
|
if (String.valueOf(maxval).trim().length() > 0 && maxunit.equals(unit) ) {
|
|
|
switch (maxop) {
|
|
@@ -245,9 +245,9 @@ public class PreProcess {
|
|
|
if (numval <= maxval) { maxmatch = true; }
|
|
|
break;
|
|
|
}
|
|
|
- } else { maxmatch = true; }
|
|
|
+ } else { maxmatch = false; }
|
|
|
|
|
|
- if (minmatch && maxmatch) {
|
|
|
+ if (minmatch ==true && maxmatch==true) {
|
|
|
StringBuffer rulesContent = new StringBuffer();
|
|
|
StringBuffer append = rulesContent.append(rule.getIdx_name()).append(rule.getMin_operator()).append(rule.getMin_value()).append(rule.getMin_unit())
|
|
|
.append(rule.getMax_operator()).append(rule.getMax_value()).append(rule.getMax_unit());
|