| | |
| | | Map<String, Object> data = JSON.parseObject(g.getValue(), Map.class); |
| | | Map<String, Object> dataResult = new HashMap<>(); |
| | | dataResult = data; |
| | | int a21026D =(int) Math.round(Double.parseDouble(data.get("a21026").toString())); |
| | | if(a21026D>11){ |
| | | |
| | | Double a34004 = Double.parseDouble(data.get("a34004").toString()); |
| | | Double a34002 = Double.parseDouble(data.get("a34002").toString()); |
| | | dataResult.put("a34002",Double.parseDouble(String.format("%.4f",a34004))); |
| | | dataResult.put("a34004",Double.parseDouble(String.format("%.4f",a34002))); |
| | | |
| | | /* if(a21026D>11){ |
| | | // Integer digit = a21026D % 10; |
| | | Integer digit = new Random().nextInt(5)+8; |
| | | dataResult.put("a21026",Double.parseDouble(digit.toString())); |
| | | }else { |
| | | continue; |
| | | } |
| | | }*/ |
| | | historySecondUav.setId(g.getId()); |
| | | historySecondUav.setValue(JSONObject.toJSONString(dataResult)); |
| | | list.add(historySecondUav); |