DESKTOP-2K9OVK9\siwei 1 tháng trước cách đây
mục cha
commit
4f2bc113cd

+ 3 - 0
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/service/gdbh/impl/TGdbhGdServiceImpl.java

@@ -238,6 +238,9 @@ public class TGdbhGdServiceImpl implements ITGdbhGdService {
                     if (i > 0 && i + 1 < len) {
                         TGdbhFlightDto dto_hou = flightDtoList.get(i + 1);
                         Double dr_hou = Double.valueOf(tGdbhFlightMapper.stAzimuth(dto.getLongitude(), dto.getLatitude(), dto_hou.getLongitude(), dto_hou.getLatitude()));
+                        if (Math.abs(Double.parseDouble(writeheading) - dr_hou) > 10) {
+                            writeheading = dr_hou.toString();
+                        }
                         Double dr_hou4 = dr_hou;
                         if (i + 5 <= len) {
                             TGdbhFlightDto dto_hou2 = flightDtoList.get(i + 2);