Commit 3692da27 by guotao

fix

parent 26ab524f
......@@ -1580,7 +1580,7 @@ namespace AutoTurnOver.Services
last_update_date = DateTime.Now,
quantity_for_local_fulfillment = row.DataRowToNumber("quantity-for-local-fulfillment") ?? 0,
country = row.DataRowToString("country"),
site = MarketPlace.GetMarketplaceById(reportData.MarketplaceIds[0]).Country.Code
site = row.DataRowToString("country")
};
......@@ -1588,7 +1588,7 @@ namespace AutoTurnOver.Services
{
fbanIventory.site = "UK";
}
fbanIventory.unique_id = $"{fbanIventory.account}-{fbanIventory.marketplaceId}-{fbanIventory.seller_sku}-{fbanIventory.country}";
fbanIventory.unique_id = $"{fbanIventory.account}-{fbanIventory.seller_sku}-{fbanIventory.country}";
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