fix: 修复用车制度的bug
This commit is contained in:
parent
84b648c0f9
commit
3d923487db
|
@ -161,20 +161,20 @@ public class AmapOrderSyncAdapter implements SupplierOrderSync {
|
||||||
dto.setStatus("1");
|
dto.setStatus("1");
|
||||||
|
|
||||||
|
|
||||||
// Optional<Supplier> supplier = supplierRepository.findBySupplierName(SUPPLIER_AMAP);
|
Optional<Supplier> supplier = supplierRepository.findBySupplierName(SUPPLIER_AMAP);
|
||||||
// supplier.flatMap(Supplier::carSupplierProduct).ifPresent(carSupplierProduct -> {
|
supplier.flatMap(Supplier::carSupplierProduct).ifPresent(carSupplierProduct -> {
|
||||||
// if (carSupplierProduct.getSupplierProductStandardLevelList()
|
if (carSupplierProduct.getSupplierProductStandardLevelList()
|
||||||
// .stream()
|
.stream()
|
||||||
// .filter(SupplierProductStandardLevel::inUse)
|
.filter(SupplierProductStandardLevel::inUse)
|
||||||
// .map(SupplierProductStandardLevel::getStandardLevelName)
|
.map(SupplierProductStandardLevel::getStandardLevelName)
|
||||||
// .anyMatch(standardLevel -> standardLevel.equals(routeRequestFields.getStandardLevel()))) {
|
.anyMatch(standardLevel -> standardLevel.equals(routeRequestFields.getStandardLevel()))) {
|
||||||
// amapPolicyRepository.findByStandardLevel(routeRequestFields.getStandardLevel())
|
amapPolicyRepository.findByStandardLevel(routeRequestFields.getStandardLevel())
|
||||||
// .ifPresent(policy -> dto.setRegulationId(policy.getAmapPolicyCode()));
|
.ifPresent(policy -> dto.setRegulationId(policy.getAmapPolicyCode()));
|
||||||
// } else {
|
} else {
|
||||||
// throw new AuthException("你目前的公司暂不支持使用高德打车");
|
throw new AuthException("你目前的公司暂不支持使用高德打车");
|
||||||
// }
|
}
|
||||||
// });
|
});
|
||||||
//
|
|
||||||
// if (routeRequestFields.getAccountCompanyName().equals("浙江正泰物联技术有限公司") ||
|
// if (routeRequestFields.getAccountCompanyName().equals("浙江正泰物联技术有限公司") ||
|
||||||
// routeRequestFields.getAccountCompanyName().equals("浙江正泰仪器仪表有限责任公司") ||
|
// routeRequestFields.getAccountCompanyName().equals("浙江正泰仪器仪表有限责任公司") ||
|
||||||
// routeRequestFields.getAccountCompanyName().equals("浙江正泰水务科技有限公司") ||
|
// routeRequestFields.getAccountCompanyName().equals("浙江正泰水务科技有限公司") ||
|
||||||
|
|
Loading…
Reference in New Issue