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 cbab9e1b
authored
Oct 31, 2023
by
Ren Ping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:排班结果详情修改
1 parent
0dba3e7a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
8 deletions
project-dispatch/src/main/java/com/dituhui/pea/dispatch/pojo/Location.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/ScheduleServiceImpl.java
project-dispatch/src/main/java/com/dituhui/pea/dispatch/pojo/Location.java
View file @
cbab9e1
...
@@ -171,12 +171,15 @@ public class Location {
...
@@ -171,12 +171,15 @@ public class Location {
@Override
@Override
public
boolean
equals
(
Object
obj
)
{
public
boolean
equals
(
Object
obj
)
{
if
(
obj
==
null
)
if
(
obj
==
null
)
{
return
false
;
return
false
;
if
(!(
obj
instanceof
Location
))
}
if
(!(
obj
instanceof
Location
))
{
return
false
;
return
false
;
if
(
obj
==
this
)
}
if
(
obj
==
this
)
{
return
true
;
return
true
;
}
return
this
.
id
==
((
Location
)
obj
).
getId
();
return
this
.
id
==
((
Location
)
obj
).
getId
();
}
}
...
...
project-order/src/main/java/com/dituhui/pea/order/service/impl/ScheduleServiceImpl.java
View file @
cbab9e1
package
com
.
dituhui
.
pea
.
order
.
service
.
impl
;
package
com
.
dituhui
.
pea
.
order
.
service
.
impl
;
import
cn.hutool.core.date.LocalDateTimeUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.dituhui.pea.common.BusinessException
;
import
com.dituhui.pea.common.BusinessException
;
import
com.dituhui.pea.common.Result
;
import
com.dituhui.pea.common.Result
;
...
@@ -19,6 +21,7 @@ import org.springframework.stereotype.Service;
...
@@ -19,6 +21,7 @@ import org.springframework.stereotype.Service;
import
javax.persistence.criteria.Predicate
;
import
javax.persistence.criteria.Predicate
;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
import
java.time.temporal.ChronoUnit
;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -204,12 +207,16 @@ public class ScheduleServiceImpl implements ScheduleService {
...
@@ -204,12 +207,16 @@ public class ScheduleServiceImpl implements ScheduleService {
item
.
setSkill
(
o
.
getSkill
());
item
.
setSkill
(
o
.
getSkill
());
item
.
setOrderStatus
(
o
.
getAppointmentStatus
());
item
.
setOrderStatus
(
o
.
getAppointmentStatus
());
item
.
setOrderStatusName
(
""
);
item
.
setOrderStatusName
(
""
);
item
.
setDistance
(
3000
);
item
.
setDistance
(
o
.
getArriveDistance
()
);
item
.
setTimeType
(
"auto"
);
item
.
setTimeType
(
"auto"
);
item
.
setExpectArriveDuration
(
"10分钟"
);
item
.
setExpectArriveDuration
(
o
.
getArriveElapsed
()
+
"分钟"
);
item
.
setArriveTime
(
"10分钟"
);
item
.
setArriveTime
(
null
);
item
.
setExpectWorkDuration
(
"30分钟"
);
if
(
ObjectUtil
.
isAllNotEmpty
(
o
.
getPlanStartTime
(),
o
.
getPlanEndTime
()))
{
item
.
setWorkDuration
(
"30分钟"
);
item
.
setExpectWorkDuration
(
LocalDateTimeUtil
.
between
(
o
.
getPlanStartTime
(),
o
.
getPlanEndTime
(),
ChronoUnit
.
MINUTES
)
+
"分钟"
);
}
if
(
ObjectUtil
.
isAllNotEmpty
(
o
.
getActualStartTime
(),
o
.
getActualEndTime
()))
{
item
.
setWorkDuration
(
LocalDateTimeUtil
.
between
(
o
.
getActualStartTime
(),
o
.
getActualEndTime
(),
ChronoUnit
.
MINUTES
)
+
"分钟"
);
}
orders
.
add
(
item
);
orders
.
add
(
item
);
}
}
...
...
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