| | |
| | | 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) { |