From f0f98c1a8440009e8d607d8c83ed1ef496b4ec75 Mon Sep 17 00:00:00 2001 From: lakefish <3488815871@qq.com> Date: Wed, 16 Mar 2022 13:31:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=86=E5=A4=9A=E5=9C=B0?= =?UTF-8?q?=E5=8C=BA=E7=89=A9=E8=B5=84=E5=88=86=E9=85=8D=E5=8A=9F=E8=83=BD?= =?UTF-8?q?-new2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../peteralbus/controller/FireCenterController.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/main/java/com/peteralbus/controller/FireCenterController.java b/src/main/java/com/peteralbus/controller/FireCenterController.java index c9f0bd0..c7b0c70 100644 --- a/src/main/java/com/peteralbus/controller/FireCenterController.java +++ b/src/main/java/com/peteralbus/controller/FireCenterController.java @@ -45,15 +45,6 @@ public class FireCenterController { } return fireCenterList; } - @RequestMapping("/getFireCenterResult") - public List getFireCenterIntensity(){ - List FireIntensity=new ArrayList<>(); - List fireCenters= fireCenterService.getAllFireCenter();//这里需要获取比较新的火点数据 - for(FireCenter fireCenter:fireCenters){ - FireIntensity.add(estimateController.getPointIntensity(16L, fireCenter.getFireLon(), fireCenter.getFireLat())); - } - return FireIntensity; - } @RequestMapping("/getOneFireCenter") public FireCenter getOneFireCenter(int id){ return fireCenterService.getAllFireCenter().get(id); @@ -63,7 +54,7 @@ public class FireCenterController { List OnePlaceAllFireCenter=getOnePlaceAllFireCenter(earthquakeId); List FireCenterIntensityArr=new ArrayList<>(); for(FireCenter fireCenter:OnePlaceAllFireCenter){ - FireCenterIntensityArr.add(estimateController.getPointIntensity(16L, fireCenter.getFireLon(), fireCenter.getFireLat())); + FireCenterIntensityArr.add(estimateController.getPointIntensity(earthquakeId, fireCenter.getFireLon(), fireCenter.getFireLat())); } int FireCenterIntensityArSize=FireCenterIntensityArr.size(); System.out.print("FireCenterIntensityArSize长度为"+FireCenterIntensityArSize);