| | |
| | | queryIndItemDTO.setEnd(columnItem.getEndTime()); |
| | | List<ApiIndItemValueDTO> indItemValueList = indItemApi.queryIndItemHistoryValue(queryIndItemDTO); |
| | | if (!CollectionUtils.isEmpty(indItemValueList)) { |
| | | matrix = new double[entry.getDataLength()][0]; |
| | | if (indItemValueList.size() > entry.getDataLength()) { |
| | | indItemValueList = indItemValueList.subList(0, entry.getDataLength()); |
| | | } |
| | | matrix = new double[indItemValueList.size()][0]; |
| | | // if (indItemValueList.size() > entry.getDataLength()) { |
| | | // indItemValueList = indItemValueList.subList(0, entry.getDataLength()); |
| | | // } |
| | | for (int i = 0; i < indItemValueList.size(); i++) { |
| | | String stringValue = indItemValueList.get(i).getDataValue().toString(); |
| | | double[] asciiArray = ASCIIUtil.stringToAsciiArray(stringValue); |