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
d11ac851
Commit
d11ac851
authored
Jul 21, 2021
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
bad296c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Program.cs
AutoGeneratePurchaseAdvise/Program.cs
+1
-1
purchase_advise.cs
AutoTurnOver.DB/purchase_advise.cs
+3
-1
No files found.
AutoGeneratePurchaseAdvise/Program.cs
View file @
d11ac851
...
...
@@ -22,7 +22,7 @@ namespace AutoGeneratePurchaseAdvise
try
{
//PurchaseAdviseServices.AutoPushBuySys(4) ;
//
PurchaseAdviseServices.Generate($"早上的全量周转 {DateTime.Now.ToString("HH: mm")}", DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00")), is_clear_data: true);
PurchaseAdviseServices
.
Generate
(
$"早上的全量周转
{
DateTime
.
Now
.
ToString
(
"HH: mm"
)}
"
,
DateTime
.
Parse
(
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd 00:00:00"
)),
is_clear_data
:
true
);
//PurchaseAdviseServices.Generate($"下午的补充周转 {DateTime.Now.ToString("HH: mm")}", DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 12:00:00")));
}
catch
(
Exception
ex
)
...
...
AutoTurnOver.DB/purchase_advise.cs
View file @
d11ac851
...
...
@@ -513,7 +513,8 @@ t1.first_order_bailun_order_id as 'first_order_bailun_order_id',
t1.daily_weighted_sales as 'fixed_daily_weighted_sales',
t1.quantity_out_stock as 'fixed_quantity_out_stock',
t10.area_id as 'area_id',
t10.hq_type as 'w_hq_type'
t10.hq_type as 'w_hq_type',
t11.orders_7
from (select * from dc_auto_turnover where gmt_modified>=@btime ) as t1
left join dc_auto_sales as t2 on t1.bailun_sku = t2.bailun_sku and t1.warehouse_code = t2.warehouse_code
left join dc_auto_config_sku_warehouse as t5 on t1.bailun_sku = t5.bailun_sku and t1.warehouse_code = t5.warehouse_code
...
...
@@ -523,6 +524,7 @@ t10.hq_type as 'w_hq_type'
left join dc_auto_replace_logistics_task as tr_task on t1.auto_replace_logistics_task_id = tr_task.id
left join dc_mid_transit as t9 on t1.bailun_sku = t9.bailun_sku and t1.warehouse_code = t9.warehouse_code
left join dc_base_warehouse t10 on t1.warehouse_code = t10.warehouse_code
left join dc_base_stock t11 on t1.warehouse_code = t11.warehouse_code t1.bailun_sku = t11.bailun_sku and
where 1=1
and ( (
t6.`status`=2
...
...
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