Commit 4782cddf by lizefeng

计算订单缺货明细的时候,忽略非百伦订单

parent cf38a356
......@@ -12,12 +12,7 @@ namespace AutoGeneratePurchaseAdvise
static async Task Main(string[] args)
{
Console.WriteLine("采购建议计算任务启动...");
//PurchaseAdviseServices.AutoPushBuySys(1);
//PurchaseAdviseServices.Generate();
//PurchaseAdviseServices.Generate();
//PurchaseAdviseServices.AutoPushBuySys(5);
// 创建采购计划
// PurchaseAdviseServices.AutoPushBuySys(1);
PurchaseAdviseServices.AutoPushBuySys(4);
var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
{
services.AddHostedService<GeneratePurchaseAdviseBackgroundService>();
......
......@@ -926,7 +926,7 @@ INSERT into dc_base_oms_sku_outofstock_temp (
from dc_base_oms_sku as t1
left join dc_base_warehouse as t_db on t1.warehouse_code = t_db.warehouse_code
left join dc_base_sku as t6 on t1.bailun_sku = t6.bailun_sku
where t1.has_innersale=0 and t1.create_time>'2019-03-01 12:00:00' and t1.bailun_picking_status!='TotalPicked' and t1.bailun_order_status = 'Handling' and t1.has_delete=0 and t1.has_scalp=0 and t1.bailun_interception_status not in ('Success','Part') and t1.platform_type!='FBA'
where t1.company_id=1 and t1.has_innersale=0 and t1.create_time>'2019-03-01 12:00:00' and t1.bailun_picking_status!='TotalPicked' and t1.bailun_order_status = 'Handling' and t1.has_delete=0 and t1.has_scalp=0 and t1.bailun_interception_status not in ('Success','Part') and t1.platform_type!='FBA'
);
alter table dc_base_oms_sku_outofstock rename dc_base_oms_sku_outofstockTemp;
......
......@@ -183,7 +183,6 @@ namespace AutoTurnOver.Services
}
/// <summary>
/// 自动推送采购单
/// </summary>
......
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