From ec709c426ead3b869ada82620190f42e0c28fc84 Mon Sep 17 00:00:00 2001 From: liuchengqian Date: Thu, 26 May 2022 18:26:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E7=A0=81=E5=B7=B2=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E7=9A=84=E7=81=AB=E7=82=B9=E4=B8=8D=E5=85=A5=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java b/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java index 66418fa..e8efa0e 100644 --- a/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java +++ b/src/main/java/com/xkrs/service/impl/FirePointServiceImpl.java @@ -95,6 +95,10 @@ public class FirePointServiceImpl implements FirePointService { } else if ("Himawari 8".equals(firePointQo.getSatelliteType()) && "N".equals(firePointQo.getConfidence())) { return null; } else { + FirePointEntity existFireCode = firePointDao.findByFireCode(firePointQo.getFireCode()); + if (existFireCode != null) { + return null; + } firePointEntity.setFireCode(firePointQo.getFireCode()); firePointEntity.setCountyCode(firePointQo.getCountyCode().toString()); firePointEntity.setCountyName(firePointQo.getCountyName());