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
6f55591b
Commit
6f55591b
authored
Jul 21, 2021
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
库存和周转表导出,新增一个最近7的订单数量字段
parent
1f1167db
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
2 deletions
+15
-2
dc_auto_turnover.cs
AutoTurnOver.DB/dc_auto_turnover.cs
+2
-0
dc_auto_turnover.cs
AutoTurnOver.Models/dc_auto_turnover.cs
+4
-0
dc_base_stock.cs
AutoTurnOver.Models/dc_base_stock.cs
+5
-0
DailyServices.cs
AutoTurnOver.Services/DailyServices.cs
+2
-1
SkuAutoTurnServices.cs
AutoTurnOver.Services/SkuAutoTurnServices.cs
+2
-1
No files found.
AutoTurnOver.DB/dc_auto_turnover.cs
View file @
6f55591b
...
@@ -82,6 +82,8 @@ t13.quantity_transfer_temporary_storage as 'quantity_transfer_temporary_storage'
...
@@ -82,6 +82,8 @@ t13.quantity_transfer_temporary_storage as 'quantity_transfer_temporary_storage'
-- dat.quantity_final_advise - t17.stock - ifnull(t13.quantity_purchase,0) - ifnull(t13.quantity_transfer_temp_schedule,0) - ifnull(t13.quantity_transfer_temporary_storage,0) as 'storage_capacity_lack_quantity',
-- dat.quantity_final_advise - t17.stock - ifnull(t13.quantity_purchase,0) - ifnull(t13.quantity_transfer_temp_schedule,0) - ifnull(t13.quantity_transfer_temporary_storage,0) as 'storage_capacity_lack_quantity',
-- t17.stock as 'storage_capacity',
-- t17.stock as 'storage_capacity',
t4.orders_7,
t13.quantity_land_purchase as 'quantity_land_purchase',
t13.quantity_land_purchase as 'quantity_land_purchase',
t13.quantity_ocean_purchase as 'quantity_ocean_purchase',
t13.quantity_ocean_purchase as 'quantity_ocean_purchase',
t13.quantity_air_purchase as 'quantity_air_purchase',
t13.quantity_air_purchase as 'quantity_air_purchase',
...
...
AutoTurnOver.Models/dc_auto_turnover.cs
View file @
6f55591b
...
@@ -798,6 +798,10 @@ namespace AutoTurnOver.Models
...
@@ -798,6 +798,10 @@ namespace AutoTurnOver.Models
public
class
dc_auto_turnover_list_dto
public
class
dc_auto_turnover_list_dto
{
{
/// <summary>
/// <summary>
/// 最近7天的订单数量
/// </summary>
public
int
?
orders_7
{
get
;
set
;
}
/// <summary>
/// 预测日均销量
/// 预测日均销量
/// </summary>
/// </summary>
public
decimal
forecast_average_day
public
decimal
forecast_average_day
...
...
AutoTurnOver.Models/dc_base_stock.cs
View file @
6f55591b
...
@@ -15,6 +15,11 @@ namespace AutoTurnOver.Models
...
@@ -15,6 +15,11 @@ namespace AutoTurnOver.Models
public
int
id
{
get
;
set
;
}
public
int
id
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 最近7天的订单数量
/// </summary>
public
int
?
orders_7
{
get
;
set
;
}
/// <summary>
/// 商品编号
/// 商品编号
/// </summary>
/// </summary>
[
Description
(
@"商品编号"
)]
[
Description
(
@"商品编号"
)]
...
...
AutoTurnOver.Services/DailyServices.cs
View file @
6f55591b
...
@@ -293,7 +293,7 @@ namespace AutoTurnOver.Services
...
@@ -293,7 +293,7 @@ namespace AutoTurnOver.Services
"调拨最快到货时间"
,
"调拨最快到货单号"
,
"调拨最快到货数量"
,
"调拨最快到货跟踪号"
,
"调拨最快到货运输方式"
,
"调拨最快到到货物流"
,
"周转表更新时间"
,
"调拨最快到货时间"
,
"调拨最快到货单号"
,
"调拨最快到货数量"
,
"调拨最快到货跟踪号"
,
"调拨最快到货运输方式"
,
"调拨最快到到货物流"
,
"周转表更新时间"
,
"供应链长度天数"
,
"供应链预测销量"
,
"供应链预测缺货"
,
"供应链预测冗余"
,
"walmart最近7天日均销量"
,
"walmart最近14天日均销量"
,
"walmart最近30天日均销量"
,
"库存更新时间"
,
"供应链长度天数"
,
"供应链预测销量"
,
"供应链预测缺货"
,
"供应链预测冗余"
,
"walmart最近7天日均销量"
,
"walmart最近14天日均销量"
,
"walmart最近30天日均销量"
,
"库存更新时间"
,
"在库+调拨单在途数量"
,
"在库+调拨单在途金额"
,
"在库+在途金额(总)"
,
"产品线"
,
"在库+调拨单在途数量"
,
"在库+调拨单在途金额"
,
"在库+在途金额(总)"
,
"产品线"
,
"头程费/一个单位"
,
"头程费/kg"
,
"产品特性"
"头程费/一个单位"
,
"头程费/kg"
,
"产品特性"
,
"最近7天的订单数量"
};
};
foreach
(
var
item
in
cols
)
foreach
(
var
item
in
cols
)
{
{
...
@@ -305,6 +305,7 @@ namespace AutoTurnOver.Services
...
@@ -305,6 +305,7 @@ namespace AutoTurnOver.Services
DataRow
row
=
table
.
NewRow
();
DataRow
row
=
table
.
NewRow
();
row
[
"产品特性"
]
=
itemData
.
character_names
==
null
?
""
:
itemData
.
character_names
.
Replace
(
","
,
" | "
);
row
[
"产品特性"
]
=
itemData
.
character_names
==
null
?
""
:
itemData
.
character_names
.
Replace
(
","
,
" | "
);
row
[
"头程费/一个单位"
]
=
itemData
.
cost_first
;
row
[
"头程费/一个单位"
]
=
itemData
.
cost_first
;
row
[
"最近7天的订单数量"
]
=
itemData
.
orders_7
;
row
[
"头程费/kg"
]
=
itemData
.
cost_first_weight
;
row
[
"头程费/kg"
]
=
itemData
.
cost_first_weight
;
row
[
"产品线"
]
=
itemData
.
product_line_name
;
row
[
"产品线"
]
=
itemData
.
product_line_name
;
row
[
"在库+调拨单在途数量"
]
=
itemData
.
sum_actual_transfer_stock
;
row
[
"在库+调拨单在途数量"
]
=
itemData
.
sum_actual_transfer_stock
;
...
...
AutoTurnOver.Services/SkuAutoTurnServices.cs
View file @
6f55591b
...
@@ -321,7 +321,7 @@ namespace AutoTurnOver.Services
...
@@ -321,7 +321,7 @@ namespace AutoTurnOver.Services
"日均出单次数"
,
"首次出单日期"
,
"首次出单订单号"
,
"日均出单次数"
,
"首次出单日期"
,
"首次出单订单号"
,
"备货数量"
,
"产品类型"
,
"头程平均值取值来源"
,
"Walmart最近7天日均销量"
,
"Walmart最近14天日均销量"
,
"Walmart最近30天日均销量"
,
"备货数量"
,
"产品类型"
,
"头程平均值取值来源"
,
"Walmart最近7天日均销量"
,
"Walmart最近14天日均销量"
,
"Walmart最近30天日均销量"
,
"平均交期"
,
"配置交期"
,
"平均交期"
,
"配置交期"
,
"库存可用天数"
,
"库存可用日期"
,
"库存+在途可用天数"
,
"库存+在途可用日期"
,
"在途+库存可卖天数总目标销量"
,
"供应链长度总目标销量"
"库存可用天数"
,
"库存可用日期"
,
"库存+在途可用天数"
,
"库存+在途可用日期"
,
"在途+库存可卖天数总目标销量"
,
"供应链长度总目标销量"
,
"最近7天的备货数量"
};
};
foreach
(
var
item
in
cols
)
foreach
(
var
item
in
cols
)
{
{
...
@@ -331,6 +331,7 @@ namespace AutoTurnOver.Services
...
@@ -331,6 +331,7 @@ namespace AutoTurnOver.Services
foreach
(
var
itemData
in
list
)
foreach
(
var
itemData
in
list
)
{
{
DataRow
row
=
table
.
NewRow
();
DataRow
row
=
table
.
NewRow
();
row
[
"最近7天的备货数量"
]
=
itemData
.
orders_7
;
row
[
"在途+库存可卖天数总目标销量"
]
=
itemData
.
full_stock_use_days_turnover_sales
;
row
[
"在途+库存可卖天数总目标销量"
]
=
itemData
.
full_stock_use_days_turnover_sales
;
row
[
"供应链长度总目标销量"
]
=
itemData
.
turnover_days_config_turnover_sales
;
row
[
"供应链长度总目标销量"
]
=
itemData
.
turnover_days_config_turnover_sales
;
row
[
"库存可用天数"
]
=
itemData
.
stock_use_days
;
row
[
"库存可用天数"
]
=
itemData
.
stock_use_days
;
...
...
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