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 ee822811
authored
Jul 28, 2023
by
wangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
1 parent
0c172133
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/EngineerTimelineServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/EngineerTimelineServiceImpl.java
View file @
ee82281
...
@@ -74,6 +74,7 @@ public class EngineerTimelineServiceImpl implements EngineerTimelineService {
...
@@ -74,6 +74,7 @@ public class EngineerTimelineServiceImpl implements EngineerTimelineService {
LambdaQueryWrapper
<
OrderInfo
>
lqw
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
OrderInfo
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
eq
(
OrderInfo:
:
getDt
,
dt
);
lqw
.
eq
(
OrderInfo:
:
getDt
,
dt
);
lqw
.
eq
(
OrderInfo:
:
getEngineerCode
,
engineerCode
);
lqw
.
eq
(
OrderInfo:
:
getEngineerCode
,
engineerCode
);
lqw
.
ne
(
OrderInfo:
:
getAppointmentStatus
,
"INIT"
);
lqw
.
ne
(
OrderInfo:
:
getOrderStatus
,
"CANCEL"
);
lqw
.
ne
(
OrderInfo:
:
getOrderStatus
,
"CANCEL"
);
return
orderInfoMPDao
.
selectList
(
lqw
);
return
orderInfoMPDao
.
selectList
(
lqw
);
}
}
...
@@ -127,7 +128,7 @@ public class EngineerTimelineServiceImpl implements EngineerTimelineService {
...
@@ -127,7 +128,7 @@ public class EngineerTimelineServiceImpl implements EngineerTimelineService {
}
}
private
List
<
EngineerTimelineResp
.
DynamicItem
>
packItems
(
List
<
OrderEvent
>
timelines
,
List
<
Order
Appointment
>
orders
,
HashMap
<
String
,
String
>
locations
,
String
warehouseLocation
)
{
private
List
<
EngineerTimelineResp
.
DynamicItem
>
packItems
(
List
<
OrderEvent
>
timelines
,
List
<
Order
Info
>
orders
,
HashMap
<
String
,
String
>
locations
,
String
warehouseLocation
)
{
int
index
=
0
;
int
index
=
0
;
String
order_id
,
title
,
type
,
text
,
location
;
String
order_id
,
title
,
type
,
text
,
location
;
...
@@ -166,15 +167,15 @@ public class EngineerTimelineServiceImpl implements EngineerTimelineService {
...
@@ -166,15 +167,15 @@ public class EngineerTimelineServiceImpl implements EngineerTimelineService {
s
.
add
(
t
.
getOrderId
()
+
t
.
getSuborderId
());
s
.
add
(
t
.
getOrderId
()
+
t
.
getSuborderId
());
}
}
for
(
Order
Appointment
o:
orders
){
for
(
Order
Info
o:
orders
){
order_id
=
o
.
getOrderId
()
+
o
.
getSub
order
Id
();
order_id
=
o
.
getOrderId
()
+
o
.
getSubId
();
if
(
s
.
contains
(
order_id
))
{
if
(
s
.
contains
(
order_id
))
{
continue
;
continue
;
}
}
index
+=
1
;
index
+=
1
;
EngineerTimelineResp
.
DynamicItem
item
=
new
EngineerTimelineResp
.
DynamicItem
();
EngineerTimelineResp
.
DynamicItem
item
=
new
EngineerTimelineResp
.
DynamicItem
();
item
.
setTitle
(
String
.
format
(
"第%d单出发"
,
index
));
item
.
setTitle
(
String
.
format
(
"第%d单出发"
,
index
));
item
.
setTime
(
TimeUtils
.
IsoTimestamp2DateTime
(
o
.
get
Expect
StartTime
()));
item
.
setTime
(
TimeUtils
.
IsoTimestamp2DateTime
(
o
.
get
Plan
StartTime
()));
item
.
setStatus
(
0
);
item
.
setStatus
(
0
);
item
.
setText
(
String
.
format
(
"%d"
,
index
));
item
.
setText
(
String
.
format
(
"%d"
,
index
));
item
.
setLocation
(
locations
.
get
(
o
.
getOrderId
()));
item
.
setLocation
(
locations
.
get
(
o
.
getOrderId
()));
...
...
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