智慧保安后台管理项目备份
zhongrj
2022-08-26 f1426e0387d0c2b5d9a4ca5a4b7c0666889ee4b2
src/main/java/org/springblade/modules/location/service/impl/LiveLocationServiceImpl.java
@@ -89,11 +89,11 @@
            String startTime = "2020-05-25";
            String endTime = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
            //遍历
            gunList.forEach(gun -> {
               if (!StringUtils.isBlank(gun.getCardNo())) {
            for (Gun gun : gunList) {
               if (!StringUtils.isBlank(gun.getCardNo()) && !gun.getCardNo().equals("null")) {
                  //远程调用
                  String body = InvestigateUtil.httpGetGunPosition(gun.getCardNo(), null, startTime, endTime, null, null);
//               System.out.println("body = " + body);
                  System.out.println("body = " + body);
                  if (null != body && !body.equals("")) {
                     JSONObject jsonObject = new JSONObject(body);
                     Object data = jsonObject.get("data");
@@ -133,7 +133,7 @@
                     }
                  }
               }
            });
            }
         }
         return list;
      }