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
2750180a
Commit
2750180a
authored
Feb 20, 2021
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购建议新增最新计算时间
parent
57297e93
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
purchase_advise.cs
AutoTurnOver.DB/purchase_advise.cs
+1
-0
dc_auto_purchase_advise.cs
AutoTurnOver.Models/dc_auto_purchase_advise.cs
+1
-0
PurchaseAdviseServices.cs
AutoTurnOver.Services/PurchaseAdviseServices.cs
+2
-1
No files found.
AutoTurnOver.DB/purchase_advise.cs
View file @
2750180a
...
@@ -1779,6 +1779,7 @@ where t1.status=0 ";
...
@@ -1779,6 +1779,7 @@ where t1.status=0 ";
sql
=
@"
sql
=
@"
select
select
t1.*,(case when t2.hq_type='fba仓' then t2.bailun_account else t2.warehouse_name end) as 'warehouse_name',t3.sku_title_cn as 'sku_name',t3.buyer_name,
t1.*,(case when t2.hq_type='fba仓' then t2.bailun_account else t2.warehouse_name end) as 'warehouse_name',t3.sku_title_cn as 'sku_name',t3.buyer_name,
t4.create_time as 'calculation_time',
(t5.quantity_safe_inventory) as 'quantity_safe_inventory', -- 安全库存
(t5.quantity_safe_inventory) as 'quantity_safe_inventory', -- 安全库存
(t5.daily_weighted_sales) as 'daily_weighted_sales', -- 日均加权
(t5.daily_weighted_sales) as 'daily_weighted_sales', -- 日均加权
(t7.quantity_out_stock) as 'realtime_quantity_out_stock', -- 实时缺货
(t7.quantity_out_stock) as 'realtime_quantity_out_stock', -- 实时缺货
...
...
AutoTurnOver.Models/dc_auto_purchase_advise.cs
View file @
2750180a
...
@@ -340,6 +340,7 @@ namespace AutoTurnOver.Models
...
@@ -340,6 +340,7 @@ namespace AutoTurnOver.Models
public
class
dc_auto_purchase_advise_detailed_dto
:
dc_auto_purchase_advise_detailed
public
class
dc_auto_purchase_advise_detailed_dto
:
dc_auto_purchase_advise_detailed
{
{
public
DateTime
calculation_time
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 计算工作日
/// 计算工作日
/// </summary>
/// </summary>
...
...
AutoTurnOver.Services/PurchaseAdviseServices.cs
View file @
2750180a
...
@@ -114,7 +114,7 @@ namespace AutoTurnOver.Services
...
@@ -114,7 +114,7 @@ namespace AutoTurnOver.Services
"内部商品编码"
,
"商品建议采购"
,
"商品14日日均"
,
"商品moq"
,
"日均加权销量"
,
"缺货"
,
"实时缺货"
,
"调拨在途"
,
"调拨单在途"
,
"调拨在途(采购临时数据)"
,
"调拨在途(暂存)"
,
"采购在途"
,
"库存数"
,
"内部商品编码"
,
"商品建议采购"
,
"商品14日日均"
,
"商品moq"
,
"日均加权销量"
,
"缺货"
,
"实时缺货"
,
"调拨在途"
,
"调拨单在途"
,
"调拨在途(采购临时数据)"
,
"调拨在途(暂存)"
,
"采购在途"
,
"库存数"
,
"采购金额"
,
"供应链长度"
,
"供应商名称"
,
"采购类型"
,
"采购员"
,
"突增关注"
,
"待发货百伦单号"
,
"7日日均"
,
"14日日均"
,
"30日日均"
,
"海外仓入库天数"
,
"采购金额"
,
"供应链长度"
,
"供应商名称"
,
"采购类型"
,
"采购员"
,
"突增关注"
,
"待发货百伦单号"
,
"7日日均"
,
"14日日均"
,
"30日日均"
,
"海外仓入库天数"
,
"采购单价"
,
"历史7天日均"
,
"历史14日均"
,
"历史30日均"
,
"加权日均"
,
"安全库存"
,
"今日实际缺货"
,
"供应链累积销量"
,
"供应链到货当天的销量"
"采购单价"
,
"历史7天日均"
,
"历史14日均"
,
"历史30日均"
,
"加权日均"
,
"安全库存"
,
"今日实际缺货"
,
"供应链累积销量"
,
"供应链到货当天的销量"
,
"预测销量"
,
"累积入库数量"
,
"实际库存"
,
"moq"
,
"多备天数"
,
"多备数量"
,
"预测销量配置"
,
"实际推送下单数量"
,
"总下单金额"
,
"转仓来源仓库编码"
,
"转仓来源仓库名称"
,
"仓库类型"
,
"预测销量"
,
"累积入库数量"
,
"实际库存"
,
"moq"
,
"多备天数"
,
"多备数量"
,
"预测销量配置"
,
"实际推送下单数量"
,
"总下单金额"
,
"转仓来源仓库编码"
,
"转仓来源仓库名称"
,
"仓库类型"
,
"最新计算时间"
};
};
foreach
(
var
item
in
cols
)
foreach
(
var
item
in
cols
)
{
{
...
@@ -124,6 +124,7 @@ namespace AutoTurnOver.Services
...
@@ -124,6 +124,7 @@ namespace AutoTurnOver.Services
foreach
(
var
itemData
in
list
)
foreach
(
var
itemData
in
list
)
{
{
DataRow
row
=
table
.
NewRow
();
DataRow
row
=
table
.
NewRow
();
row
[
"最新计算时间"
]
=
itemData
.
calculation_time
;
row
[
"仓库类型"
]
=
itemData
.
hq_type
;
row
[
"仓库类型"
]
=
itemData
.
hq_type
;
row
[
"转仓来源仓库编码"
]
=
itemData
.
transfer_warehouse_from_code
;
row
[
"转仓来源仓库编码"
]
=
itemData
.
transfer_warehouse_from_code
;
row
[
"转仓来源仓库名称"
]
=
itemData
.
transfer_warehouse_from_name
;
row
[
"转仓来源仓库名称"
]
=
itemData
.
transfer_warehouse_from_name
;
...
...
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