From b2f2adab687a8d5d49fcc479f4857ec303e4b9f0 Mon Sep 17 00:00:00 2001 From: kaiyu <404897439@qq.com> Date: Tue, 15 Mar 2022 10:35:08 +0800 Subject: [PATCH] screen-api 判断优良天非空 --- screen-api/src/main/java/com/moral/api/service/impl/HistoryHourlyServiceImpl.java | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/screen-api/src/main/java/com/moral/api/service/impl/HistoryHourlyServiceImpl.java b/screen-api/src/main/java/com/moral/api/service/impl/HistoryHourlyServiceImpl.java index 054382b..63879e6 100644 --- a/screen-api/src/main/java/com/moral/api/service/impl/HistoryHourlyServiceImpl.java +++ b/screen-api/src/main/java/com/moral/api/service/impl/HistoryHourlyServiceImpl.java @@ -481,6 +481,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(); @@ -652,6 +655,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