From 709dddb52af8853b1a2b2150e01c5bd76d7b2b8c Mon Sep 17 00:00:00 2001 From: lulz1 Date: Wed, 12 Jun 2024 12:55:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=90=8C=E6=AD=A5=E7=9A=84=E8=A1=8C?= =?UTF-8?q?=E7=A8=8B=E8=8A=82=E7=82=B9=E6=9F=A5=E7=9C=8B=E5=92=8C=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E6=97=B6=E5=8A=A0=E5=85=A5=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E8=A7=84=E5=88=99=EF=BC=88=E7=B3=BB=E7=BB=9F=E6=A0=87=E8=AF=86?= =?UTF-8?q?=EF=BC=8C=E5=85=AC=E5=8F=B8=E5=90=8D=EF=BC=8C=E5=B7=AE=E6=A0=87?= =?UTF-8?q?=E7=AE=A1=E6=8E=A7=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../order_sync/AmapOrderSyncAdapter.java | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/main/java/com/chint/domain/service/order_sync/AmapOrderSyncAdapter.java b/src/main/java/com/chint/domain/service/order_sync/AmapOrderSyncAdapter.java index a724f786..dfae6f6f 100644 --- a/src/main/java/com/chint/domain/service/order_sync/AmapOrderSyncAdapter.java +++ b/src/main/java/com/chint/domain/service/order_sync/AmapOrderSyncAdapter.java @@ -161,26 +161,26 @@ public class AmapOrderSyncAdapter implements SupplierOrderSync { dto.setStatus("1"); - Optional supplier = supplierRepository.findBySupplierName(SUPPLIER_AMAP); - supplier.flatMap(Supplier::carSupplierProduct).ifPresent(carSupplierProduct -> { - if (carSupplierProduct.getSupplierProductStandardLevelList() - .stream() - .filter(SupplierProductStandardLevel::inUse) - .map(SupplierProductStandardLevel::getStandardLevelName) - .anyMatch(standardLevel -> standardLevel.equals(routeRequestFields.getStandardLevel()))) { - amapPolicyRepository.findByStandardLevel(routeRequestFields.getStandardLevel()) - .ifPresent(policy -> dto.setRegulationId(policy.getAmapPolicyCode())); - } else { - throw new AuthException("你目前的公司暂不支持使用高德打车"); - } - }); - - if (routeRequestFields.getAccountCompanyName().equals("浙江正泰物联技术有限公司") || - routeRequestFields.getAccountCompanyName().equals("浙江正泰仪器仪表有限责任公司") || - routeRequestFields.getAccountCompanyName().equals("浙江正泰水务科技有限公司") || - routeRequestFields.getAccountCompanyName().equals("山东鲁正电子有限公司")) { - throw new AuthException("你目前的公司暂不支持使用高德打车"); - } +// Optional supplier = supplierRepository.findBySupplierName(SUPPLIER_AMAP); +// supplier.flatMap(Supplier::carSupplierProduct).ifPresent(carSupplierProduct -> { +// if (carSupplierProduct.getSupplierProductStandardLevelList() +// .stream() +// .filter(SupplierProductStandardLevel::inUse) +// .map(SupplierProductStandardLevel::getStandardLevelName) +// .anyMatch(standardLevel -> standardLevel.equals(routeRequestFields.getStandardLevel()))) { +// amapPolicyRepository.findByStandardLevel(routeRequestFields.getStandardLevel()) +// .ifPresent(policy -> dto.setRegulationId(policy.getAmapPolicyCode())); +// } else { +// throw new AuthException("你目前的公司暂不支持使用高德打车"); +// } +// }); +// +// if (routeRequestFields.getAccountCompanyName().equals("浙江正泰物联技术有限公司") || +// routeRequestFields.getAccountCompanyName().equals("浙江正泰仪器仪表有限责任公司") || +// routeRequestFields.getAccountCompanyName().equals("浙江正泰水务科技有限公司") || +// routeRequestFields.getAccountCompanyName().equals("山东鲁正电子有限公司")) { +// throw new AuthException("你目前的公司暂不支持使用高德打车"); +// } return dto; }