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
47faf69b
Commit
47faf69b
authored
Feb 27, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 更新
parent
d1237a77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
AutoTurnoverJob.java
...over/src/main/java/com/bailuntec/job/AutoTurnoverJob.java
+4
-2
No files found.
data-show/show-auto-turnover/src/main/java/com/bailuntec/job/AutoTurnoverJob.java
View file @
47faf69b
...
@@ -33,6 +33,7 @@ import java.time.LocalDateTime;
...
@@ -33,6 +33,7 @@ import java.time.LocalDateTime;
import
java.time.LocalTime
;
import
java.time.LocalTime
;
import
java.time.Period
;
import
java.time.Period
;
import
java.time.format.DateTimeFormatter
;
import
java.time.format.DateTimeFormatter
;
import
java.time.temporal.ChronoUnit
;
import
java.util.*
;
import
java.util.*
;
import
java.util.concurrent.atomic.AtomicInteger
;
import
java.util.concurrent.atomic.AtomicInteger
;
import
java.util.concurrent.atomic.AtomicReference
;
import
java.util.concurrent.atomic.AtomicReference
;
...
@@ -1175,7 +1176,8 @@ public class AutoTurnoverJob extends PointJob {
...
@@ -1175,7 +1176,8 @@ public class AutoTurnoverJob extends PointJob {
else
{
else
{
finalEstimatedArrivalTime
=
dcBasePurchase
.
getEstimatedArrivalTime
().
plusDays
(
dcAutoTurnover
.
getInspectionDelivery
());
finalEstimatedArrivalTime
=
dcBasePurchase
.
getEstimatedArrivalTime
().
plusDays
(
dcAutoTurnover
.
getInspectionDelivery
());
}
}
int
interval
=
between
(
recordTime
,
finalEstimatedArrivalTime
.
toLocalDate
()).
getDays
();
// int interval = between(, finalEstimatedArrivalTime.toLocalDate()).getDays();
int
interval
=
(
int
)
recordTime
.
until
(
finalEstimatedArrivalTime
,
ChronoUnit
.
DAYS
);
int
index
=
Math
.
max
(
interval
,
0
);
int
index
=
Math
.
max
(
interval
,
0
);
forecastInboundRelationList
.
set
(
index
,
forecastInboundRelationList
.
get
(
index
).
equals
(
Constant
.
NAN_STRING
)
?
Constant
.
PURCHASE_SIGN
+
dcBasePurchase
.
getPurchaseId
()
+
"_"
+
dcBasePurchase
.
getCount
()
:
forecastInboundRelationList
.
get
(
index
)
+
"*"
+
Constant
.
PURCHASE_SIGN
+
dcBasePurchase
.
getPurchaseId
()
+
"_"
+
dcBasePurchase
.
getCount
());
forecastInboundRelationList
.
set
(
index
,
forecastInboundRelationList
.
get
(
index
).
equals
(
Constant
.
NAN_STRING
)
?
Constant
.
PURCHASE_SIGN
+
dcBasePurchase
.
getPurchaseId
()
+
"_"
+
dcBasePurchase
.
getCount
()
:
forecastInboundRelationList
.
get
(
index
)
+
"*"
+
Constant
.
PURCHASE_SIGN
+
dcBasePurchase
.
getPurchaseId
()
+
"_"
+
dcBasePurchase
.
getCount
());
forecastPurchaseInboundList
.
set
(
index
,
forecastPurchaseInboundList
.
get
(
index
)
+
dcBasePurchase
.
getCount
());
forecastPurchaseInboundList
.
set
(
index
,
forecastPurchaseInboundList
.
get
(
index
)
+
dcBasePurchase
.
getCount
());
...
@@ -1208,7 +1210,7 @@ public class AutoTurnoverJob extends PointJob {
...
@@ -1208,7 +1210,7 @@ public class AutoTurnoverJob extends PointJob {
}
else
{
}
else
{
finalEstimatedArrivalTime
=
dcBaseTransferVerify
.
getCreateTime
().
plusDays
(
dcAutoConfigDelivery
.
getAbroadInbound
()).
plusDays
(
dcAutoConfigDelivery
.
getTranferBale
()).
plusDays
(
dcAutoConfigDelivery
.
getTranferHead
());
finalEstimatedArrivalTime
=
dcBaseTransferVerify
.
getCreateTime
().
plusDays
(
dcAutoConfigDelivery
.
getAbroadInbound
()).
plusDays
(
dcAutoConfigDelivery
.
getTranferBale
()).
plusDays
(
dcAutoConfigDelivery
.
getTranferHead
());
}
}
int
interval
=
between
(
recordTime
,
finalEstimatedArrivalTime
.
toLocalDate
()).
getDays
(
);
int
interval
=
(
int
)
recordTime
.
until
(
finalEstimatedArrivalTime
,
ChronoUnit
.
DAYS
);
int
index
=
Math
.
max
(
interval
,
0
);
int
index
=
Math
.
max
(
interval
,
0
);
//todo fba的调拨在途,切换读我做的一个新表(表结构构建中)
//todo fba的调拨在途,切换读我做的一个新表(表结构构建中)
...
...
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