更新了多地区物资分配功能-new2

main
lakefish 3 years ago
parent 45d63086bc
commit f0f98c1a84

@ -45,15 +45,6 @@ public class FireCenterController {
} }
return fireCenterList; return fireCenterList;
} }
@RequestMapping("/getFireCenterResult")
public List<Double> getFireCenterIntensity(){
List<Double> FireIntensity=new ArrayList<>();
List<FireCenter> fireCenters= fireCenterService.getAllFireCenter();//这里需要获取比较新的火点数据
for(FireCenter fireCenter:fireCenters){
FireIntensity.add(estimateController.getPointIntensity(16L, fireCenter.getFireLon(), fireCenter.getFireLat()));
}
return FireIntensity;
}
@RequestMapping("/getOneFireCenter") @RequestMapping("/getOneFireCenter")
public FireCenter getOneFireCenter(int id){ public FireCenter getOneFireCenter(int id){
return fireCenterService.getAllFireCenter().get(id); return fireCenterService.getAllFireCenter().get(id);
@ -63,7 +54,7 @@ public class FireCenterController {
List<FireCenter> OnePlaceAllFireCenter=getOnePlaceAllFireCenter(earthquakeId); List<FireCenter> OnePlaceAllFireCenter=getOnePlaceAllFireCenter(earthquakeId);
List<Double> FireCenterIntensityArr=new ArrayList<>(); List<Double> FireCenterIntensityArr=new ArrayList<>();
for(FireCenter fireCenter:OnePlaceAllFireCenter){ 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(); int FireCenterIntensityArSize=FireCenterIntensityArr.size();
System.out.print("FireCenterIntensityArSize长度为"+FireCenterIntensityArSize); System.out.print("FireCenterIntensityArSize长度为"+FireCenterIntensityArSize);

Loading…
Cancel
Save