| | |
| | | // 筛选info_type = 1 |
| | | List<CokingProcessConfEntity> indList = list.stream().filter(e -> e.getInfoType().equals("1")).collect(Collectors.toList()); |
| | | if (CollectionUtils.isEmpty(indList)) { |
| | | return; |
| | | continue; |
| | | } |
| | | List<CokingOverviewIndEntity> overviewIndEntities = new ArrayList<>(indList.size()); |
| | | for (CokingProcessConfEntity conf : indList) { |
| | |
| | | List<String> points = new ArrayList<>(); |
| | | points.add(conf.getPointNo()); |
| | | Map<String, Object> pointsRealValue = dataPointApi.queryPointsRealValue(points); |
| | | value = Double.valueOf(pointsRealValue.get(conf.getPointNo()).toString()); |
| | | if (pointsRealValue.containsKey(conf.getPointNo())) { |
| | | value = Double.valueOf(pointsRealValue.get(conf.getPointNo()).toString()); |
| | | } |
| | | break; |
| | | case IND: |
| | | List<ApiIndItemValueDTO> indValues = indItemApi.queryIndItemDefaultValue(conf.getPointNo()); |
| | | if (!CollectionUtils.isEmpty(indValues)) { |
| | | value = Double.valueOf(indValues.get(indValues.size() - 1).getDataValue().toString()); |
| | | value = Double.valueOf(indValues.get(0).getDataValue().toString()); |
| | | } |
| | | break; |
| | | case MODEL: |