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
bltdc
dc-java
Commits
093d6bab
Commit
093d6bab
authored
Oct 10, 2019
by
yinyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开发日期低于7天的取3天日均改为7天日均
parent
f8d53434
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
AutoTurnoverJob.java
...over/src/main/java/com/bailuntec/job/AutoTurnoverJob.java
+3
-3
No files found.
data-show/show-auto-turnover/src/main/java/com/bailuntec/job/AutoTurnoverJob.java
View file @
093d6bab
...
@@ -1017,15 +1017,15 @@ public class AutoTurnoverJob extends PointJob {
...
@@ -1017,15 +1017,15 @@ public class AutoTurnoverJob extends PointJob {
}
}
BigDecimal
avgHistoryThreedaySales
=
BigDecimal
.
valueOf
(
historyThreeSales
.
longValue
()).
divide
(
Constant
.
BIGDECIMAL_THREE
,
3
,
RoundingMode
.
HALF_EVEN
);
BigDecimal
avgHistoryThreedaySales
=
BigDecimal
.
valueOf
(
historyThreeSales
.
longValue
()).
divide
(
Constant
.
BIGDECIMAL_THREE
,
3
,
RoundingMode
.
HALF_EVEN
);
BigDecimal
avgHistorySevendaySales
=
BigDecimal
.
valueOf
(
historySevenSales
.
longValue
()).
divide
(
Constant
.
BIGDECIMAL_SEVEN
,
3
,
RoundingMode
.
HALF_EVEN
);
BigDecimal
avgHistorySevendaySales
=
BigDecimal
.
valueOf
(
historySevenSales
.
longValue
()).
divide
(
Constant
.
BIGDECIMAL_SEVEN
,
3
,
RoundingMode
.
HALF_EVEN
);
if
(
dcBaseOmsSku
!=
null
&&
recordTime
.
minusDays
(
7L
).
isBefore
(
dcBaseOmsSku
.
getCreateTime
().
toLocalDate
()))
{
/*
if(dcBaseOmsSku != null && recordTime.minusDays(7L).isBefore(dcBaseOmsSku.getCreateTime().toLocalDate())) {
for(int j = 0; j < autoForecastDay; j++) {
for(int j = 0; j < autoForecastDay; j++) {
forecastSalesList.set(j, avgHistoryThreedaySales);
forecastSalesList.set(j, avgHistoryThreedaySales);
}
}
}
else
{
}else{
*/
for
(
int
j
=
0
;
j
<
autoForecastDay
;
j
++)
{
for
(
int
j
=
0
;
j
<
autoForecastDay
;
j
++)
{
forecastSalesList
.
set
(
j
,
avgHistorySevendaySales
);
forecastSalesList
.
set
(
j
,
avgHistorySevendaySales
);
}
}
}
/*}*/
}
else
{
}
else
{
// y = ae^bx
// y = ae^bx
...
...
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