Commit 57297e93 by 泽锋 李

8点出建议的时候,清所有历史周转建议

parent c4b898c5
......@@ -592,8 +592,8 @@ and ( t5.`status`=0 or t5.`status` is null ) and t7.sum_quantity_init_advise>0
_connection.Execute(@"update dc_auto_purchase_advise_detailed set `status`=-1 where main_id in (
select id from dc_auto_purchase_advise where buy_sys_plan_no in ('Generate')
)
and `status`=0 and bailun_sku_warehouse_code not in @bailun_sku_warehouse_codes and create_time<@initDate
", new { initDate = initDate,bailun_sku_warehouse_codes = datas1.Select(s=>$"{s.bailun_sku}{s.warehouse_code}")});
and `status`=0 and bailun_sku_warehouse_code not in @bailun_sku_warehouse_codes
", new { bailun_sku_warehouse_codes = datas1.Select(s=>$"{s.bailun_sku}{s.warehouse_code}")});
}
if (datas1 != null && datas1.Count >= 1)
......
using System;
using System.Collections.Generic;
using System.Text;
namespace AutoTurnOver.Models
{
/// <summary>
/// 商品报表
/// </summary>
public class dc_report_goods
{
public int id { get; set; }
public string product_code { get; set; }
public string product_title { get; set; }
public string product_type { get; set; }
public string warehouse_code { get; set; }
public string warehouse_name { get; set; }
public int stock { get; set; }
public int on_the_way_quantity { get; set; }
public decimal unit_price { get; set; }
public decimal weight { get; set; }
public string buyer_name { get; set; }
public decimal sales_amount_usd { get; set; }
public int sales_yesterday { get; set; }
public decimal sales_yesterday_amount_usd { get; set; }
public int sales_yesterday_7 { get; set; }
public decimal sales_yesterday_amount_usd_7 { get; set; }
public int sales_yesterday_30 { get; set; }
public decimal sales_yesterday_amount_usd_30 { get; set; }
}
}
......@@ -32,7 +32,7 @@ namespace AutoTurnOver.Purchase.AverageTarget
//report.ResetTransExpectArrivaltime();
//dc_auto_return_goods_config_dao.NewCalculation();
//PurchaseAverageTargetServices.Calculation("950282301", days: 360);
//PurchaseAverageTargetServices.CalculationTransfer("942517901", 360);
PurchaseAverageTargetServices.CalculationTransfer("942517901", 360);
}
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