修复同程机场数据同步问题
This commit is contained in:
parent
0ac6e67fd8
commit
9629a8ffea
|
@ -217,9 +217,9 @@ public class LYOrderSyncAdapter implements SupplierOrderSync {
|
||||||
|
|
||||||
|
|
||||||
private Location getCityLocation(Location location) {
|
private Location getCityLocation(Location location) {
|
||||||
if (location.getLevel().equals(LOCATION_TYPE_CITY)) {
|
if (location.getLocationType().equals(LOCATION_TYPE_CITY)) {
|
||||||
return location;
|
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());
|
return locationRepository.findById(location.getParentLocationId());
|
||||||
} else if (location.getLocationType().equals(LOCATION_TYPE_AIRPORT)) {
|
} else if (location.getLocationType().equals(LOCATION_TYPE_AIRPORT)) {
|
||||||
//如果是机场的话,要查询出对应的地级市
|
//如果是机场的话,要查询出对应的地级市
|
||||||
|
|
Loading…
Reference in New Issue