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
bdc0b73b
Commit
bdc0b73b
authored
Dec 10, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
607dd355
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
3 deletions
+11
-3
daily.cs
AutoTurnOver.DB/daily.cs
+2
-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
-2
No files found.
AutoTurnOver.DB/daily.cs
View file @
bdc0b73b
...
...
@@ -336,6 +336,7 @@ t6.history_sevenday_sales_amazon,t6.history_fourteenday_sales_amazon,t6.history_
dbw.area_name,
dbw.hq_type,
ifnull(t15.count,0) as 'not_trans_count',
t4.quantity_purchase * t3.unit_price as 'realtime_amount_purchase',
t4.quantity_transfer * t3.unit_price as 'realtime_amount_transfer',
...
...
@@ -371,6 +372,7 @@ left join dc_auto_config_sku_warehouse as t7 on t1.bailun_sku = t7.bailun_sku an
left join dc_auto_sales as t8 on t1.bailun_sku=t8.bailun_sku and t1.warehouse_code = t8.warehouse_code
left join dc_base_lastweek_data as t9 on t1.bailun_sku=t9.bailun_sku and t1.warehouse_code = t9.warehouse_code
left join dc_base_stock_extend as t10 on t1.bailun_sku=t10.bailun_sku and t1.warehouse_code = t10.warehouse_code
left join not_trans_view as t15 on t1.bailun_sku=t15.bailun_sku and t1.warehouse_code = t15.warehouse_code
"
;
...
...
AutoTurnOver.Models/dc_base_stock.cs
View file @
bdc0b73b
...
...
@@ -169,6 +169,11 @@ namespace AutoTurnOver.Models
/// 入库数
/// </summary>
public
decimal
storage_quantity
{
get
;
set
;
}
/// <summary>
/// 待调拨数量
/// </summary>
public
decimal
not_trans_count
{
get
;
set
;
}
public
string
extend_sale_user_name
{
get
;
set
;
}
public
string
area_name
{
get
;
set
;
}
public
string
hq_type
{
get
;
set
;
}
...
...
AutoTurnOver.Services/DailyServices.cs
View file @
bdc0b73b
...
...
@@ -159,7 +159,7 @@ namespace AutoTurnOver.Services
if
(
list
==
null
||
list
.
Count
<=
0
)
break
;
DataTable
table
=
new
DataTable
();
string
[]
cols
=
new
string
[]
{
"百伦简易分类"
,
"Sku"
,
"采购名称"
,
"中文名"
,
"内部编码"
,
"仓库编码"
,
"仓库名称"
,
"货主编码"
,
"实时采购在途"
,
"实时调拨在途"
,
"在途金额"
string
[]
cols
=
new
string
[]
{
"百伦简易分类"
,
"Sku"
,
"采购名称"
,
"中文名"
,
"内部编码"
,
"仓库编码"
,
"仓库名称"
,
"货主编码"
,
"实时采购在途"
,
"实时调拨在途"
,
"
待调拨数量"
,
"
在途金额"
,
"订货数量"
,
"运输在途"
,
"中转仓库存"
,
"冻结库存"
,
"供应商库存"
,
"预售库存"
,
"不良品库存"
,
"在途库存"
,
"收货待检"
,
"待上架"
,
"可配库存"
,
"上周销量"
,
"上周销售额"
,
"入库数量"
,
"可配库存金额"
,
"销售可用库存(聚合)"
,
"销售可用库存(私有)"
,
"销售可用库存(共享)"
,
"在仓库存(共享)"
,
"在仓库存(私有)"
,
"在仓库存(聚合)"
,
"仓库占用(共享)"
,
"仓库占用(私有)"
,
"仓库占用(聚合)"
,
"活动占用"
,
"单占用(私有)"
,
"订单占用(共享)"
,
"订单占用(聚合)"
,
"环球更新时间"
,
"供应商"
,
"采购员"
,
"重量"
,
"单价"
,
"已发货库存"
,
"实时缺货"
,
"是否侵权"
,
...
...
@@ -182,6 +182,7 @@ namespace AutoTurnOver.Services
//row["英文名称"] = itemData.sku_title_en;
row
[
"内部编码"
]
=
itemData
.
sku_product_inner_code
;
row
[
"仓库编码"
]
=
itemData
.
warehouse_code
;
row
[
"待调拨数量"
]
=
itemData
.
not_trans_count
;
row
[
"仓库名称"
]
=
itemData
.
warehouse_name
;
row
[
"货主编码"
]
=
itemData
.
owner_code
;
row
[
"订货数量"
]
=
itemData
.
quantity_reservation
;
...
...
AutoTurnOver.Services/SkuAutoTurnServices.cs
View file @
bdc0b73b
...
...
@@ -297,13 +297,13 @@ namespace AutoTurnOver.Services
if
(
list
==
null
||
list
.
Count
<=
0
)
break
;
DataTable
table
=
new
DataTable
();
string
[]
cols
=
new
string
[]
{
"Sku"
,
"商品编码"
,
"内部编码"
,
"sku标题"
,
"仓库编码"
,
"仓库名称"
,
"仓库所在国家"
,
"MOQ"
,
"采购在途"
,
"调拨在途"
,
"昨日销量"
,
"明日销量"
,
"未来7天日均"
,
"未来14天日均"
,
"建议采购数"
,
"活动促销数量"
,
"采购在途"
,
"调拨在途"
,
"待调拨数量"
,
"昨日销量"
,
"明日销量"
,
"未来7天日均"
,
"未来14天日均"
,
"建议采购数"
,
"活动促销数量"
,
"实际库存"
,
"安全库存"
,
"周转天数"
,
"供应商交期"
,
"质检入库天数"
,
"调拨头程天数"
,
"预测是否断货"
,
"缺货数量"
,
"监控状态"
,
"供应商"
,
"采购员"
,
"交期异常"
,
"过去7天日均"
,
"过去14天日均"
,
"过去30天日均"
,
"重量"
,
"单价"
,
"实时库存"
,
"ebay最近7天日均销量"
,
"ebay最近14天日均销量"
,
"ebay最近30天日均销量"
,
"速卖通最近7天日均销量"
,
"速卖通最近14天日均销量"
,
"速卖通最近30天日均销量"
,
"已发货库存"
,
"开发时间"
,
"是否侵权"
,
"停止监控时间"
,
"标签"
,
"停售"
,
"最近7天+预测销量"
,
"amazon最近7天日均销量"
,
"amazon最近14天日均销量"
,
"amazon最近30天日均销量"
,
"品牌"
,
"简易分类"
,
"采购陆运在途数量"
,
"采购海运在途数量"
,
"采购空运在途数量"
,
"采购铁路在途数量"
,
"调拨陆运在途数量"
,
"调拨海运在途数量"
,
"调拨空运在途数量"
,
"调拨铁路在途数量"
,
"首次入库时间"
,
"供应链累计销量"
,
"销量预测规则"
,
"默认头程运输方式"
,
"默认头程渠道"
,
"计算时间"
,
"待调拨数量"
,
"调拨陆运在途数量"
,
"调拨海运在途数量"
,
"调拨空运在途数量"
,
"调拨铁路在途数量"
,
"首次入库时间"
,
"供应链累计销量"
,
"销量预测规则"
,
"默认头程运输方式"
,
"默认头程渠道"
,
"计算时间"
};
foreach
(
var
item
in
cols
)
{
...
...
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