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 fa366b37
authored
Jul 28, 2023
by
王力
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_engineer_dynamics0728' into 'develop'
修改 See merge request !300
2 parents
7a665627
755c58b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 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 @
fa366b3
...
...
@@ -27,9 +27,6 @@ public class EngineerTimelineServiceImpl implements EngineerTimelineService {
private
EngineerInfoMPDao
engineerInfoMPDao
;
@Autowired
private
OrderRequestMPDao
orderRequestMPDao
;
@Autowired
private
WarehouseInfoMPDao
warehouseInfoMPDao
;
@Autowired
...
...
@@ -55,7 +52,7 @@ public class EngineerTimelineServiceImpl implements EngineerTimelineService {
List
<
OrderEvent
>
timelines
=
this
.
engineerTimelines
(
orderIds
,
date
);
// 获取客户地址
HashMap
<
String
,
String
>
orderLocations
=
this
.
orderRequestsLocation
(
order
Id
s
);
HashMap
<
String
,
String
>
orderLocations
=
this
.
orderRequestsLocation
(
orders
);
// 获取配送站地址
String
branchId
=
this
.
getEngineerBranchId
(
engineerCode
);
...
...
@@ -90,13 +87,10 @@ public class EngineerTimelineServiceImpl implements EngineerTimelineService {
return
orderEventMPDao
.
selectList
(
lqw
);
}
private
HashMap
<
String
,
String
>
orderRequestsLocation
(
List
<
String
>
orderId
s
)
{
private
HashMap
<
String
,
String
>
orderRequestsLocation
(
List
<
OrderInfo
>
order
s
)
{
// 获取客户地址location
HashMap
<
String
,
String
>
map
=
new
HashMap
<>();
LambdaQueryWrapper
<
OrderRequest
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
in
(
OrderRequest:
:
getOrderId
,
orderIds
);
List
<
OrderRequest
>
orders
=
orderRequestMPDao
.
selectList
(
lqw
);
for
(
OrderRequest
o:
orders
){
for
(
OrderInfo
o:
orders
){
map
.
put
(
o
.
getOrderId
(),
String
.
format
(
"%s,%s"
,
o
.
getX
(),
o
.
getY
()));
}
return
map
;
...
...
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