| | |
| | | T thresholdAutoValue = parseThreshold(ywThreshold.getValueAuto(), value.getClass()); |
| | | //直接下发工单阈值 |
| | | T thresholdValue = parseThreshold(ywThreshold.getValue(), value.getClass()); |
| | | if("percent".equals(ywThreshold.getCountType())){ |
| | | if (thresholdAutoValue instanceof Float) { |
| | | thresholdAutoValue = (T) Float.valueOf(((Float) thresholdAutoValue) / 100f); |
| | | } |
| | | if (thresholdValue instanceof Float) { |
| | | thresholdValue = (T) Float.valueOf(((Float) thresholdValue) / 100f); |
| | | } |
| | | } |
| | | //比较大小,加入到对应待处理集合 |
| | | if (compareType.compare(v, thresholdValue)) { |
| | | //进入工单直接下发 |