| | |
| | | resultJson.setId(UUID.randomUUID().toString()); |
| | | resultJson.setOutputid(entry.getKey()); |
| | | resultJson.setPredicttime(predictTime); |
| | | resultJson.setJsonvalue(JSONArray.toJSONString(entry.getValue())); |
| | | List<Double> jsonValueList = entry.getValue().stream().map(valueVO -> { |
| | | return valueVO.getDataValue(); |
| | | }).collect(Collectors.toList()); |
| | | resultJson.setJsonvalue(JSONArray.toJSONString(jsonValueList)); |
| | | Map<String, Object> map4 = new HashMap(2); |
| | | map4.put("TABLENAME", "T_MM_ITEM_RESULT_JSON"); |
| | | map4.put("entity", resultJson); |