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
f369f6d5
Commit
f369f6d5
authored
Jan 15, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# stash 周转
parent
a412d99b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
6 deletions
+25
-6
DateTurnover.java
.../src/main/java/com/bailuntec/domain/dto/DateTurnover.java
+18
-0
AutoTurnoverJob.java
...over/src/main/java/com/bailuntec/job/AutoTurnoverJob.java
+7
-6
AutoTrunoverContext.java
.../main/java/com/bailuntec/service/AutoTrunoverContext.java
+0
-0
No files found.
data-common/src/main/java/com/bailuntec/domain/dto/DateTurnover.java
View file @
f369f6d5
...
...
@@ -22,6 +22,8 @@ public class DateTurnover {
private
BigDecimal
forecastSales
;
//预测销量公式
private
String
forecastSalesFormula
;
//预测销量解释
private
String
forecastSalesExplain
;
//日期
private
LocalDate
date
;
//周系数
...
...
@@ -36,6 +38,22 @@ public class DateTurnover {
private
BigDecimal
showSales
;
//入库释义
private
String
inboundRelation
;
//预计入库数量
private
BigDecimal
forecastInbound
;
//预测缺货数量
private
BigDecimal
forecastShortSupply
;
//mop 采购建议
private
BigDecimal
moqPurchaseAdvised
;
//预测采购建议
private
BigDecimal
forecastPurchaseAdvised
;
//预计库存
private
BigDecimal
forecastInventory
;
//p_表示采购单Id, t_表示调拨单Id, 用_连接调拨在途数量
private
String
forecastInboundRelation
;
//预测采购入库
private
BigDecimal
forecastPurchaseInbound
;
//预测调拨入库
private
BigDecimal
forecastTransferInbound
;
public
void
calcShowSales
()
{
this
.
showSales
=
sales
;
...
...
data-show/show-auto-turnover/src/main/java/com/bailuntec/job/AutoTurnoverJob.java
View file @
f369f6d5
...
...
@@ -661,12 +661,8 @@ public class AutoTurnoverJob extends PointJob {
dcAutoForecastFluctuationActual
.
setEndTime
(
recordTime
);
forecastFluctuationList
.
add
(
dcAutoForecastFluctuationActual
);
}
}
/*
* 自动下单管理的冗余-缺货等异常提醒
*/
if
(
hasMonitorFluctuation
)
{
//自动下单管理的冗余-缺货等异常提醒
unusualFluctuation
(
turnoverDays
,
recordTime
,
...
...
@@ -1655,7 +1651,12 @@ public class AutoTurnoverJob extends PointJob {
}
//按照规则递减或递增 j = 63
for
(
int
i
=
0
;
i
<=
shortSupplyDays
;
i
++)
{
BigDecimal
result
=
forecastSaleGTZero
.
multiply
(
Constant
.
FBA_OUT_STOCK_DECREASE
.
pow
(
shortSupplyDays
)).
multiply
(
Constant
.
FBA_OUT_STOCK_INCREMENT
.
pow
(
i
)).
setScale
(
3
,
RoundingMode
.
HALF_EVEN
);
BigDecimal
result
=
forecastSaleGTZero
.
multiply
(
Constant
.
FBA_OUT_STOCK_DECREASE
.
pow
(
shortSupplyDays
))
.
multiply
(
Constant
.
FBA_OUT_STOCK_INCREMENT
.
pow
(
i
))
.
setScale
(
3
,
RoundingMode
.
HALF_EVEN
);
//索引越界
if
(
j
+
i
<
forecastSalesList
.
size
())
{
forecastSalesList
.
set
(
j
+
i
-
1
,
result
);
...
...
data-show/show-auto-turnover/src/main/java/com/bailuntec/service/AutoTrunoverContext.java
View file @
f369f6d5
This diff is collapsed.
Click to expand it.
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