编码已存在的火点不入库
This commit is contained in:
parent
0306cdeb0c
commit
ec709c426e
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user