Commit aaa38e23 authored by zhangsen's avatar zhangsen

预警监测页面bug修改

parent a3af098c
...@@ -995,7 +995,13 @@ public class CommonServiceImpl { ...@@ -995,7 +995,13 @@ public class CommonServiceImpl {
List<String> axisData_valuse = new ArrayList<>(); List<String> axisData_valuse = new ArrayList<>();
result.forEach(item -> { result.forEach(item -> {
seriesData_valuse.add(item.getValue()); seriesData_valuse.add(item.getValue());
axisData_valuse.add(item.getCreatedTime().toString()); String date = item.getCreatedTime().toString();
try {
date = DateUtils.dateFormat(item.getCreatedTime(), DatePattern.NORM_DATETIME_PATTERN);
} catch (ParseException e) {
e.printStackTrace();
}
axisData_valuse.add(date);
}); });
resultLast.put("seriesData", seriesData_valuse); resultLast.put("seriesData", seriesData_valuse);
resultLast.put("axisData", axisData_valuse); resultLast.put("axisData", axisData_valuse);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment