智慧保安后台管理项目备份
zhongrj
2024-05-24 b5960d1968e007b91d4d33dd7cbb74f1b566f2c1
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;
      }