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
9afdccf2
Commit
9afdccf2
authored
May 13, 2022
by
zhoujinhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增sku供应商货号字段
parent
94c55653
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
4 deletions
+23
-4
daily.cs
AutoTurnOver.DB/daily.cs
+7
-1
dc_auto_turnover.cs
AutoTurnOver.DB/dc_auto_turnover.cs
+2
-1
dc_auto_turnover.cs
AutoTurnOver.Models/dc_auto_turnover.cs
+5
-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/daily.cs
View file @
9afdccf2
...
@@ -486,7 +486,8 @@ t6.gmt_modified as 'turnover_gmt_modified',
...
@@ -486,7 +486,8 @@ t6.gmt_modified as 'turnover_gmt_modified',
t3.product_line_name as 'product_line_name',
t3.product_line_name as 'product_line_name',
t_cost_first.cost_first as 'cost_first',
t_cost_first.cost_first as 'cost_first',
t6.orders_avg
t6.orders_avg,
t3.article_number as sku_article_number
from
from
dc_base_stock as t1
dc_base_stock as t1
...
@@ -651,6 +652,11 @@ left join dc_base_warehouse as dbw on t1.warehouse_code = dbw.warehouse_code
...
@@ -651,6 +652,11 @@ left join dc_base_warehouse as dbw on t1.warehouse_code = dbw.warehouse_code
countSql
+=
" and t1.product_inner_code = @product_inner_code "
;
countSql
+=
" and t1.product_inner_code = @product_inner_code "
;
parameters
.
Add
(
"product_inner_code"
,
$"
{
search_data
.
key_words
}
"
);
parameters
.
Add
(
"product_inner_code"
,
$"
{
search_data
.
key_words
}
"
);
break
;
break
;
case
6
:
sql
+=
" and t3.article_number = @article_number "
;
countSql
+=
" and t3.article_number = @article_number "
;
parameters
.
Add
(
"article_number"
,
$"
{
search_data
.
key_words
}
"
);
break
;
}
}
}
}
...
...
AutoTurnOver.DB/dc_auto_turnover.cs
View file @
9afdccf2
...
@@ -98,7 +98,8 @@ t4.`status` as 'sku_status' ,
...
@@ -98,7 +98,8 @@ t4.`status` as 'sku_status' ,
-- t11.label as 'sku_label'
-- t11.label as 'sku_label'
-- ,t10.`name` as 'group_name',
-- ,t10.`name` as 'group_name',
t18.site_sku as fba_site_sku,
t18.site_sku as fba_site_sku,
t18.category_label as fba_category_label
t18.category_label as fba_category_label,
t4.article_number as sku_article_number
from dc_auto_turnover as dat
from dc_auto_turnover as dat
...
...
AutoTurnOver.Models/dc_auto_turnover.cs
View file @
9afdccf2
...
@@ -1450,5 +1450,10 @@ namespace AutoTurnOver.Models
...
@@ -1450,5 +1450,10 @@ namespace AutoTurnOver.Models
/// fba 分类标签
/// fba 分类标签
/// </summary>
/// </summary>
public
string
fba_category_label
{
get
;
set
;
}
public
string
fba_category_label
{
get
;
set
;
}
/// <summary>
/// sku供应商货号
/// </summary>
public
string
sku_article_number
{
get
;
set
;
}
}
}
}
}
AutoTurnOver.Models/dc_base_stock.cs
View file @
9afdccf2
...
@@ -648,6 +648,11 @@ namespace AutoTurnOver.Models
...
@@ -648,6 +648,11 @@ namespace AutoTurnOver.Models
/// 日均出单次数
/// 日均出单次数
/// </summary>
/// </summary>
public
decimal
?
orders_avg
{
get
;
set
;
}
public
decimal
?
orders_avg
{
get
;
set
;
}
/// <summary>
/// sku 供应商货号
/// </summary>
public
string
sku_article_number
{
get
;
set
;
}
}
}
public
class
dc_base_stock_fba_dto
public
class
dc_base_stock_fba_dto
...
...
AutoTurnOver.Services/DailyServices.cs
View file @
9afdccf2
...
@@ -295,7 +295,7 @@ namespace AutoTurnOver.Services
...
@@ -295,7 +295,7 @@ namespace AutoTurnOver.Services
"供应链长度天数"
,
"供应链预测销量"
,
"供应链预测缺货"
,
"供应链预测冗余"
,
"walmart最近7天日均销量"
,
"walmart最近14天日均销量"
,
"walmart最近30天日均销量"
,
"库存更新时间"
,
"供应链长度天数"
,
"供应链预测销量"
,
"供应链预测缺货"
,
"供应链预测冗余"
,
"walmart最近7天日均销量"
,
"walmart最近14天日均销量"
,
"walmart最近30天日均销量"
,
"库存更新时间"
,
"shopify最近7天日均销量"
,
"shopify最近14天日均销量"
,
"shopify最近30天日均销量"
,
"shopify最近7天日均销量"
,
"shopify最近14天日均销量"
,
"shopify最近30天日均销量"
,
"在库+调拨单在途数量"
,
"在库+调拨单在途金额"
,
"在库+在途金额(总)"
,
"产品线"
,
"在库+调拨单在途数量"
,
"在库+调拨单在途金额"
,
"在库+在途金额(总)"
,
"产品线"
,
"头程费/一个单位"
,
"头程费/kg"
,
"产品特性"
,
"最近7天的订单数量"
,
"清货状态"
,
"日均出单次数"
"头程费/一个单位"
,
"头程费/kg"
,
"产品特性"
,
"最近7天的订单数量"
,
"清货状态"
,
"日均出单次数"
,
"sku供应商货号"
};
};
foreach
(
var
item
in
cols
)
foreach
(
var
item
in
cols
)
{
{
...
@@ -434,6 +434,7 @@ namespace AutoTurnOver.Services
...
@@ -434,6 +434,7 @@ namespace AutoTurnOver.Services
row
[
"周转表更新时间"
]
=
itemData
.
turnover_gmt_modified
==
null
?
""
:
itemData
.
turnover_gmt_modified
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
);
row
[
"周转表更新时间"
]
=
itemData
.
turnover_gmt_modified
==
null
?
""
:
itemData
.
turnover_gmt_modified
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
);
row
[
"库存更新时间"
]
=
itemData
.
gmt_modified
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
);
row
[
"库存更新时间"
]
=
itemData
.
gmt_modified
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
);
row
[
"日均出单次数"
]
=
itemData
.
orders_avg
;
row
[
"日均出单次数"
]
=
itemData
.
orders_avg
;
row
[
"sku供应商货号"
]
=
itemData
.
sku_article_number
;
table
.
Rows
.
Add
(
row
);
table
.
Rows
.
Add
(
row
);
}
}
...
...
AutoTurnOver.Services/SkuAutoTurnServices.cs
View file @
9afdccf2
...
@@ -321,7 +321,7 @@ namespace AutoTurnOver.Services
...
@@ -321,7 +321,7 @@ namespace AutoTurnOver.Services
"日均出单次数"
,
"首次出单日期"
,
"首次出单订单号"
,
"日均出单次数"
,
"首次出单日期"
,
"首次出单订单号"
,
"备货数量"
,
"产品类型"
,
"头程平均值取值来源"
,
"Walmart最近7天日均销量"
,
"Walmart最近14天日均销量"
,
"Walmart最近30天日均销量"
,
"shopify最近7天日均销量"
,
"shopify最近14天日均销量"
,
"shopify最近30天日均销量"
,
"备货数量"
,
"产品类型"
,
"头程平均值取值来源"
,
"Walmart最近7天日均销量"
,
"Walmart最近14天日均销量"
,
"Walmart最近30天日均销量"
,
"shopify最近7天日均销量"
,
"shopify最近14天日均销量"
,
"shopify最近30天日均销量"
,
"平均交期"
,
"配置交期"
,
"平均交期"
,
"配置交期"
,
"库存可用天数"
,
"库存可用日期"
,
"库存+在途可用天数"
,
"库存+在途可用日期"
,
"在途+库存可卖天数总目标销量"
,
"供应链长度总目标销量"
,
"最近7天的备货数量"
,
"清货状态"
,
"可消耗天数"
,
"FBA站点SKU"
,
"FBA分类标签"
"库存可用天数"
,
"库存可用日期"
,
"库存+在途可用天数"
,
"库存+在途可用日期"
,
"在途+库存可卖天数总目标销量"
,
"供应链长度总目标销量"
,
"最近7天的备货数量"
,
"清货状态"
,
"可消耗天数"
,
"FBA站点SKU"
,
"FBA分类标签"
,
"sku供应商货号"
};
};
foreach
(
var
item
in
cols
)
foreach
(
var
item
in
cols
)
{
{
...
@@ -436,6 +436,7 @@ namespace AutoTurnOver.Services
...
@@ -436,6 +436,7 @@ namespace AutoTurnOver.Services
row
[
"清货状态"
]
=
itemData
.
clearance_status
==
1
?
"清货"
:
""
;
row
[
"清货状态"
]
=
itemData
.
clearance_status
==
1
?
"清货"
:
""
;
row
[
"FBA站点SKU"
]
=
itemData
.
fba_site_sku
;
row
[
"FBA站点SKU"
]
=
itemData
.
fba_site_sku
;
row
[
"FBA分类标签"
]
=
itemData
.
fba_category_label
;
row
[
"FBA分类标签"
]
=
itemData
.
fba_category_label
;
row
[
"sku供应商货号"
]
=
itemData
.
sku_article_number
;
//row["FBA平台asin"] = itemData.fba_asin;
//row["FBA平台asin"] = itemData.fba_asin;
//row["FBA备注销售"] = itemData.fba_sale_remark;
//row["FBA备注销售"] = itemData.fba_sale_remark;
//row["FBA预计断货时间"] = itemData.fba_out_of_stock_predict_time;
//row["FBA预计断货时间"] = itemData.fba_out_of_stock_predict_time;
...
...
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