From 181b934f1a97bc5cb05e1848fb82022d3e197141 Mon Sep 17 00:00:00 2001
From: jinpengyong <jpy123456>
Date: Thu, 08 Sep 2022 15:28:55 +0800
Subject: [PATCH] 处理无人机因子不存在的bug

---
 screen-api/src/main/java/com/moral/api/service/impl/HistoryMonthlyServiceImpl.java |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/screen-api/src/main/java/com/moral/api/service/impl/HistoryMonthlyServiceImpl.java b/screen-api/src/main/java/com/moral/api/service/impl/HistoryMonthlyServiceImpl.java
index 76ed6f6..c2d9206 100644
--- a/screen-api/src/main/java/com/moral/api/service/impl/HistoryMonthlyServiceImpl.java
+++ b/screen-api/src/main/java/com/moral/api/service/impl/HistoryMonthlyServiceImpl.java
@@ -245,6 +245,9 @@
             boundary_point_one.add(Double.parseDouble(boundary_point_one_array[1]));
             boundary_pointList.add(boundary_point_one);
         }
+        if (boundary_pointList.size()>0){
+            boundary_pointList.add(boundary_pointList.get(0));
+        }
         bound.add(boundary_pointList);
         resultMap.put("bound", bound);
         List centerPoint = new ArrayList();
@@ -418,6 +421,9 @@
             boundary_point_one.add(Double.parseDouble(boundary_point_one_array[1]));
             boundary_pointList.add(boundary_point_one);
         }
+        if (boundary_pointList.size()>0){
+            boundary_pointList.add(boundary_pointList.get(0));
+        }
         bound.add(boundary_pointList);
         List centerPoint = new ArrayList();
         centerPoint.add(servicesScope.getCenterLongitude());

--
Gitblit v1.8.0