Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-center-auto
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
data-center-auto
Commits
6de783aa
Commit
6de783aa
authored
Jun 07, 2021
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
9672fe1f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
4 deletions
+25
-4
Program.cs
AutoGeneratePurchaseAdvise/Program.cs
+21
-0
daily.cs
AutoTurnOver.DB/daily.cs
+3
-3
dc_base_full_link_wait_order_dao.cs
AutoTurnOver.DB/dc_base_full_link_wait_order_dao.cs
+1
-1
No files found.
AutoGeneratePurchaseAdvise/Program.cs
View file @
6de783aa
...
...
@@ -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
)
{
...
...
AutoTurnOver.DB/daily.cs
View file @
6de783aa
...
...
@@ -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)
...
...
AutoTurnOver.DB/dc_base_full_link_wait_order_dao.cs
View file @
6de783aa
...
...
@@ -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) "
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment