Commit d747ce0d by guotao

fix

parent 3692da27
...@@ -1472,8 +1472,8 @@ namespace AutoTurnOver.Services ...@@ -1472,8 +1472,8 @@ namespace AutoTurnOver.Services
{ {
fbanIventory.site = "UK"; fbanIventory.site = "UK";
} }
fbanIventory.unique_id = $"{fbanIventory.account}-{fbanIventory.marketplaceId}-{fbanIventory.seller_sku}-{fbanIventory.warehouse_condition_code}"; fbanIventory.unique_id = $"{fbanIventory.account_id}-{fbanIventory.marketplaceId}-{fbanIventory.seller_sku}-{fbanIventory.warehouse_condition_code}";
fbanIventory.data_id = $"{fbanIventory.account}-{fbanIventory.fulfillment_channel_sku}"; fbanIventory.data_id = $"{fbanIventory.account_id}-{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; 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) if (fbanIventory.id > 0)
{ {
...@@ -1588,8 +1588,8 @@ namespace AutoTurnOver.Services ...@@ -1588,8 +1588,8 @@ namespace AutoTurnOver.Services
{ {
fbanIventory.site = "UK"; fbanIventory.site = "UK";
} }
fbanIventory.unique_id = $"{fbanIventory.account}-{fbanIventory.seller_sku}-{fbanIventory.country}"; fbanIventory.unique_id = $"{fbanIventory.account_id}-{fbanIventory.seller_sku}-{fbanIventory.country}";
fbanIventory.data_id = $"{fbanIventory.account}-{fbanIventory.fulfillment_channel_sku}"; fbanIventory.data_id = $"{fbanIventory.account_id}-{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; 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) 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