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
e1db2e73
Commit
e1db2e73
authored
Jan 20, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# update
parent
d8bbd0d5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
AutoTurnoverJob.java
...over/src/main/java/com/bailuntec/job/AutoTurnoverJob.java
+1
-1
AutoTurnoverServiceImpl.java
...a/com/bailuntec/service/impl/AutoTurnoverServiceImpl.java
+2
-2
AutoTurnoverTest.java
...ow/show-auto-turnover/src/test/java/AutoTurnoverTest.java
+1
-1
No files found.
data-show/show-auto-turnover/src/main/java/com/bailuntec/job/AutoTurnoverJob.java
View file @
e1db2e73
...
@@ -403,6 +403,7 @@ public class AutoTurnoverJob extends PointJob {
...
@@ -403,6 +403,7 @@ public class AutoTurnoverJob extends PointJob {
long
time
=
System
.
currentTimeMillis
();
long
time
=
System
.
currentTimeMillis
();
log
.
info
(
Long
.
toString
(
time
));
log
.
info
(
Long
.
toString
(
time
));
forecastSalesList
=
autoTurnoverService
.
getAutoTurnoverSaleDetails
(
dcAutoTurnover
,
turnoverDays
,
autoForecastDay
);
forecastSalesList
=
autoTurnoverService
.
getAutoTurnoverSaleDetails
(
dcAutoTurnover
,
turnoverDays
,
autoForecastDay
);
List
<
String
>
forecastSalesListFormula
=
autoTurnoverService
.
getAutoTurnoverSaleDetailsFormula
(
dcAutoTurnover
,
turnoverDays
,
autoForecastDay
);
log
.
info
(
Long
.
toString
(
System
.
currentTimeMillis
()
-
time
));
log
.
info
(
Long
.
toString
(
System
.
currentTimeMillis
()
-
time
));
AtomicReference
<
LocalDate
>
localDate
=
new
AtomicReference
<>(
LocalDate
.
now
());
AtomicReference
<
LocalDate
>
localDate
=
new
AtomicReference
<>(
LocalDate
.
now
());
...
@@ -447,7 +448,6 @@ public class AutoTurnoverJob extends PointJob {
...
@@ -447,7 +448,6 @@ public class AutoTurnoverJob extends PointJob {
// dcAutoTurnover.setSalesDetails("[" + salesDetailItemList.stream().map(SalesDetailItem::getShowSales).map(BigDecimal::toString).collect(Collectors.joining(",")) + "]");
// dcAutoTurnover.setSalesDetails("[" + salesDetailItemList.stream().map(SalesDetailItem::getShowSales).map(BigDecimal::toString).collect(Collectors.joining(",")) + "]");
/*周系数end*/
/*周系数end*/
List
<
String
>
forecastSalesListFormula
=
autoTurnoverService
.
getAutoTurnoverSaleDetailsFormula
(
dcAutoTurnover
,
turnoverDays
,
autoForecastDay
);
// forecastSalesList = salesDetailItemList.stream().map(SalesDetailItem::getShowSales).collect(Collectors.toList());
// forecastSalesList = salesDetailItemList.stream().map(SalesDetailItem::getShowSales).collect(Collectors.toList());
...
...
data-show/show-auto-turnover/src/main/java/com/bailuntec/service/impl/AutoTurnoverServiceImpl.java
View file @
e1db2e73
...
@@ -125,8 +125,8 @@ public class AutoTurnoverServiceImpl implements AutoTurnoverService {
...
@@ -125,8 +125,8 @@ public class AutoTurnoverServiceImpl implements AutoTurnoverService {
.
multiply
(
dcAutoSalesForecastStageConfig
.
getThreeN2
())
.
multiply
(
dcAutoSalesForecastStageConfig
.
getThreeN2
())
.
add
(
dcBaseOmsSkuMapper
.
omsSkuSellerCount
(
midNight
.
minusDays
(
dcAutoSalesForecastStageConfig
.
getThreeN3
().
intValue
()),
midNight
,
bailunSku
,
warehouseCode
,
threeN3
==
0
?
1
:
threeN3
,
dcAutoSalesForecastConfig
.
getDataSourcePlatform
())
.
add
(
dcBaseOmsSkuMapper
.
omsSkuSellerCount
(
midNight
.
minusDays
(
dcAutoSalesForecastStageConfig
.
getThreeN3
().
intValue
()),
midNight
,
bailunSku
,
warehouseCode
,
threeN3
==
0
?
1
:
threeN3
,
dcAutoSalesForecastConfig
.
getDataSourcePlatform
())
.
multiply
(
dcAutoSalesForecastStageConfig
.
getThreeN4
()))
.
multiply
(
dcAutoSalesForecastStageConfig
.
getThreeN4
()))
.
add
(
dcBaseOmsSkuMapper
.
omsSkuSellerCount
(
midNight
.
minusDays
(
dcAutoSalesForecastStageConfig
.
getThreeN5
().
intValue
()),
midNight
,
bailunSku
,
warehouseCode
,
threeN5
==
0
?
1
:
threeN5
,
dcAutoSalesForecastConfig
.
getDataSourcePlatform
())
)
.
add
(
dcBaseOmsSkuMapper
.
omsSkuSellerCount
(
midNight
.
minusDays
(
dcAutoSalesForecastStageConfig
.
getThreeN5
().
intValue
()),
midNight
,
bailunSku
,
warehouseCode
,
threeN5
==
0
?
1
:
threeN5
,
dcAutoSalesForecastConfig
.
getDataSourcePlatform
())
.
multiply
(
dcAutoSalesForecastStageConfig
.
getThreeN6
());
.
multiply
(
dcAutoSalesForecastStageConfig
.
getThreeN6
())
)
;
for
(
int
i
=
0
;
i
<
duration3
;
i
++)
{
for
(
int
i
=
0
;
i
<
duration3
;
i
++)
{
if
(
autoForecastDay
>=
forecastSalesDetails
.
size
())
{
if
(
autoForecastDay
>=
forecastSalesDetails
.
size
())
{
...
...
data-show/show-auto-turnover/src/test/java/AutoTurnoverTest.java
View file @
e1db2e73
...
@@ -262,7 +262,7 @@ public class AutoTurnoverTest {
...
@@ -262,7 +262,7 @@ public class AutoTurnoverTest {
public
void
testXX2
()
{
public
void
testXX2
()
{
DcBaseStock
dcBaseStock
=
SessionUtil
.
getSession
().
getMapper
(
DcBaseStockMapper
.
class
)
DcBaseStock
dcBaseStock
=
SessionUtil
.
getSession
().
getMapper
(
DcBaseStockMapper
.
class
)
.
selectOneByExample
(
DcBaseStockExample
.
newAndCreateCriteria
()
.
selectOneByExample
(
DcBaseStockExample
.
newAndCreateCriteria
()
.
andBailunSkuEqualTo
(
"95
14673
01"
)
.
andBailunSkuEqualTo
(
"95
08751
01"
)
.
andWarehouseCodeEqualTo
(
"GZBLWH"
)
.
andWarehouseCodeEqualTo
(
"GZBLWH"
)
.
example
());
.
example
());
try
{
try
{
...
...
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