xufenglei
2018-03-12 6a1b28591ebe95ed9f26810fbf9677da5c87692d
src/main/java/com/moral/controller/ScreenController.java
@@ -424,4 +424,15 @@
      List<MonitorPoint> monitorPoints = monitorPointService.getMonitorPointsByOrganizationId(orgId);
      return new ResultBean<List<MonitorPoint>>(monitorPoints);
   }
   @GetMapping("report_avg_datas")
   public ResultBean<List<Map<String, Object>>> getMonitorPointOrDeviceAvgData(HttpServletRequest request) throws Exception {
      Map<String, Object> parameters = getParametersStartingWith(request, null);
      parameters.put("type", "month");
      parameters.put("format", "yyyy-MM");
      parameters.put("typeFormat", "%Y-%m-%d");
      List<Map<String, Object>> list = historyMinutelyService.getMonitorPointOrDeviceAvgData(parameters);
      return new ResultBean<List<Map<String, Object>>>(list);
   }
}