Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-java
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
huluobin
dc-java
Commits
bee1e435
Commit
bee1e435
authored
Oct 26, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
记录周转命中规则id
parent
d22cdb2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
AutoTurnoverServiceImpl.java
...a/com/bailuntec/service/impl/AutoTurnoverServiceImpl.java
+4
-1
No files found.
data-show/show-auto-turnover/src/main/java/com/bailuntec/service/impl/AutoTurnoverServiceImpl.java
View file @
bee1e435
...
...
@@ -43,7 +43,6 @@ public class AutoTurnoverServiceImpl implements AutoTurnoverService {
//命中的预测规则
DcAutoSalesForecastStageConfig
dcAutoSalesForecastStageConfig
=
dcAutoSalesForecastStageConfigMapper
.
selectMatchStage
(
dcAutoTurnover
.
getBailunSku
(),
dcAutoTurnover
.
getWarehouseCode
());
dcAutoTurnover
.
setDcAutoSalesForecastConfigId
(
dcAutoSalesForecastStageConfig
.
getConfigId
());
//周转天数
/*
...
...
@@ -56,6 +55,7 @@ public class AutoTurnoverServiceImpl implements AutoTurnoverService {
if
(
dcAutoSalesForecastStageConfig
!=
null
)
{
dcAutoTurnover
.
setDcAutoSalesForecastConfigId
(
dcAutoSalesForecastStageConfig
.
getConfigId
());
log
.
info
(
"匹配到一条规则 id:{}"
,
dcAutoSalesForecastStageConfig
.
getConfigId
());
...
...
@@ -120,6 +120,9 @@ public class AutoTurnoverServiceImpl implements AutoTurnoverService {
}
else
{
log
.
info
(
"没有匹配销量预测规则,采用平均销量"
);
dcAutoTurnover
.
setDcAutoSalesForecastConfigId
(-
1
);
for
(
int
i
=
0
;
i
<
turnoverDays
;
i
++)
{
if
(
autoForecastDay
>=
forecastSalesDetails
.
size
())
{
forecastSalesDetails
.
offer
(
dcAutoTurnover
.
getDailyWeightedSales
()
==
null
?
BigDecimal
.
ZERO
:
dcAutoTurnover
.
getDailyWeightedSales
());
...
...
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