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
32e7b9bf
Commit
32e7b9bf
authored
Sep 10, 2019
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
周转表新增动态备货规则组
parent
a8f53e77
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
+10
-7
dc_auto_jit_tag.cs
AutoTurnOver.DB/dc_auto_jit_tag.cs
+0
-4
dc_auto_turnover.cs
AutoTurnOver.DB/dc_auto_turnover.cs
+4
-1
dc_auto_turnover.cs
AutoTurnOver.Models/dc_auto_turnover.cs
+4
-0
SkuAutoTurnServices.cs
AutoTurnOver.Services/SkuAutoTurnServices.cs
+2
-2
No files found.
AutoTurnOver.DB/dc_auto_jit_tag.cs
View file @
32e7b9bf
...
...
@@ -136,10 +136,6 @@ where 1 = 1 ";
}
}
/// <summary>
/// 获取安全库存规则设置详情
/// </summary>
...
...
AutoTurnOver.DB/dc_auto_turnover.cs
View file @
32e7b9bf
...
...
@@ -55,7 +55,8 @@ t4.bailun_category_name,
( case when t5.`status`=0 or t5.`status` is null then 0 else 1 end ) as 'monitor_status',t4.suppliers_link,
(t4.supplier_delivery - t6.virtual_delivery_days) as 'delivery_days_error',t4.weight,t4.unit_price,t7.usable_stock,t7.shipped_stock,
t4.develop_time,(case when t8.id is null then '未侵权' else '侵权' end) as 'has_tort',
( case when t5.`status`=0 or t5.`status` is null then null else t5.gmt_create end ) as 'stop_monitor_create'
( case when t5.`status`=0 or t5.`status` is null then null else t5.gmt_create end ) as 'stop_monitor_create',
t10.`name` as 'group_name'
from dc_auto_turnover as dat
left join dc_auto_sales as t2 on t2.bailun_sku=dat.bailun_sku and dat.warehouse_code = t2.warehouse_code
left join dc_base_warehouse as t3 on dat.warehouse_code = t3.warehouse_code
...
...
@@ -64,6 +65,8 @@ left join dc_auto_config_sku_warehouse as t5 on dat.bailun_sku = t5.bailun_sku a
left join dc_average_purchase as t6 on dat.bailun_sku = t6.bailun_sku and dat.warehouse_code =t6.warehouse_code and t4.suppliers_id = t6.supplier_id
left join dc_base_stock as t7 on dat.bailun_sku = t7.bailun_sku and dat.warehouse_code = t7.warehouse_code
left join dc_base_tort as t8 on dat.bailun_sku = t8.bailun_sku
left join dc_auto_stock_up_range as t9 on dat.bailun_sku = t9.bailun_sku and dat.warehouse_code = t9.warehouse_code
left join dc_auto_jit_tag_group as t10 on t9.group_id = t10.id
where 1=1 "
;
}
...
...
AutoTurnOver.Models/dc_auto_turnover.cs
View file @
32e7b9bf
...
...
@@ -412,6 +412,10 @@ namespace AutoTurnOver.Models
public
int
id
{
get
;
set
;
}
/// <summary>
/// 动态备货规则组
/// </summary>
public
string
group_name
{
get
;
set
;
}
/// <summary>
/// 建议单单号
/// </summary>
public
string
purchase_advice_id
{
get
;
set
;
}
...
...
AutoTurnOver.Services/SkuAutoTurnServices.cs
View file @
32e7b9bf
...
...
@@ -297,7 +297,7 @@ namespace AutoTurnOver.Services
"实际库存"
,
"安全库存"
,
"周转天数"
,
"供应商交期"
,
"质检入库天数"
,
"调拨头程天数"
,
"预测是否断货"
,
"缺货数量"
,
"监控状态"
,
"供应商"
,
"采购员"
,
"交期异常"
,
"过去7天日均"
,
"过去14天日均"
,
"过去30天日均"
,
"重量"
,
"单价"
,
"实时库存"
,
"ebay最近7天日均销量"
,
"ebay最近14天日均销量"
,
"ebay最近30天日均销量"
,
"速卖通最近7天日均销量"
,
"速卖通最近14天日均销量"
,
"速卖通最近30天日均销量"
,
"已发货库存"
,
"开发时间"
,
"是否侵权"
,
"停止监控时间"
,
"已发货库存"
,
"开发时间"
,
"是否侵权"
,
"停止监控时间"
,
"动态备货规则组"
};
foreach
(
var
item
in
cols
)
{
...
...
@@ -351,7 +351,7 @@ namespace AutoTurnOver.Services
row
[
"开发时间"
]
=
itemData
.
develop_time
;
row
[
"是否侵权"
]
=
itemData
.
has_tort
;
row
[
"停止监控时间"
]
=
itemData
.
stop_monitor_create
==
null
?
""
:
itemData
.
stop_monitor_create
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
);
row
[
"动态备货规则组"
]
=
itemData
.
group_name
;
table
.
Rows
.
Add
(
row
);
}
...
...
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