优化匹配接口空指针异常

This commit is contained in:
2025-11-16 10:49:57 +08:00
parent 0e7cbd435a
commit ece1bd56f4
@@ -345,7 +345,7 @@ public class AddressParserServiceImpl implements AddressParserService {
district = districtService.findById(district.getId(), MATCH_PROPERTY_FIELDS);
}
if(district == null){
logger.error("未找到匹配的CPDB数据:" + addr + "ID:" + district.getId());
logger.error("未找到匹配的CPDB数据:" + addr + "ID:" + matchedMate.getId());
}
return new Building(district, scoreResult.getScore(matchedMate));
}else{