Commit 3f660616 by guotao

新增 fba 实时库存与 多国库存的关联

parent d325770f
......@@ -17,6 +17,7 @@ namespace AutoTurnOver.Models
public string warehouse_condition_code { get; set; }
public decimal quantity_available { get; set; }
public string unique_id { get; set; }
public string data_id { get; set; }
public DateTime last_update_date { get; set; }
public string account { get; set; }
public string site { get; set; }
......@@ -35,6 +36,7 @@ namespace AutoTurnOver.Models
public string country { get; set; }
public decimal quantity_for_local_fulfillment { get; set; }
public string unique_id { get; set; }
public string data_id { get; set; }
public DateTime last_update_date { get; set; }
public string account { get; set; }
public string site { get; set; }
......
......@@ -1472,6 +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.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)
{
......@@ -1586,6 +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.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