| | |
| | | } |
| | | Calendar calendar = Calendar.getInstance(); |
| | | calendar.set(Calendar.MILLISECOND, 0); |
| | | calendar.set(Calendar.SECOND, 0); |
| | | pointMathList.forEach(item -> { |
| | | Object value = CommonConstant.BAD_VALUE; |
| | | if (redisTemplate.hasKey(PointCollector.PV + item.getPointNo())) { |
| | |
| | | queryDto.setEnd(endTime); |
| | | queryDto.setPointNo(dto.getMomentPoint()); |
| | | log.info("queryDto=" + JSONObject.toJSONString(queryDto)); |
| | | List<ApiPointValueDTO> dataList = dataPointApi.queryPointHistoryValue(queryDto); |
| | | List<ApiPointValueDTO> dataList = new ArrayList<>(); |
| | | List<ApiPointValueDTO> dataListTemp = dataPointApi.queryPointHistoryValue(queryDto); |
| | | if (dto.getIsCumuNeg() != null && dto.getIsCumuNeg().equals(0)) { |
| | | for(ApiPointValueDTO item : dataListTemp) { |
| | | if (item.getV() > 0) { |
| | | dataList.add(item); |
| | | } |
| | | } |
| | | } else { |
| | | dataList = dataListTemp; |
| | | } |
| | | |
| | | if (CollectionUtils.isEmpty(dataList)) { |
| | | log.info("dataList is empty"); |
| | | if (listGood != null) { |