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
09c9715c
Commit
09c9715c
authored
Jul 07, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下首单的采购建议,记录供应链长度
parent
f590b496
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
dc_auto_first_order_sku_dao.cs
AutoTurnOver.DB/dc_auto_first_order_sku_dao.cs
+6
-2
No files found.
AutoTurnOver.DB/dc_auto_first_order_sku_dao.cs
View file @
09c9715c
...
...
@@ -122,6 +122,8 @@ namespace AutoTurnOver.DB
throw
new
Exception
(
$" 商品日均不应该低于
{
item_rule
.
lower_limit_sales
}
个 "
);
}
int
?
max_delivery
=
null
;
// 固定数量
if
(
item_rule
.
order_type
==
1
)
{
...
...
@@ -179,7 +181,7 @@ namespace AutoTurnOver.DB
remarks
.
AppendLine
(
$"根据供应链长度下单模式"
);
// 查询交期
int
?
max_delivery
=
null
;
max_delivery
=
null
;
if
(
"国内仓"
.
Equals
(
item_warehouse
.
hq_type
))
{
max_delivery
=
conn
.
QuerySingleOrDefault
<
int
?>(
" select max(supplier_delivery) from dc_base_sku where product_inner_code=@product_inner_code "
,
new
{
product_inner_code
=
itemGroup
.
Key
.
product_inner_code
});
...
...
@@ -261,7 +263,9 @@ namespace AutoTurnOver.DB
product_inner_code
=
itemGroup
.
Key
.
product_inner_code
,
good_sku_codes
=
""
,
purchase_type_jit
=
3
,
remarks
=
remarks
.
ToString
()
remarks
=
remarks
.
ToString
(),
turnover_days
=
max_delivery
??
0
,
},
t
);
}
...
...
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