fengxiang
2018-03-13 7f905053f3f879092e18558401185dd6595dbe10
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);
   }
}