| | |
| | | |
| | | // 异常数据处理 |
| | | String content = null; |
| | | if (value != null) { |
| | | if (value != null && !value.equals(-2.0)) { |
| | | if (value.equals(0.0)) { |
| | | content = clock + " " + conf.getIndName() + "数据异常(数据为0)"; |
| | | }else if (value.compareTo(Double.valueOf(conf.getExt3())) > 0) { |
| | |
| | | entity.setIndCode(conf.getIndCode()); |
| | | entity.setIndName(conf.getIndName()); |
| | | entity.setIndUnit(conf.getIndUnit()); |
| | | if (value != null) { |
| | | entity.setIndValue(BigDecimal.valueOf(value)); |
| | | } |
| | | entity.setCreateDate(new Date()); |
| | | overviewIndEntities.add(entity); |
| | | } |
| | |
| | | if (value != null && StringUtils.isNotBlank(conf.getExt5())) { |
| | | value = value * Double.valueOf(conf.getExt5()); |
| | | } |
| | | return value; |
| | | return value == null ? -2.0 : value; |
| | | } |
| | | } |