lizijie
2019-08-30 5fed7b486fea656ae9878166e3530b7e29eae7eb
src/main/java/com/moral/controller/MobileController.java
@@ -360,16 +360,18 @@
   @GetMapping("mointorPointRank")
   @ApiOperation(value = "获取站点排名", notes = "获取站点排名")
   @ApiImplicitParams(value = {
         @ApiImplicitParam(name = "accountId", value = "账号id", required = true, paramType = "query", dataType = "String")
         @ApiImplicitParam(name = "accountId", value = "账号id", required = true, paramType = "query", dataType = "String"),
         @ApiImplicitParam(name = "sensor", value = "因子", required = true, paramType = "query", dataType = "String")
   })
   public ResultBean<Map<String, Object>> getMointorPointRank(HttpServletRequest request){
   public ResultBean<List<Map<String, Object>>> getMointorPointRank(HttpServletRequest request){
      Map<String, Object> parameters = WebUtils.getParametersStartingWith(request, null);
      String id = parameters.get("accountId").toString();
      String sensor = parameters.get("sensor").toString();
      Map<String, Object> account = accountService.getOrganizationIdByAccountId(id);
      //通过组织id来获取站点和设备信息
      System.out.println(account);
      historyService.getMointorPointRankByOrganizationId(account);
      return new ResultBean<Map<String, Object>>(account);
      account.put("sensor", sensor);
      List<Map<String, Object>> returnList = historyService.getMointorPointRankByOrganizationId(account);
      return new ResultBean<List<Map<String, Object>>>(returnList);
   }
}