| | |
| | | log.info("queryDto=" + JSONObject.toJSONString(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) { |
| | | if (dto.getIsCumuNeg() != null) { |
| | | if (dto.getIsCumuNeg().equals(0)) { |
| | | // 不累计负值 |
| | | for (ApiPointValueDTO item : dataListTemp) { |
| | | if (item.getV() > 0) { |
| | | dataList.add(item); |
| | | } |
| | | } |
| | | }else if (dto.getIsCumuNeg().equals(2)) { |
| | | // 绝对值累计 |
| | | for (ApiPointValueDTO item : dataListTemp) { |
| | | item.setV(Math.abs(item.getV())); |
| | | dataList.add(item); |
| | | } |
| | | }else { |
| | | dataList = dataListTemp; |
| | | } |
| | | } else { |
| | | dataList = dataListTemp; |