From 9629a8ffeadd57c23a9548a85b1450846dfe287e Mon Sep 17 00:00:00 2001 From: lulz1 Date: Sun, 24 Mar 2024 18:06:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8C=E7=A8=8B=E6=9C=BA?= =?UTF-8?q?=E5=9C=BA=E6=95=B0=E6=8D=AE=E5=90=8C=E6=AD=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chint/domain/service/order_sync/LYOrderSyncAdapter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/chint/domain/service/order_sync/LYOrderSyncAdapter.java b/src/main/java/com/chint/domain/service/order_sync/LYOrderSyncAdapter.java index eb92f273..4093bcdb 100644 --- a/src/main/java/com/chint/domain/service/order_sync/LYOrderSyncAdapter.java +++ b/src/main/java/com/chint/domain/service/order_sync/LYOrderSyncAdapter.java @@ -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)) { //如果是机场的话,要查询出对应的地级市