| | |
| | | for (DustldDTO dustldDTO : dustldDTOS) { |
| | | String flyLat = dustldDTO.getFlyLat(); |
| | | String flyLon = dustldDTO.getFlyLon(); |
| | | // if (flyLon==null && flyLat==null){ |
| | | // continue; |
| | | // } |
| | | if (flyLon==null && flyLat==null){ |
| | | continue; |
| | | } |
| | | double latDouble1 = Double.parseDouble(flyLat); |
| | | double lonDouble1 = Double.parseDouble(flyLon); |
| | | for (Map<String, Object> dust : dusts) { |
| | | String flyLat1 = Objects.nonNull(dust.get("flyLat")) ? dust.get("flyLat").toString() :"0"; |
| | | String flyLon1 = Objects.nonNull(dust.get("flyLon")) ? dust.get("flyLon").toString() :"0"; |
| | | double latDouble = Double.parseDouble(flyLat1); |
| | | double lonDouble = Double.parseDouble(flyLon1); |
| | | // String flyLon1 = dust.get("flyLon").toString(); |
| | | if (flyLat1.equals(flyLat) && flyLon1.equals(flyLon)){ |
| | | if (latDouble1==latDouble && lonDouble1==lonDouble){ |
| | | Double dustld = Objects.nonNull(dust.get("dustld"))?Double.parseDouble(dust.get("dustld").toString()):0d; |
| | | |
| | | if (dustld>=0 && dustld<40 ){ |
| | | dustld = dustld + 170; |
| | | } |
| | | if (dustld>=40 && dustld<60 ){ |
| | | }else if (dustld>=40 && dustld<60){ |
| | | dustld = dustld + 130; |
| | | } |
| | | if (dustld>=60 && dustld<100 ){ |
| | | }else if (dustld>=60 && dustld<100 ){ |
| | | dustld = dustld + 110; |
| | | } |
| | | if (dustld>=100 && dustld<150 ){ |
| | | }else if (dustld>=100 && dustld<150){ |
| | | dustld = dustld + 70; |
| | | } |
| | | if (dustld>=150 && dustld<180 ){ |
| | | }else if (dustld>=150 && dustld<180){ |
| | | dustld = dustld + 30; |
| | | } |
| | | doubleArrayList.add(dustld); |