Commit 8868b97e by guotao

调整fba实时库存与多国库存的关联字段

parent 3f660616
......@@ -1472,7 +1472,7 @@ namespace AutoTurnOver.Services
fbanIventory.site = "UK";
}
fbanIventory.unique_id = $"{fbanIventory.account}-{fbanIventory.marketplaceId}-{fbanIventory.seller_sku}-{fbanIventory.warehouse_condition_code}";
fbanIventory.data_id = $"{fbanIventory.account}-{fbanIventory.marketplaceId}-{fbanIventory.seller_sku}";
fbanIventory.data_id = $"{fbanIventory.account}-{fbanIventory.fulfillment_channel_sku}";
fbanIventory.id = MyMySqlConnection._connection.QueryFirstOrDefault<int?>(" select id from dc_fba_inventory_realtime where unique_id=@unique_id ", new { unique_id = fbanIventory.unique_id }) ?? 0;
if (fbanIventory.id > 0)
{
......@@ -1587,7 +1587,7 @@ namespace AutoTurnOver.Services
fbanIventory.site = "UK";
}
fbanIventory.unique_id = $"{fbanIventory.account}-{fbanIventory.marketplaceId}-{fbanIventory.seller_sku}-{fbanIventory.country}";
fbanIventory.data_id = $"{fbanIventory.account}-{fbanIventory.marketplaceId}-{fbanIventory.seller_sku}";
fbanIventory.data_id = $"{fbanIventory.account}-{fbanIventory.fulfillment_channel_sku}";
fbanIventory.id = MyMySqlConnection._connection.QueryFirstOrDefault<int?>(" select id from dc_fba_inventory_realtime_country where unique_id=@unique_id ", new { unique_id = fbanIventory.unique_id }) ?? 0;
if (fbanIventory.id > 0)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment