Commit 6de783aa by 泽锋 李

fix

parent 9672fe1f
......@@ -27,6 +27,27 @@ namespace AutoGeneratePurchaseAdvise
//PurchaseAdviseServices.Generate($"下午的补充周转 {DateTime.Now.ToString("HH: mm")}", DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 12:00:00")));
//PurchaseAdviseServices.AutoPushBuySys(4);
//{
// PurchaseAdviseServices.AutoPushBuySys(1);
// Console.WriteLine($"开始推送 服装采购建议任务,线程Id:{Thread.CurrentThread.ManagedThreadId},{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
// PurchaseAdviseServices.AutoPushBuySys(2);
// Console.WriteLine($"结束推送 服装采购建议任务,线程Id:{Thread.CurrentThread.ManagedThreadId},{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
// Console.WriteLine($"开始推送 手机采购建议任务,线程Id:{Thread.CurrentThread.ManagedThreadId},{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
// PurchaseAdviseServices.AutoPushBuySys(3);
// Console.WriteLine($"结束推送 手机采购建议任务,线程Id:{Thread.CurrentThread.ManagedThreadId},{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
// Console.WriteLine($"开始推送 义乌无库仓采购建议任务,线程Id:{Thread.CurrentThread.ManagedThreadId},{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
// PurchaseAdviseServices.AutoPushBuySys(6);
// Console.WriteLine($"结束推送 义乌无库仓采购建议任务,线程Id:{Thread.CurrentThread.ManagedThreadId},{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
// Console.WriteLine($"开始推送 独立站采购建议任务,线程Id:{Thread.CurrentThread.ManagedThreadId},{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
// PurchaseAdviseServices.AutoPushBuySys(7);
// Console.WriteLine($"结束推送 独立站采购建议任务,线程Id:{Thread.CurrentThread.ManagedThreadId},{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
//}
}
catch (Exception ex)
{
......
......@@ -1581,7 +1581,7 @@ t1.`count` as quantity_purchase,
from dc_base_purchase as t1
left join dc_base_purchase_inbound t2 on t1.bailun_sku = t2.bailun_sku and t1.parent_id = t2.parent_id
left join dc_base_purchase_details t3 on t1.bailun_sku = t3.bailun_sku and t1.purchase_id = t3.purchase_id
where t1.buy_status in (0, 1, 2, 3, 9)
where t1.buy_status in (0, 1, 2, 3, 7, 9)
and t1.has_delete = 0
and t1.`count` > 0
and (t1.`count` > t2.`count` or t2.`count` is null)
......@@ -1658,7 +1658,7 @@ t1.`count` as quantity_purchase,
from dc_base_purchase as t1
left join dc_base_purchase_inbound t2 on t1.bailun_sku = t2.bailun_sku and t1.parent_id = t2.parent_id
left join dc_base_purchase_details t3 on t1.bailun_sku = t3.bailun_sku and t1.purchase_id = t3.purchase_id
where t1.buy_status in (0, 1, 2, 3, 9)
where t1.buy_status in (0, 1, 2, 3, 7, 9)
and t1.has_delete = 0
and t1.`count` > 0
and (t1.`count` > t2.`count` or t2.`count` is null)
......@@ -1707,7 +1707,7 @@ t1.`count` as quantity_purchase,
from dc_base_purchase as t1
left join dc_base_purchase_inbound t2 on t1.bailun_sku = t2.bailun_sku and t1.parent_id = t2.parent_id
left join dc_base_purchase_details t3 on t1.bailun_sku = t3.bailun_sku and t1.purchase_id = t3.purchase_id
where t1.buy_status in (0, 1, 2, 3, 9)
where t1.buy_status in (0, 1, 2, 3, 7, 9)
and t1.has_delete = 0
and t1.`count` > 0
and (t1.`count` > t2.`count` or t2.`count` is null)
......
......@@ -74,7 +74,7 @@ from dc_base_purchase as t1
";
if (string.IsNullOrWhiteSpace(bailun_sku))
{
sql += @" and t1.buy_status in (0, 1, 2, 3, 9)
sql += @" and t1.buy_status in (0, 1, 2, 3, 7, 9)
and t1.has_delete = 0
and t1.`count` > 0
and (t1.`count` > t2.`count` or t2.`count` is 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