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
042d07e9
Commit
042d07e9
authored
Jan 26, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# update
parent
01cf7b9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
AutoTurnoverJob.java
...over/src/main/java/com/bailuntec/job/AutoTurnoverJob.java
+3
-10
No files found.
data-show/show-auto-turnover/src/main/java/com/bailuntec/job/AutoTurnoverJob.java
View file @
042d07e9
...
...
@@ -50,9 +50,9 @@ public class AutoTurnoverJob extends PointJob {
//分片需要处理数据总页数
int
totalPage
=
getTotalPage
(
count
,
jobPointLog
.
getPageSize
());
log
.
info
(
"当前分片分页任务分页查询页码大小:{}"
,
jobPointLog
.
getPageSize
());
//
log
.
info
(
"当前分片需要处理的总页数:{}"
,
totalPage
);
//
AtomicInteger
countItem
=
new
AtomicInteger
(
0
);
for
(
int
page
=
jobPointLog
.
getPageIndex
();
page
<=
totalPage
;
page
++)
{
...
...
@@ -376,6 +376,7 @@ public class AutoTurnoverJob extends PointJob {
List
<
String
>
forecastInboundRelationList
=
new
ArrayList
<>(
autoForecastDay
);
List
<
BigDecimal
>
forecastSalesList
=
new
ArrayList
<>(
autoForecastDay
);
List
<
String
>
forecastSalesExplainList
=
new
ArrayList
<>(
forecastSalesList
.
size
());
//七天实际断货+预测断货
List
<
BigDecimal
>
forecastShortSupplyList
=
new
ArrayList
<>(
autoForecastDay
);
List
<
BigDecimal
>
forecastPurchaseAdvisedList
=
new
ArrayList
<>(
autoForecastDay
);
...
...
@@ -443,11 +444,6 @@ public class AutoTurnoverJob extends PointJob {
dcAutoTurnover
.
setGmtModified
(
LocalDateTime
.
now
());
forecastSalesList
=
salesDetailItemList
.
stream
().
map
(
SalesDetailItem:
:
getShowSales
).
collect
(
Collectors
.
toList
());
// dcAutoTurnover.setSalesDetails("[" + salesDetailItemList.stream().map(SalesDetailItem::getShowSales).map(BigDecimal::toString).collect(Collectors.joining(",")) + "]");
/*周系数end*/
// forecastSalesList = salesDetailItemList.stream().map(SalesDetailItem::getShowSales).collect(Collectors.toList());
/*
* 处理矫正信息
...
...
@@ -813,9 +809,6 @@ public class AutoTurnoverJob extends PointJob {
dcAutoTurnover
.
setHqType
(
dcBaseWarehouse
.
getHqType
());
dcAutoTurnover
.
setSalesDetailsFormula
(
new
Gson
().
toJson
(
forecastSalesListFormula
));
/*dcBaseStock.setSkuTitleCn(turnoverSku.getSkuTitleCn());
dcBaseStock.setProductInnerCode(turnoverSku.getProductInnerCode());
dcBaseStock.setSuppliersName(turnoverSku.getSuppliersName());*/
try
{
DcAutoTurnoverMapper
autoTurnoverMapper
=
SessionUtil
.
getSession
().
getMapper
(
DcAutoTurnoverMapper
.
class
);
...
...
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