| | |
| | | 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"); |
| | |
| | | } |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | return list; |
| | | } |