|  |  |  | 
|---|
|  |  |  | List<CruiserDTO> cruiserInfo = new ArrayList<>(); | 
|---|
|  |  |  | ArrayList<ManageCoordinateDetail> rsList1 = new ArrayList<>(); | 
|---|
|  |  |  | for(CruiserListDTO c : list){ | 
|---|
|  |  |  | if (ObjectUtils.isEmpty(c.getFlyLon()) || ObjectUtils.isEmpty(c.getFlyLat())) { | 
|---|
|  |  |  | continue; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | double[] doubles = RoadUtils.transformWGS84ToBD09(c.getFlyLon(), c.getFlyLat()); | 
|---|
|  |  |  | if(doubles.length !=2){ | 
|---|
|  |  |  | continue; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | String date = new StringBuilder().append(c.getFlyLon()).append("_").append(c.getFlyLat()).toString(); | 
|---|
|  |  |  | if(c.getState().equals(0)){ | 
|---|
|  |  |  | CruiserDTO cruiserDTO = new CruiserDTO(); | 
|---|
|  |  |  | cruiserDTO.setTime(c.getTime()); | 
|---|
|  |  |  | cruiserDTO.setFlyLat(c.getFlyLat()); | 
|---|
|  |  |  | cruiserDTO.setFlyLon(c.getFlyLon()); | 
|---|
|  |  |  | cruiserDTO.setFlyLat(doubles[1]); | 
|---|
|  |  |  | cruiserDTO.setFlyLon(doubles[0]); | 
|---|
|  |  |  | cruiserDTO.setData(date); | 
|---|
|  |  |  | cruiserDTO.setState("1"); | 
|---|
|  |  |  | cruiserInfo.add(cruiserDTO); | 
|---|
|  |  |  | 
|---|
|  |  |  | ManageCoordinateDetail detail = new ManageCoordinateDetail(); | 
|---|
|  |  |  | detail.setId(c.getId()); | 
|---|
|  |  |  | detail.setCoordinateId(c.getCoordinateId()); | 
|---|
|  |  |  | detail.setLongitude(c.getFlyLon()); | 
|---|
|  |  |  | detail.setLatitude(c.getFlyLat()); | 
|---|
|  |  |  | detail.setLongitude(doubles[0]); | 
|---|
|  |  |  | detail.setLatitude(doubles[1]); | 
|---|
|  |  |  | detail.setState(c.getState().toString()); | 
|---|
|  |  |  | detail.setCode(date); | 
|---|
|  |  |  | rsList1.add(detail); | 
|---|