| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.Comparator; |
| | | import java.util.List; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | |
| | | //创建集合 |
| | | List<LiveLocationVo> list = new ArrayList<>(); |
| | | if (gunList.size()>0){ |
| | | String startTime = "2020-05-25"; |
| | | String endTime = new SimpleDateFormat("yyyy-MM-dd").format(new Date()); |
| | | //遍历 |
| | | gunList.forEach(gun -> { |
| | | //远程调用 |
| | | String body = InvestigateUtil.httpGetGunPosition(gun.getCardNo(),null,null,null,null,null); |
| | | String body = InvestigateUtil.httpGetGunPosition(gun.getCardNo(),null,startTime,endTime,null,null); |
| | | // System.out.println("body = " + body); |
| | | if (null != body && !body.equals("")) { |
| | | JSONObject jsonObject = new JSONObject(body); |