Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 30360e23
authored
Jul 13, 2023
by
chamberone
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://zhangguoping@gitlab.dituhui.com/bsh/project/pr…
…oject.git into develop
2 parents
df9d1d83
f5cafcdf
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
project-dispatch/src/main/java/com/dituhui/pea/dispatch/pojo/Location.java
project-dispatch/src/main/java/com/dituhui/pea/dispatch/scheduler/BatchScheduler.java
project-dispatch/src/test/java/com/dituhui/pea/dispatch/SolveServiceTest.java
project-dispatch/src/main/java/com/dituhui/pea/dispatch/pojo/Location.java
View file @
30360e2
...
@@ -76,7 +76,7 @@ public class Location {
...
@@ -76,7 +76,7 @@ public class Location {
* @return time in minutes
* @return time in minutes
*/
*/
public
int
getPathTimeTo
(
Location
location
)
{
public
int
getPathTimeTo
(
Location
location
)
{
return
distanceTimeMap
.
get
(
location
).
intValue
();
return
distanceTimeMap
.
get
(
location
).
intValue
()
/
60
;
}
}
// ************************************************************************
// ************************************************************************
...
...
project-dispatch/src/main/java/com/dituhui/pea/dispatch/scheduler/BatchScheduler.java
View file @
30360e2
...
@@ -74,7 +74,7 @@ public class BatchScheduler {
...
@@ -74,7 +74,7 @@ public class BatchScheduler {
LocalTime
currentTime
=
LocalTime
.
now
();
LocalTime
currentTime
=
LocalTime
.
now
();
LocalTime
cutoffTime
=
LocalTime
.
parse
(
"16:00:00"
,
DateTimeFormatter
.
ISO_LOCAL_TIME
);
LocalTime
cutoffTime
=
LocalTime
.
parse
(
"16:00:00"
,
DateTimeFormatter
.
ISO_LOCAL_TIME
);
if
(
currentTime
.
isAfter
(
cutoffTime
))
{
if
(
i
==
1
&&
currentTime
.
isAfter
(
cutoffTime
))
{
log
.
info
(
"dispatchRun 已过cutoff时间,更新pre状态为confirm----- group:{}, day:{}"
,
groupId
,
currDay
);
log
.
info
(
"dispatchRun 已过cutoff时间,更新pre状态为confirm----- group:{}, day:{}"
,
groupId
,
currDay
);
DispatchBatch
dispatchBatch
=
batchService
.
queryBatchInfoByDay
(
groupId
,
currDay
);
DispatchBatch
dispatchBatch
=
batchService
.
queryBatchInfoByDay
(
groupId
,
currDay
);
if
(
null
==
dispatchBatch
.
getBatchNo
())
{
if
(
null
==
dispatchBatch
.
getBatchNo
())
{
...
...
project-dispatch/src/test/java/com/dituhui/pea/dispatch/SolveServiceTest.java
View file @
30360e2
...
@@ -42,7 +42,6 @@ class SolveServiceTest {
...
@@ -42,7 +42,6 @@ class SolveServiceTest {
String
groupId
=
"gsuzhou"
;
String
groupId
=
"gsuzhou"
;
String
day
=
"2023-07-11"
;
String
day
=
"2023-07-11"
;
private
SolverManager
<
DispatchSolution
,
UUID
>
solverManager
;
private
SolverManager
<
DispatchSolution
,
UUID
>
solverManager
;
private
Solver
<
DispatchSolution
>
solver
;
private
Solver
<
DispatchSolution
>
solver
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment