编码已存在的火点不入库

This commit is contained in:
liuchengqian 2022-05-26 18:26:40 +08:00
parent 0306cdeb0c
commit ec709c426e

View File

@ -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());