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 516f446d..4572d6e3 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 @@ -160,20 +160,8 @@ public class AmapOrderSyncAdapter implements SupplierOrderSync { dto.setProcessContent(gson.toJson(processContent)); 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("你目前的公司暂不支持使用高德打车"); - } - }); + amapPolicyRepository.findByStandardLevel(routeRequestFields.getStandardLevel()) + .ifPresent(policy -> dto.setRegulationId(policy.getAmapPolicyCode())); // if (routeRequestFields.getAccountCompanyName().equals("浙江正泰物联技术有限公司") || // routeRequestFields.getAccountCompanyName().equals("浙江正泰仪器仪表有限责任公司") ||