Commit 0e8271c9 by lizefeng

fix

parent f592bfd6
...@@ -1106,7 +1106,7 @@ namespace AutoTurnOver.Services ...@@ -1106,7 +1106,7 @@ namespace AutoTurnOver.Services
} }
storageFee._create_date = DateTime.Now; storageFee._create_date = DateTime.Now;
storageFee._update_date = DateTime.Now; storageFee._update_date = DateTime.Now;
storageFee._unique_id = $"{storageFee._date.ToString("yyyy-MM")}-{storageFee.site}-{storageFee.account}-{storageFee.fulfillment_center}-{storageFee.fee_type}"; storageFee._unique_id = $"{storageFee._date.ToString("yyyy-MM-dd")}-{storageFee.site}-{storageFee.account}-{storageFee.fulfillment_center}-{storageFee.fee_type}";
var oldData = MyMySqlConnection._connection.QueryFirstOrDefault<dc_profit_business_amazon_storage_fee>(" select * from dc_profit_business_amazon_storage_fee where _unique_id=@unique_id ", new { unique_id = storageFee._unique_id }); var oldData = MyMySqlConnection._connection.QueryFirstOrDefault<dc_profit_business_amazon_storage_fee>(" select * from dc_profit_business_amazon_storage_fee where _unique_id=@unique_id ", new { unique_id = storageFee._unique_id });
if (oldData != null) if (oldData != null)
{ {
......
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