修复同程机场数据同步问题

This commit is contained in:
lulz1 2024-03-24 18:06:34 +08:00
parent 0ac6e67fd8
commit 9629a8ffea
1 changed files with 2 additions and 2 deletions

View File

@ -217,9 +217,9 @@ public class LYOrderSyncAdapter implements SupplierOrderSync {
private Location getCityLocation(Location location) {
if (location.getLevel().equals(LOCATION_TYPE_CITY)) {
if (location.getLocationType().equals(LOCATION_TYPE_CITY)) {
return location;
} else if (location.getLevel().equals(LOCATION_LEVEL_COUNTY)) {
} else if (location.getLocationType().equals(LOCATION_LEVEL_COUNTY) || location.getLocationType().equals(LOCATION_TYPE_DISTRICT)) {
return locationRepository.findById(location.getParentLocationId());
} else if (location.getLocationType().equals(LOCATION_TYPE_AIRPORT)) {
//如果是机场的话要查询出对应的地级市