From 7101588d0765780ce18aff3a380c8f3f29efc472 Mon Sep 17 00:00:00 2001 From: linwei <872216696@qq.com> Date: Wed, 08 Apr 2026 20:18:46 +0800 Subject: [PATCH] opt:优化 --- drone-service/drone-fw/src/main/java/org/sxkj/fw/cockpit/service/impl/CockpitServiceImpl.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drone-service/drone-fw/src/main/java/org/sxkj/fw/cockpit/service/impl/CockpitServiceImpl.java b/drone-service/drone-fw/src/main/java/org/sxkj/fw/cockpit/service/impl/CockpitServiceImpl.java index 7f3ed03..8fbef5c 100644 --- a/drone-service/drone-fw/src/main/java/org/sxkj/fw/cockpit/service/impl/CockpitServiceImpl.java +++ b/drone-service/drone-fw/src/main/java/org/sxkj/fw/cockpit/service/impl/CockpitServiceImpl.java @@ -118,8 +118,8 @@ fwEffectEvalEntity.setDeviceName(device.getDeviceName()); fwEffectEvalEntity.setDeviceModel(device.getDeviceModel()); fwEffectEvalEntity.setDeviceType(device.getDeviceType()); - fwEffectEvalEntity.setDeployLongitude(device.getLongitude() != null ? Double.parseDouble(device.getLongitude()) : null); - fwEffectEvalEntity.setDeployLatitude(device.getLatitude() != null ? Double.parseDouble(device.getLatitude()) : null); + fwEffectEvalEntity.setDeployLongitude(StringUtil.isNotBlank(device.getLongitude()) ? Double.parseDouble(device.getLongitude()) : null); + fwEffectEvalEntity.setDeployLatitude(StringUtil.isNotBlank(device.getLatitude()) ? Double.parseDouble(device.getLatitude()) : null); fwEffectEvalEntity.setAreaCode(device.getAreaCode()); // 反制效果及工作模式(从参数获取,否则使用默认值) -- Gitblit v1.9.3