Split underscores in order IDs when creating shopify sync maps

pull/8040/head
Qiuyi LI 2024-12-26 16:07:57 +01:00
parent dadf30e767
commit 229263acb9
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ public class ShopifySyncJob implements Job {
mapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
List<PlatformOrderShopSync> ordersReadyForShopifySync = platformOrderService.fetchOrderInShopsReadyForShopifySync(shops);
Map<String, PlatformOrderShopSync> syncMap = ordersReadyForShopifySync.stream()
.collect(toMap(PlatformOrderShopSync::getPlatformOrderId, Function.identity()));
.collect(toMap(sync -> sync.getPlatformOrderId().split("_")[0], Function.identity()));
List<FulfillmentOrder> fulfillmentOrders = new ArrayList<>();