Commit 24c0ae61 by lizefeng

fix

parent dce4b572
......@@ -133,7 +133,7 @@ namespace AutoTurnOver.DB
public static void CalculationStockScore(string sku=null)
{
var skus = _connection.Query<dc_report_invest_return_sku>(" select * from dc_report_invest_return_sku ").ToList() ;
var skus = _connection.Query<dc_report_invest_return_sku>(" select * from dc_report_invest_return_sku order by gmt_update_time ").ToList() ;
if (!string.IsNullOrWhiteSpace(sku))
{
skus = skus.Where(s => s.sku == sku).ToList();
......@@ -141,6 +141,8 @@ namespace AutoTurnOver.DB
foreach (var skuItem in skus)
{
CalculationStockScoreSingle(skuItem);
_connection.Execute(" update dc_report_invest_return_sku set gmt_update_time=now() where sku=@sku ",new { sku = skuItem.sku});
}
}
/// <summary>
......
......@@ -48,7 +48,7 @@ namespace ResetOutofstock
// report_invest_return_dao.SynchBtmAdFees();
//report_invest_return_dao.ShareAdFee();
//report_invest_return_dao.SynchBtmOrderRefund();
report_invest_return_dao.CalculationStockScore("961922201");
report_invest_return_dao.CalculationStockScore();
}
catch (Exception ex)
{
......
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